@yzsf2e/render-core 1.0.2-alpha.79 → 1.0.2-alpha.80
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/render-core.mjs +839 -838
- package/dist/render-core.umd.js +3 -3
- package/package.json +1 -1
package/dist/render-core.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as Oe, ref as D, computed as G, createVNode as W, mergeProps as Ge, openBlock as k, createBlock as X, resolveDynamicComponent as Bt, effectScope as xs, unref as Kn, isRef as so, toRefs as Xe, customRef as Fs, onMounted as Ct, nextTick as xe, getCurrentScope as js, onScopeDispose as zs, readonly as Bs, getCurrentInstance as Et, watch as ne, shallowRef as nn, resolveComponent as U, withCtx as
|
|
1
|
+
import { defineComponent as Oe, ref as D, computed as G, createVNode as W, mergeProps as Ge, openBlock as k, createBlock as X, resolveDynamicComponent as Bt, effectScope as xs, unref as Kn, isRef as so, toRefs as Xe, customRef as Fs, onMounted as Ct, nextTick as xe, getCurrentScope as js, onScopeDispose as zs, readonly as Bs, getCurrentInstance as Et, watch as ne, shallowRef as nn, resolveComponent as U, withCtx as j, createElementBlock as Z, Fragment as he, createTextVNode as be, toDisplayString as Se, renderSlot as Lt, createElementVNode as Ae, createCommentVNode as ge, reactive as Ue, onUnmounted as wn, watchEffect as bt, normalizeStyle as ti, renderList as Me, createApp as Ks, toRaw as ke, inject as Ce, h as Ye, withDirectives as ni, vShow as lo, withModifiers as uo, resolveDirective as Us, createSlots as co, onRenderTriggered as Ys, isVNode as Vs, normalizeClass as fo, normalizeProps as It, guardReactiveProps as Ws, provide as Dt } from "vue";
|
|
2
2
|
import { DatePicker as po, Modal as Zn, Button as sr, Space as Sn, message as Te, Input as Hs, Select as Un, Cascader as Gs, RangePicker as qs, Col as Xs, Row as Qs, Form as ri, Menu as Zs, MenuItem as Js, Dropdown as el, Pagination as tl, DropdownButton as nl, Alert as Mi, Spin as rl, Table as il, Transfer as al, ConfigProvider as ol } from "ant-design-vue";
|
|
3
3
|
import * as sl from "@ant-design/icons-vue";
|
|
4
4
|
import { CloseOutlined as ll, ShrinkOutlined as ul, ArrowsAltOutlined as cl, HolderOutlined as fl, DownOutlined as ho, UpOutlined as dl, SettingOutlined as pl, CopyOutlined as hl, LoadingOutlined as go, FilterOutlined as gl } from "@ant-design/icons-vue";
|
|
5
5
|
import { useRouter as ml } from "vue-router";
|
|
6
6
|
/*!
|
|
7
|
-
* @yzsf2e/render-core v1.0.2-alpha.
|
|
7
|
+
* @yzsf2e/render-core v1.0.2-alpha.80 Mon Aug 05 2024 15:08:20 GMT+0800 (中国标准时间)
|
|
8
8
|
* (c) 2023 @yzsf2e.
|
|
9
9
|
*/
|
|
10
|
-
const vl = "@yzsf2e/render-core", yl = "1.0.2-alpha.
|
|
10
|
+
const vl = "@yzsf2e/render-core", yl = "1.0.2-alpha.80", bl = "dist/render-core", wl = "dist/render-core", Sl = [
|
|
11
11
|
"dist"
|
|
12
12
|
], Cl = {
|
|
13
13
|
dev: "storybook dev -p 6006",
|
|
@@ -370,40 +370,40 @@ function bo(e, t, n, r = {}) {
|
|
|
370
370
|
shallow: f,
|
|
371
371
|
window: c = ln,
|
|
372
372
|
eventFilter: d,
|
|
373
|
-
onError: p = (
|
|
374
|
-
console.error(
|
|
373
|
+
onError: p = (b) => {
|
|
374
|
+
console.error(b);
|
|
375
375
|
},
|
|
376
376
|
initOnMounted: m
|
|
377
377
|
} = r, h = (f ? nn : D)(typeof t == "function" ? t() : t);
|
|
378
378
|
if (!n)
|
|
379
379
|
try {
|
|
380
380
|
n = tu("getDefaultStorage", () => {
|
|
381
|
-
var
|
|
382
|
-
return (
|
|
381
|
+
var b;
|
|
382
|
+
return (b = ln) == null ? void 0 : b.localStorage;
|
|
383
383
|
})();
|
|
384
|
-
} catch (
|
|
385
|
-
p(
|
|
384
|
+
} catch (b) {
|
|
385
|
+
p(b);
|
|
386
386
|
}
|
|
387
387
|
if (!n)
|
|
388
388
|
return h;
|
|
389
|
-
const
|
|
389
|
+
const v = Re(t), w = nu(v), O = (i = r.serializer) != null ? i : ru[w], { pause: y, resume: $ } = Hl(
|
|
390
390
|
h,
|
|
391
391
|
() => C(h.value),
|
|
392
392
|
{ flush: a, deep: s, eventFilter: d }
|
|
393
393
|
);
|
|
394
394
|
return c && o && ql(() => {
|
|
395
|
-
rn(c, "storage", _), rn(c, ki,
|
|
395
|
+
rn(c, "storage", _), rn(c, ki, E), m && _();
|
|
396
396
|
}), m || _(), h;
|
|
397
|
-
function C(
|
|
397
|
+
function C(b) {
|
|
398
398
|
try {
|
|
399
|
-
if (
|
|
399
|
+
if (b == null)
|
|
400
400
|
n.removeItem(e);
|
|
401
401
|
else {
|
|
402
|
-
const g = O.write(
|
|
403
|
-
|
|
402
|
+
const g = O.write(b), S = n.getItem(e);
|
|
403
|
+
S !== g && (n.setItem(e, g), c && c.dispatchEvent(new CustomEvent(ki, {
|
|
404
404
|
detail: {
|
|
405
405
|
key: e,
|
|
406
|
-
oldValue:
|
|
406
|
+
oldValue: S,
|
|
407
407
|
newValue: g,
|
|
408
408
|
storageArea: n
|
|
409
409
|
}
|
|
@@ -413,33 +413,33 @@ function bo(e, t, n, r = {}) {
|
|
|
413
413
|
p(g);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
const g =
|
|
416
|
+
function T(b) {
|
|
417
|
+
const g = b ? b.newValue : n.getItem(e);
|
|
418
418
|
if (g == null)
|
|
419
|
-
return l &&
|
|
420
|
-
if (!
|
|
421
|
-
const
|
|
422
|
-
return typeof u == "function" ? u(
|
|
419
|
+
return l && v != null && n.setItem(e, O.write(v)), v;
|
|
420
|
+
if (!b && u) {
|
|
421
|
+
const S = O.read(g);
|
|
422
|
+
return typeof u == "function" ? u(S, v) : w === "object" && !Array.isArray(S) ? { ...v, ...S } : S;
|
|
423
423
|
} else
|
|
424
424
|
return typeof g != "string" ? g : O.read(g);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
_(
|
|
426
|
+
function E(b) {
|
|
427
|
+
_(b.detail);
|
|
428
428
|
}
|
|
429
|
-
function _(
|
|
430
|
-
if (!(
|
|
431
|
-
if (
|
|
432
|
-
h.value =
|
|
429
|
+
function _(b) {
|
|
430
|
+
if (!(b && b.storageArea !== n)) {
|
|
431
|
+
if (b && b.key == null) {
|
|
432
|
+
h.value = v;
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
|
-
if (!(
|
|
436
|
-
|
|
435
|
+
if (!(b && b.key !== e)) {
|
|
436
|
+
y();
|
|
437
437
|
try {
|
|
438
|
-
(
|
|
438
|
+
(b == null ? void 0 : b.newValue) !== O.write(h.value) && (h.value = T(b));
|
|
439
439
|
} catch (g) {
|
|
440
440
|
p(g);
|
|
441
441
|
} finally {
|
|
442
|
-
|
|
442
|
+
b ? xe($) : $();
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}
|
|
@@ -460,42 +460,42 @@ function iu(e, t = {}) {
|
|
|
460
460
|
draggingElement: p = ln,
|
|
461
461
|
containerElement: m,
|
|
462
462
|
handle: h = e
|
|
463
|
-
} = t,
|
|
463
|
+
} = t, v = D(
|
|
464
464
|
(n = Re(c)) != null ? n : { x: 0, y: 0 }
|
|
465
|
-
),
|
|
466
|
-
Re(a) &&
|
|
467
|
-
}, $ = (
|
|
465
|
+
), w = D(), O = (E) => i ? i.includes(E.pointerType) : !0, y = (E) => {
|
|
466
|
+
Re(a) && E.preventDefault(), Re(s) && E.stopPropagation();
|
|
467
|
+
}, $ = (E) => {
|
|
468
468
|
var _;
|
|
469
|
-
if (!O(
|
|
469
|
+
if (!O(E) || Re(o) && E.target !== Re(e))
|
|
470
470
|
return;
|
|
471
|
-
const
|
|
472
|
-
x:
|
|
473
|
-
y:
|
|
471
|
+
const b = Re(m), g = (_ = b == null ? void 0 : b.getBoundingClientRect) == null ? void 0 : _.call(b), S = Re(e).getBoundingClientRect(), P = {
|
|
472
|
+
x: E.clientX - (b ? S.left - g.left : S.left),
|
|
473
|
+
y: E.clientY - (b ? S.top - g.top : S.top)
|
|
474
474
|
};
|
|
475
|
-
(f == null ? void 0 : f(P,
|
|
476
|
-
}, C = (
|
|
475
|
+
(f == null ? void 0 : f(P, E)) !== !1 && (w.value = P, y(E));
|
|
476
|
+
}, C = (E) => {
|
|
477
477
|
var _;
|
|
478
|
-
if (!O(
|
|
478
|
+
if (!O(E) || !w.value)
|
|
479
479
|
return;
|
|
480
|
-
const
|
|
481
|
-
let { x: P, y:
|
|
482
|
-
(d === "x" || d === "both") && (P =
|
|
480
|
+
const b = Re(m), g = (_ = b == null ? void 0 : b.getBoundingClientRect) == null ? void 0 : _.call(b), S = Re(e).getBoundingClientRect();
|
|
481
|
+
let { x: P, y: F } = v.value;
|
|
482
|
+
(d === "x" || d === "both") && (P = E.clientX - w.value.x, b && (P = Math.min(Math.max(0, P), g.width - S.width))), (d === "y" || d === "both") && (F = E.clientY - w.value.y, b && (F = Math.min(Math.max(0, F), g.height - S.height))), v.value = {
|
|
483
483
|
x: P,
|
|
484
|
-
y:
|
|
485
|
-
}, l == null || l(
|
|
486
|
-
},
|
|
487
|
-
O(
|
|
484
|
+
y: F
|
|
485
|
+
}, l == null || l(v.value, E), y(E);
|
|
486
|
+
}, T = (E) => {
|
|
487
|
+
O(E) && w.value && (w.value = void 0, u == null || u(v.value, E), y(E));
|
|
488
488
|
};
|
|
489
489
|
if (vo) {
|
|
490
|
-
const
|
|
491
|
-
rn(h, "pointerdown", $,
|
|
490
|
+
const E = { capture: (r = t.capture) != null ? r : !0 };
|
|
491
|
+
rn(h, "pointerdown", $, E), rn(p, "pointermove", C, E), rn(p, "pointerup", T, E);
|
|
492
492
|
}
|
|
493
493
|
return {
|
|
494
|
-
...Gl(
|
|
495
|
-
position:
|
|
496
|
-
isDragging: G(() => !!
|
|
494
|
+
...Gl(v),
|
|
495
|
+
position: v,
|
|
496
|
+
isDragging: G(() => !!w.value),
|
|
497
497
|
style: G(
|
|
498
|
-
() => `left:${
|
|
498
|
+
() => `left:${v.value.x}px;top:${v.value.y}px;`
|
|
499
499
|
)
|
|
500
500
|
};
|
|
501
501
|
}
|
|
@@ -534,31 +534,31 @@ function wo(e, t, n, r = {}) {
|
|
|
534
534
|
} = r, p = Et(), m = n || (p == null ? void 0 : p.emit) || ((i = p == null ? void 0 : p.$emit) == null ? void 0 : i.bind(p)) || ((s = (a = p == null ? void 0 : p.proxy) == null ? void 0 : a.$emit) == null ? void 0 : s.bind(p == null ? void 0 : p.proxy));
|
|
535
535
|
let h = u;
|
|
536
536
|
t || (t = "modelValue"), h = h || `update:${t.toString()}`;
|
|
537
|
-
const
|
|
538
|
-
d ? d(
|
|
537
|
+
const v = (y) => o ? typeof o == "function" ? o(y) : Zl(y) : y, w = () => jl(e[t]) ? v(e[t]) : c, O = (y) => {
|
|
538
|
+
d ? d(y) && m(h, y) : m(h, y);
|
|
539
539
|
};
|
|
540
540
|
if (l) {
|
|
541
|
-
const
|
|
541
|
+
const y = w(), $ = D(y);
|
|
542
542
|
let C = !1;
|
|
543
543
|
return ne(
|
|
544
544
|
() => e[t],
|
|
545
|
-
(
|
|
546
|
-
C || (C = !0, $.value =
|
|
545
|
+
(T) => {
|
|
546
|
+
C || (C = !0, $.value = v(T), xe(() => C = !1));
|
|
547
547
|
}
|
|
548
548
|
), ne(
|
|
549
549
|
$,
|
|
550
|
-
(
|
|
551
|
-
!C && (
|
|
550
|
+
(T) => {
|
|
551
|
+
!C && (T !== e[t] || f) && O(T);
|
|
552
552
|
},
|
|
553
553
|
{ deep: f }
|
|
554
554
|
), $;
|
|
555
555
|
} else
|
|
556
556
|
return G({
|
|
557
557
|
get() {
|
|
558
|
-
return
|
|
558
|
+
return w();
|
|
559
559
|
},
|
|
560
|
-
set(
|
|
561
|
-
O(
|
|
560
|
+
set(y) {
|
|
561
|
+
O(y);
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
564
|
}
|
|
@@ -603,9 +603,9 @@ const [ou] = Cn("drag-drawer"), su = Oe({
|
|
|
603
603
|
toggleFullScreen: f,
|
|
604
604
|
handleMouseDown: (d) => {
|
|
605
605
|
const p = d.clientX, m = i.value, h = (l == null ? void 0 : l.clientWidth) || document.body.clientWidth;
|
|
606
|
-
document.body.classList.add("disable-select-in-dragging"), window.onmousemove = function(
|
|
607
|
-
const O =
|
|
608
|
-
i.value = Math.min(
|
|
606
|
+
document.body.classList.add("disable-select-in-dragging"), window.onmousemove = function(v) {
|
|
607
|
+
const O = v.clientX - p, y = typeof m == "number" ? m - O : window.innerWidth - v.x;
|
|
608
|
+
i.value = Math.min(y < u ? u : y, h);
|
|
609
609
|
}, window.onmouseup = () => {
|
|
610
610
|
window.onmousemove = null, document.body.classList.remove("disable-select-in-dragging");
|
|
611
611
|
};
|
|
@@ -632,14 +632,14 @@ function uu(e, t, n, r, i, a) {
|
|
|
632
632
|
visible: e.show,
|
|
633
633
|
"onUpdate:visible": t[1] || (t[1] = (d) => e.show = d)
|
|
634
634
|
}, {
|
|
635
|
-
title:
|
|
635
|
+
title: j(() => [
|
|
636
636
|
e.title ? (k(), Z(he, { key: 0 }, [
|
|
637
637
|
be(Se(e.title), 1)
|
|
638
638
|
], 64)) : Lt(e.$slots, "title", { key: 1 })
|
|
639
639
|
]),
|
|
640
|
-
extra:
|
|
640
|
+
extra: j(() => [
|
|
641
641
|
W(u, { style: { transform: "translateY(2px)" } }, {
|
|
642
|
-
default:
|
|
642
|
+
default: j(() => [
|
|
643
643
|
e.fullScreen ? (k(), X(o, {
|
|
644
644
|
key: 1,
|
|
645
645
|
style: { color: "#fff", "font-size": "18px", cursor: "pointer", "margin-right": "10px" },
|
|
@@ -657,7 +657,7 @@ function uu(e, t, n, r, i, a) {
|
|
|
657
657
|
_: 1
|
|
658
658
|
})
|
|
659
659
|
]),
|
|
660
|
-
default:
|
|
660
|
+
default: j(() => [
|
|
661
661
|
Lt(e.$slots, "default"),
|
|
662
662
|
Ae("div", {
|
|
663
663
|
class: "drag-trigger",
|
|
@@ -665,10 +665,10 @@ function uu(e, t, n, r, i, a) {
|
|
|
665
665
|
}, null, 32),
|
|
666
666
|
e.hideFooter ? ge("", !0) : (k(), Z("div", lu, [
|
|
667
667
|
W(u, { style: { "padding-left": "20px" } }, {
|
|
668
|
-
default:
|
|
668
|
+
default: j(() => [
|
|
669
669
|
Lt(e.$slots, "footBtn"),
|
|
670
670
|
W(f, { onClick: e.handleClose }, {
|
|
671
|
-
default:
|
|
671
|
+
default: j(() => [
|
|
672
672
|
be("关闭")
|
|
673
673
|
]),
|
|
674
674
|
_: 1
|
|
@@ -710,14 +710,14 @@ const cu = /* @__PURE__ */ Qe(su, [["render", uu]]), fu = En(cu), [du] = Cn("pag
|
|
|
710
710
|
a.value = !0;
|
|
711
711
|
const c = ((d = s.value) == null ? void 0 : d.finish) || (() => Promise.resolve({ success: !0 }));
|
|
712
712
|
(p = s.value) != null && p.finish || console.warn("form组件没有提供finish方法"), c().then((m) => {
|
|
713
|
-
const { needFeedback: h = !0, needRefresh:
|
|
714
|
-
a.value = !1, m && m.success && (h && Te.success(
|
|
713
|
+
const { needFeedback: h = !0, needRefresh: v = !0, successMsg: w = "操作成功" } = r.value;
|
|
714
|
+
a.value = !1, m && m.success && (h && Te.success(w), f(), v && n("refresh"));
|
|
715
715
|
}).catch((m) => {
|
|
716
|
-
var
|
|
716
|
+
var v;
|
|
717
717
|
if (a.value = !1, console.log("[PageRendererFormModal handleOk Error]: ", m), typeof m == "string")
|
|
718
718
|
return Te.warn(m);
|
|
719
719
|
const { errorFields: h } = m;
|
|
720
|
-
h && h.length && Te.warn((
|
|
720
|
+
h && h.length && Te.warn((v = h[0]) == null ? void 0 : v.errors.join("、"));
|
|
721
721
|
});
|
|
722
722
|
};
|
|
723
723
|
ne(i, (c) => {
|
|
@@ -725,12 +725,12 @@ const cu = /* @__PURE__ */ Qe(su, [["render", uu]]), fu = En(cu), [du] = Cn("pag
|
|
|
725
725
|
const d = document.querySelector(".ant-modal-root"), p = d == null ? void 0 : d.querySelector(".ant-modal-header"), m = d == null ? void 0 : d.querySelector(".ant-modal");
|
|
726
726
|
p.style.cursor = "move";
|
|
727
727
|
const h = m.currentStyle || window.getComputedStyle(m, null);
|
|
728
|
-
p.onmousedown = (
|
|
729
|
-
const
|
|
730
|
-
let
|
|
731
|
-
h.left.includes("%") ? (
|
|
732
|
-
const
|
|
733
|
-
m.style.left = `${
|
|
728
|
+
p.onmousedown = (v) => {
|
|
729
|
+
const w = v.clientX - p.offsetLeft, O = v.clientY - p.offsetTop;
|
|
730
|
+
let y, $;
|
|
731
|
+
h.left.includes("%") ? (y = +document.body.clientWidth * (+h.left.replace(/%/g, "") / 100), $ = +document.body.clientHeight * (+h.top.replace(/%/g, "") / 100)) : (y = +h.left.replace(/\px/g, ""), $ = +h.top.replace(/\px/g, "")), document.onmousemove = function(C) {
|
|
732
|
+
const T = C.clientX - w, E = C.clientY - O;
|
|
733
|
+
m.style.left = `${T + y}px`, m.style.top = `${E + $}px`;
|
|
734
734
|
}, document.onmouseup = function() {
|
|
735
735
|
document.onmousemove = null, document.onmouseup = null;
|
|
736
736
|
};
|
|
@@ -764,18 +764,18 @@ function gu(e, t, n, r, i, a) {
|
|
|
764
764
|
"mask-style": { "background-color": "rgba(255, 255, 255, 0.4)" },
|
|
765
765
|
onCancel: e.closeModal
|
|
766
766
|
}), {
|
|
767
|
-
title:
|
|
767
|
+
title: j(() => [
|
|
768
768
|
Ae("span", null, Se(e.form.title), 1)
|
|
769
769
|
]),
|
|
770
|
-
footer:
|
|
770
|
+
footer: j(() => {
|
|
771
771
|
var u;
|
|
772
772
|
return [
|
|
773
773
|
((u = e.form.modalProps) == null ? void 0 : u.hideFooter) !== !0 ? (k(), X(o, { key: 0 }, {
|
|
774
|
-
default:
|
|
774
|
+
default: j(() => {
|
|
775
775
|
var f;
|
|
776
776
|
return [
|
|
777
777
|
W(s, { onClick: e.closeModal }, {
|
|
778
|
-
default:
|
|
778
|
+
default: j(() => {
|
|
779
779
|
var c;
|
|
780
780
|
return [
|
|
781
781
|
be(Se(((c = e.form.modalProps) == null ? void 0 : c.cancelText) || "取消"), 1)
|
|
@@ -789,7 +789,7 @@ function gu(e, t, n, r, i, a) {
|
|
|
789
789
|
onClick: e.handleOk,
|
|
790
790
|
loading: e.confirmLoading
|
|
791
791
|
}, {
|
|
792
|
-
default:
|
|
792
|
+
default: j(() => {
|
|
793
793
|
var c;
|
|
794
794
|
return [
|
|
795
795
|
be(Se(((c = e.form.modalProps) == null ? void 0 : c.okText) || "确定"), 1)
|
|
@@ -803,7 +803,7 @@ function gu(e, t, n, r, i, a) {
|
|
|
803
803
|
})) : ge("", !0)
|
|
804
804
|
];
|
|
805
805
|
}),
|
|
806
|
-
default:
|
|
806
|
+
default: j(() => [
|
|
807
807
|
e.form.component ? (k(), X(Bt(e.form.component), Ge({
|
|
808
808
|
key: 0,
|
|
809
809
|
rows: e.rows,
|
|
@@ -1420,22 +1420,22 @@ var zu = {
|
|
|
1420
1420
|
f.onload = null;
|
|
1421
1421
|
}
|
|
1422
1422
|
}, f = Oo(i, r, function(c, d) {
|
|
1423
|
-
var p = c / d, m = Math.max(0, Math.min(1, r.initialCoverage)), h = o,
|
|
1424
|
-
n.imageInitializing = !1, l * p > o ?
|
|
1425
|
-
var
|
|
1426
|
-
left:
|
|
1423
|
+
var p = c / d, m = Math.max(0, Math.min(1, r.initialCoverage)), h = o, v = l;
|
|
1424
|
+
n.imageInitializing = !1, l * p > o ? v = o / p : h = l * p, m = me(m) ? m : 0.9, h = Math.min(h * m, c), v = Math.min(v * m, d);
|
|
1425
|
+
var w = (o - h) / 2, O = (l - v) / 2, y = {
|
|
1426
|
+
left: w,
|
|
1427
1427
|
top: O,
|
|
1428
|
-
x:
|
|
1428
|
+
x: w,
|
|
1429
1429
|
y: O,
|
|
1430
1430
|
width: h,
|
|
1431
|
-
height:
|
|
1431
|
+
height: v,
|
|
1432
1432
|
oldRatio: 1,
|
|
1433
1433
|
ratio: h / c,
|
|
1434
1434
|
aspectRatio: p,
|
|
1435
1435
|
naturalWidth: c,
|
|
1436
1436
|
naturalHeight: d
|
|
1437
|
-
}, $ = Le({},
|
|
1438
|
-
r.rotatable && (
|
|
1437
|
+
}, $ = Le({}, y);
|
|
1438
|
+
r.rotatable && (y.rotate = u.rotate || 0, $.rotate = 0), r.scalable && (y.scaleX = u.scaleX || 1, y.scaleY = u.scaleY || 1, $.scaleX = 1, $.scaleY = 1), n.imageData = y, n.initialImageData = $, t && t();
|
|
1439
1439
|
});
|
|
1440
1440
|
},
|
|
1441
1441
|
renderImage: function(t) {
|
|
@@ -1739,9 +1739,9 @@ var zu = {
|
|
|
1739
1739
|
return this.index = n, this.show();
|
|
1740
1740
|
this.viewing && this.viewing.abort();
|
|
1741
1741
|
var r = this.element, i = this.options, a = this.title, s = this.canvas, o = this.items[n], l = o.querySelector("img"), u = kt(l, "originalUrl"), f = l.getAttribute("alt"), c = document.createElement("img");
|
|
1742
|
-
if (ce(i.inheritedAttributes, function(
|
|
1743
|
-
var
|
|
1744
|
-
|
|
1742
|
+
if (ce(i.inheritedAttributes, function(v) {
|
|
1743
|
+
var w = l.getAttribute(v);
|
|
1744
|
+
w !== null && c.setAttribute(v, w);
|
|
1745
1745
|
}), c.src = u, c.alt = f, se(i.view) && q(r, ea, i.view, {
|
|
1746
1746
|
once: !0
|
|
1747
1747
|
}), we(r, ea, {
|
|
@@ -1753,8 +1753,8 @@ var zu = {
|
|
|
1753
1753
|
var d = this.items[this.index];
|
|
1754
1754
|
d && (te(d, kn), d.removeAttribute("aria-selected")), H(o, kn), o.setAttribute("aria-selected", !0), i.focus && o.focus(), this.image = c, this.viewed = !1, this.index = n, this.imageData = {}, H(c, an), i.loading && H(s, Ft), s.innerHTML = "", s.appendChild(c), this.renderList(), a.innerHTML = "";
|
|
1755
1755
|
var p = function() {
|
|
1756
|
-
var
|
|
1757
|
-
a.innerHTML = Mu(se(O) ? O.call(t, c,
|
|
1756
|
+
var w = t.imageData, O = Array.isArray(i.title) ? i.title[1] : i.title;
|
|
1757
|
+
a.innerHTML = Mu(se(O) ? O.call(t, c, w) : "".concat(f, " (").concat(w.naturalWidth, " × ").concat(w.naturalHeight, ")"));
|
|
1758
1758
|
}, m, h;
|
|
1759
1759
|
return q(r, un, p, {
|
|
1760
1760
|
once: !0
|
|
@@ -1954,11 +1954,11 @@ var zu = {
|
|
|
1954
1954
|
* @returns {Viewer} this
|
|
1955
1955
|
*/
|
|
1956
1956
|
zoomTo: function(t) {
|
|
1957
|
-
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, o = this.element, l = this.options, u = this.pointers, f = this.imageData, c = f.x, d = f.y, p = f.width, m = f.height, h = f.naturalWidth,
|
|
1957
|
+
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, o = this.element, l = this.options, u = this.pointers, f = this.imageData, c = f.x, d = f.y, p = f.width, m = f.height, h = f.naturalWidth, v = f.naturalHeight;
|
|
1958
1958
|
if (t = Math.max(0, t), me(t) && this.viewed && !this.played && (s || l.zoomable)) {
|
|
1959
1959
|
if (!s) {
|
|
1960
|
-
var
|
|
1961
|
-
t = Math.min(Math.max(t,
|
|
1960
|
+
var w = Math.max(0.01, l.minZoomRatio), O = Math.min(100, l.maxZoomRatio);
|
|
1961
|
+
t = Math.min(Math.max(t, w), O);
|
|
1962
1962
|
}
|
|
1963
1963
|
if (a)
|
|
1964
1964
|
switch (a.type) {
|
|
@@ -1971,29 +1971,29 @@ var zu = {
|
|
|
1971
1971
|
t > 0.99 && t < 1.01 && (t = 1);
|
|
1972
1972
|
break;
|
|
1973
1973
|
}
|
|
1974
|
-
var
|
|
1974
|
+
var y = h * t, $ = v * t, C = y - p, T = $ - m, E = f.ratio;
|
|
1975
1975
|
if (se(l.zoom) && q(o, sa, l.zoom, {
|
|
1976
1976
|
once: !0
|
|
1977
1977
|
}), we(o, sa, {
|
|
1978
1978
|
ratio: t,
|
|
1979
|
-
oldRatio:
|
|
1979
|
+
oldRatio: E,
|
|
1980
1980
|
originalEvent: a
|
|
1981
1981
|
}) === !1)
|
|
1982
1982
|
return this;
|
|
1983
1983
|
if (this.zooming = !0, a) {
|
|
1984
|
-
var _ = Lu(this.viewer),
|
|
1984
|
+
var _ = Lu(this.viewer), b = u && Object.keys(u).length > 0 ? ju(u) : {
|
|
1985
1985
|
pageX: a.pageX,
|
|
1986
1986
|
pageY: a.pageY
|
|
1987
1987
|
};
|
|
1988
|
-
f.x -= C * ((
|
|
1988
|
+
f.x -= C * ((b.pageX - _.left - c) / p), f.y -= T * ((b.pageY - _.top - d) / m);
|
|
1989
1989
|
} else
|
|
1990
|
-
Mt(i) && me(i.x) && me(i.y) ? (f.x -= C * ((i.x - c) / p), f.y -=
|
|
1991
|
-
f.left = f.x, f.top = f.y, f.width =
|
|
1990
|
+
Mt(i) && me(i.x) && me(i.y) ? (f.x -= C * ((i.x - c) / p), f.y -= T * ((i.y - d) / m)) : (f.x -= C / 2, f.y -= T / 2);
|
|
1991
|
+
f.left = f.x, f.top = f.y, f.width = y, f.height = $, f.oldRatio = E, f.ratio = t, this.renderImage(function() {
|
|
1992
1992
|
n.zooming = !1, se(l.zoomed) && q(o, la, l.zoomed, {
|
|
1993
1993
|
once: !0
|
|
1994
1994
|
}), we(o, la, {
|
|
1995
1995
|
ratio: t,
|
|
1996
|
-
oldRatio:
|
|
1996
|
+
oldRatio: E,
|
|
1997
1997
|
originalEvent: a
|
|
1998
1998
|
}, {
|
|
1999
1999
|
cancelable: !1
|
|
@@ -2291,23 +2291,23 @@ var zu = {
|
|
|
2291
2291
|
var n = this.element, r = this.options, i = n.parentNode, a = document.createElement("div");
|
|
2292
2292
|
a.innerHTML = Su;
|
|
2293
2293
|
var s = a.querySelector(".".concat(J, "-container")), o = s.querySelector(".".concat(J, "-title")), l = s.querySelector(".".concat(J, "-toolbar")), u = s.querySelector(".".concat(J, "-navbar")), f = s.querySelector(".".concat(J, "-button")), c = s.querySelector(".".concat(J, "-canvas"));
|
|
2294
|
-
if (this.parent = i, this.viewer = s, this.title = o, this.toolbar = l, this.navbar = u, this.button = f, this.canvas = c, this.footer = s.querySelector(".".concat(J, "-footer")), this.tooltipBox = s.querySelector(".".concat(J, "-tooltip")), this.player = s.querySelector(".".concat(J, "-player")), this.list = s.querySelector(".".concat(J, "-list")), s.id = "".concat(J).concat(this.id), o.id = "".concat(J, "Title").concat(this.id), H(o, r.title ? xn(Array.isArray(r.title) ? r.title[0] : r.title) : mt), H(u, r.navbar ? xn(r.navbar) : mt), fn(f, mt, !r.button), r.keyboard && f.setAttribute("tabindex", 0), r.backdrop && (H(s, "".concat(J, "-backdrop")), !r.inline && r.backdrop !== "static" && Wr(c, Jn, "hide")), cn(r.className) && r.className && r.className.split(ui).forEach(function(
|
|
2295
|
-
H(s,
|
|
2294
|
+
if (this.parent = i, this.viewer = s, this.title = o, this.toolbar = l, this.navbar = u, this.button = f, this.canvas = c, this.footer = s.querySelector(".".concat(J, "-footer")), this.tooltipBox = s.querySelector(".".concat(J, "-tooltip")), this.player = s.querySelector(".".concat(J, "-player")), this.list = s.querySelector(".".concat(J, "-list")), s.id = "".concat(J).concat(this.id), o.id = "".concat(J, "Title").concat(this.id), H(o, r.title ? xn(Array.isArray(r.title) ? r.title[0] : r.title) : mt), H(u, r.navbar ? xn(r.navbar) : mt), fn(f, mt, !r.button), r.keyboard && f.setAttribute("tabindex", 0), r.backdrop && (H(s, "".concat(J, "-backdrop")), !r.inline && r.backdrop !== "static" && Wr(c, Jn, "hide")), cn(r.className) && r.className && r.className.split(ui).forEach(function(y) {
|
|
2295
|
+
H(s, y);
|
|
2296
2296
|
}), r.toolbar) {
|
|
2297
|
-
var d = document.createElement("ul"), p = Mt(r.toolbar), m = Ln.slice(0, 3), h = Ln.slice(7, 9),
|
|
2298
|
-
p || H(l, xn(r.toolbar)), ce(p ? r.toolbar : Ln, function(
|
|
2299
|
-
var C = p && Mt(
|
|
2300
|
-
if (!(!
|
|
2301
|
-
var _ = C && !Rt(
|
|
2302
|
-
r.keyboard && g.setAttribute("tabindex", 0), g.setAttribute("role", "button"), H(g, "".concat(J, "-").concat(
|
|
2297
|
+
var d = document.createElement("ul"), p = Mt(r.toolbar), m = Ln.slice(0, 3), h = Ln.slice(7, 9), v = Ln.slice(9);
|
|
2298
|
+
p || H(l, xn(r.toolbar)), ce(p ? r.toolbar : Ln, function(y, $) {
|
|
2299
|
+
var C = p && Mt(y), T = p ? ci($) : y, E = C && !Rt(y.show) ? y.show : y;
|
|
2300
|
+
if (!(!E || !r.zoomable && m.indexOf(T) !== -1 || !r.rotatable && h.indexOf(T) !== -1 || !r.scalable && v.indexOf(T) !== -1)) {
|
|
2301
|
+
var _ = C && !Rt(y.size) ? y.size : y, b = C && !Rt(y.click) ? y.click : y, g = document.createElement("li");
|
|
2302
|
+
r.keyboard && g.setAttribute("tabindex", 0), g.setAttribute("role", "button"), H(g, "".concat(J, "-").concat(T)), se(b) || Wr(g, Jn, T), me(E) && H(g, xn(E)), ["small", "large"].indexOf(_) !== -1 ? H(g, "".concat(J, "-").concat(_)) : T === "play" && H(g, "".concat(J, "-large")), se(b) && q(g, Kt, b), d.appendChild(g);
|
|
2303
2303
|
}
|
|
2304
2304
|
}), l.appendChild(d);
|
|
2305
2305
|
} else
|
|
2306
2306
|
H(l, mt);
|
|
2307
2307
|
if (!r.rotatable) {
|
|
2308
|
-
var
|
|
2309
|
-
H(
|
|
2310
|
-
l.appendChild(
|
|
2308
|
+
var w = l.querySelectorAll('li[class*="rotate"]');
|
|
2309
|
+
H(w, an), ce(w, function(y) {
|
|
2310
|
+
l.appendChild(y);
|
|
2311
2311
|
});
|
|
2312
2312
|
}
|
|
2313
2313
|
if (r.inline)
|
|
@@ -2749,7 +2749,7 @@ const td = /* @__PURE__ */ Zf(Qf, [["render", ed]]), nd = { style: { height: "80
|
|
|
2749
2749
|
},
|
|
2750
2750
|
emits: ["update:show"],
|
|
2751
2751
|
setup(e, { expose: t, emit: n }) {
|
|
2752
|
-
const r = e, i = (
|
|
2752
|
+
const r = e, i = (P) => n("update:show", P), a = D(!1), s = D(null), o = {
|
|
2753
2753
|
transition: !1,
|
|
2754
2754
|
inline: !0,
|
|
2755
2755
|
button: !1,
|
|
@@ -2760,82 +2760,82 @@ const td = /* @__PURE__ */ Zf(Qf, [["render", ed]]), nd = { style: { height: "80
|
|
|
2760
2760
|
next: !0,
|
|
2761
2761
|
rotateRight: !0
|
|
2762
2762
|
}
|
|
2763
|
-
},
|
|
2763
|
+
}, l = D(!1), u = D([]), f = D(0);
|
|
2764
2764
|
ne([() => r.imageList, () => r.imageIndex], () => {
|
|
2765
|
-
r.imageList && (
|
|
2765
|
+
r.imageList && (u.value = [...r.imageList], f.value = r.imageIndex || 0);
|
|
2766
2766
|
}), ne(
|
|
2767
2767
|
() => r.show,
|
|
2768
2768
|
() => {
|
|
2769
|
-
|
|
2769
|
+
l.value = r.show;
|
|
2770
2770
|
}
|
|
2771
2771
|
);
|
|
2772
|
-
const
|
|
2773
|
-
|
|
2774
|
-
},
|
|
2775
|
-
ne([
|
|
2776
|
-
if (!
|
|
2777
|
-
|
|
2778
|
-
const
|
|
2779
|
-
E.value.right =
|
|
2772
|
+
const c = (P) => {
|
|
2773
|
+
s.value = P, P.view(f.value);
|
|
2774
|
+
}, d = D(null), { x: p, y: m, isDragging: h } = iu(d), v = D(0), w = D(0), O = D(!1), y = D(0), $ = D(0), C = D(0), T = D(0), E = D({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
2775
|
+
ne([p, m], () => {
|
|
2776
|
+
if (!O.value) {
|
|
2777
|
+
v.value = p.value, w.value = m.value;
|
|
2778
|
+
const P = document.body.getBoundingClientRect(), F = d.value.getBoundingClientRect();
|
|
2779
|
+
E.value.right = P.width - F.width, E.value.bottom = P.height - F.height, C.value = y.value, T.value = $.value;
|
|
2780
2780
|
}
|
|
2781
|
-
|
|
2782
|
-
}), ne(
|
|
2783
|
-
|
|
2781
|
+
O.value = !0;
|
|
2782
|
+
}), ne(h, () => {
|
|
2783
|
+
h || (O.value = !1);
|
|
2784
2784
|
}), bt(() => {
|
|
2785
|
-
|
|
2785
|
+
O.value && (y.value = C.value + Math.min(Math.max(E.value.left, p.value), E.value.right) - v.value, $.value = T.value + Math.min(Math.max(E.value.top, m.value), E.value.bottom) - w.value);
|
|
2786
2786
|
});
|
|
2787
|
-
const
|
|
2788
|
-
transform: `translate(${
|
|
2789
|
-
})),
|
|
2790
|
-
|
|
2791
|
-
}, w = () => {
|
|
2792
|
-
o.value = !1;
|
|
2787
|
+
const _ = G(() => ({
|
|
2788
|
+
transform: `translate(${y.value}px, ${$.value}px)`
|
|
2789
|
+
})), b = (P, F = 0, L) => {
|
|
2790
|
+
L && (a.value = L), u.value = [...P], f.value = F, l.value = !0;
|
|
2793
2791
|
}, g = () => {
|
|
2792
|
+
l.value = !1;
|
|
2793
|
+
}, S = () => {
|
|
2794
2794
|
i(!1);
|
|
2795
2795
|
};
|
|
2796
|
-
return t({ open:
|
|
2797
|
-
visible:
|
|
2798
|
-
"onUpdate:visible":
|
|
2796
|
+
return t({ open: b, close: g }), (P, F) => (k(), X(Kn(Zn), {
|
|
2797
|
+
visible: l.value,
|
|
2798
|
+
"onUpdate:visible": F[0] || (F[0] = (L) => l.value = L),
|
|
2799
2799
|
"destroy-on-close": "",
|
|
2800
2800
|
centered: "",
|
|
2801
2801
|
width: 800,
|
|
2802
|
-
mask:
|
|
2802
|
+
mask: a.value,
|
|
2803
2803
|
"mask-closable": !1,
|
|
2804
2804
|
"wrap-class-name": "pointer-events-none preview-media-modal",
|
|
2805
2805
|
"wrap-style": { overflow: "hidden" },
|
|
2806
2806
|
footer: null,
|
|
2807
|
-
onOk:
|
|
2808
|
-
onCancel:
|
|
2807
|
+
onOk: g,
|
|
2808
|
+
onCancel: S
|
|
2809
2809
|
}, {
|
|
2810
|
-
title:
|
|
2810
|
+
title: j(() => [
|
|
2811
2811
|
Ae("div", {
|
|
2812
2812
|
ref_key: "modalTitleRef",
|
|
2813
|
-
ref:
|
|
2813
|
+
ref: d,
|
|
2814
2814
|
style: { width: "100%", cursor: "move" }
|
|
2815
2815
|
}, [
|
|
2816
2816
|
W(Kn(fl), { style: { "margin-right": "6px" } }),
|
|
2817
2817
|
be("预览 ")
|
|
2818
2818
|
], 512)
|
|
2819
2819
|
]),
|
|
2820
|
-
modalRender:
|
|
2820
|
+
modalRender: j(({ originVNode: L }) => [
|
|
2821
2821
|
Ae("div", {
|
|
2822
|
-
style: ti(
|
|
2822
|
+
style: ti(_.value)
|
|
2823
2823
|
}, [
|
|
2824
|
-
(k(), X(Bt(
|
|
2824
|
+
(k(), X(Bt(L)))
|
|
2825
2825
|
], 4)
|
|
2826
2826
|
]),
|
|
2827
|
-
default:
|
|
2827
|
+
default: j(() => [
|
|
2828
2828
|
W(Kn(td), {
|
|
2829
|
-
options:
|
|
2830
|
-
images:
|
|
2831
|
-
onInited:
|
|
2829
|
+
options: o,
|
|
2830
|
+
images: u.value,
|
|
2831
|
+
onInited: c
|
|
2832
2832
|
}, {
|
|
2833
|
-
default:
|
|
2833
|
+
default: j((L) => [
|
|
2834
2834
|
Ae("div", nd, [
|
|
2835
|
-
(k(!0), Z(he, null, Me(
|
|
2835
|
+
(k(!0), Z(he, null, Me(L.images, (R) => (k(), Z("img", {
|
|
2836
2836
|
style: { opacity: "0" },
|
|
2837
|
-
src:
|
|
2838
|
-
key:
|
|
2837
|
+
src: R,
|
|
2838
|
+
key: R
|
|
2839
2839
|
}, null, 8, rd))), 128))
|
|
2840
2840
|
])
|
|
2841
2841
|
]),
|
|
@@ -2843,7 +2843,7 @@ const td = /* @__PURE__ */ Zf(Qf, [["render", ed]]), nd = { style: { height: "80
|
|
|
2843
2843
|
}, 8, ["images"])
|
|
2844
2844
|
]),
|
|
2845
2845
|
_: 1
|
|
2846
|
-
}, 8, ["visible"]));
|
|
2846
|
+
}, 8, ["visible", "mask"]));
|
|
2847
2847
|
}
|
|
2848
2848
|
});
|
|
2849
2849
|
var od = typeof window < "u";
|
|
@@ -2893,10 +2893,11 @@ function cd() {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
}));
|
|
2895
2895
|
}
|
|
2896
|
-
function Pw(e, t) {
|
|
2896
|
+
function Pw(e, t, n) {
|
|
2897
2897
|
return od ? (Hn || cd(), Hn.open({
|
|
2898
2898
|
imageList: e,
|
|
2899
|
-
imageIndex: t
|
|
2899
|
+
imageIndex: t,
|
|
2900
|
+
mask: n
|
|
2900
2901
|
}), Hn) : Promise.resolve(void 0);
|
|
2901
2902
|
}
|
|
2902
2903
|
const fd = En(mi);
|
|
@@ -2909,70 +2910,70 @@ var Ko = { exports: {} };
|
|
|
2909
2910
|
(function(n, r) {
|
|
2910
2911
|
e.exports = r();
|
|
2911
2912
|
})(dd, function() {
|
|
2912
|
-
var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", s = "second", o = "minute", l = "hour", u = "day", f = "week", c = "month", d = "quarter", p = "year", m = "date", h = "Invalid Date",
|
|
2913
|
-
var R = ["th", "st", "nd", "rd"], I =
|
|
2914
|
-
return "[" +
|
|
2915
|
-
} },
|
|
2916
|
-
var
|
|
2917
|
-
return !
|
|
2918
|
-
}, $ = { s:
|
|
2919
|
-
var R = -
|
|
2920
|
-
return (R <= 0 ? "+" : "-") +
|
|
2921
|
-
}, m: function
|
|
2913
|
+
var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", s = "second", o = "minute", l = "hour", u = "day", f = "week", c = "month", d = "quarter", p = "year", m = "date", h = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, O = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
|
|
2914
|
+
var R = ["th", "st", "nd", "rd"], I = L % 100;
|
|
2915
|
+
return "[" + L + (R[(I - 20) % 10] || R[I] || R[0]) + "]";
|
|
2916
|
+
} }, y = function(L, R, I) {
|
|
2917
|
+
var x = String(L);
|
|
2918
|
+
return !x || x.length >= R ? L : "" + Array(R + 1 - x.length).join(I) + L;
|
|
2919
|
+
}, $ = { s: y, z: function(L) {
|
|
2920
|
+
var R = -L.utcOffset(), I = Math.abs(R), x = Math.floor(I / 60), M = I % 60;
|
|
2921
|
+
return (R <= 0 ? "+" : "-") + y(x, 2, "0") + ":" + y(M, 2, "0");
|
|
2922
|
+
}, m: function L(R, I) {
|
|
2922
2923
|
if (R.date() < I.date())
|
|
2923
|
-
return -
|
|
2924
|
-
var
|
|
2925
|
-
return +(-(
|
|
2926
|
-
}, a: function(
|
|
2927
|
-
return
|
|
2928
|
-
}, p: function(
|
|
2929
|
-
return { M: c, y: p, w: f, d: u, D: m, h: l, m: o, s, ms: a, Q: d }[
|
|
2930
|
-
}, u: function(
|
|
2931
|
-
return
|
|
2932
|
-
} }, C = "en",
|
|
2933
|
-
|
|
2934
|
-
var
|
|
2935
|
-
return
|
|
2936
|
-
},
|
|
2924
|
+
return -L(I, R);
|
|
2925
|
+
var x = 12 * (I.year() - R.year()) + (I.month() - R.month()), M = R.clone().add(x, c), V = I - M < 0, Y = R.clone().add(x + (V ? -1 : 1), c);
|
|
2926
|
+
return +(-(x + (I - M) / (V ? M - Y : Y - M)) || 0);
|
|
2927
|
+
}, a: function(L) {
|
|
2928
|
+
return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
|
|
2929
|
+
}, p: function(L) {
|
|
2930
|
+
return { M: c, y: p, w: f, d: u, D: m, h: l, m: o, s, ms: a, Q: d }[L] || String(L || "").toLowerCase().replace(/s$/, "");
|
|
2931
|
+
}, u: function(L) {
|
|
2932
|
+
return L === void 0;
|
|
2933
|
+
} }, C = "en", T = {};
|
|
2934
|
+
T[C] = O;
|
|
2935
|
+
var E = "$isDayjsObject", _ = function(L) {
|
|
2936
|
+
return L instanceof P || !(!L || !L[E]);
|
|
2937
|
+
}, b = function L(R, I, x) {
|
|
2937
2938
|
var M;
|
|
2938
2939
|
if (!R)
|
|
2939
2940
|
return C;
|
|
2940
2941
|
if (typeof R == "string") {
|
|
2941
2942
|
var V = R.toLowerCase();
|
|
2942
|
-
|
|
2943
|
+
T[V] && (M = V), I && (T[V] = I, M = V);
|
|
2943
2944
|
var Y = R.split("-");
|
|
2944
2945
|
if (!M && Y.length > 1)
|
|
2945
|
-
return
|
|
2946
|
+
return L(Y[0]);
|
|
2946
2947
|
} else {
|
|
2947
2948
|
var ee = R.name;
|
|
2948
|
-
|
|
2949
|
+
T[ee] = R, M = ee;
|
|
2949
2950
|
}
|
|
2950
|
-
return !
|
|
2951
|
-
}, g = function(
|
|
2952
|
-
if (_(
|
|
2953
|
-
return
|
|
2951
|
+
return !x && M && (C = M), M || !x && C;
|
|
2952
|
+
}, g = function(L, R) {
|
|
2953
|
+
if (_(L))
|
|
2954
|
+
return L.clone();
|
|
2954
2955
|
var I = typeof R == "object" ? R : {};
|
|
2955
|
-
return I.date =
|
|
2956
|
-
},
|
|
2957
|
-
|
|
2958
|
-
return g(
|
|
2956
|
+
return I.date = L, I.args = arguments, new P(I);
|
|
2957
|
+
}, S = $;
|
|
2958
|
+
S.l = b, S.i = _, S.w = function(L, R) {
|
|
2959
|
+
return g(L, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
|
|
2959
2960
|
};
|
|
2960
2961
|
var P = function() {
|
|
2961
|
-
function
|
|
2962
|
-
this.$L =
|
|
2962
|
+
function L(I) {
|
|
2963
|
+
this.$L = b(I.locale, null, !0), this.parse(I), this.$x = this.$x || I.x || {}, this[E] = !0;
|
|
2963
2964
|
}
|
|
2964
|
-
var R =
|
|
2965
|
+
var R = L.prototype;
|
|
2965
2966
|
return R.parse = function(I) {
|
|
2966
|
-
this.$d = function(
|
|
2967
|
-
var M =
|
|
2967
|
+
this.$d = function(x) {
|
|
2968
|
+
var M = x.date, V = x.utc;
|
|
2968
2969
|
if (M === null)
|
|
2969
2970
|
return /* @__PURE__ */ new Date(NaN);
|
|
2970
|
-
if (
|
|
2971
|
+
if (S.u(M))
|
|
2971
2972
|
return /* @__PURE__ */ new Date();
|
|
2972
2973
|
if (M instanceof Date)
|
|
2973
2974
|
return new Date(M);
|
|
2974
2975
|
if (typeof M == "string" && !/Z$/i.test(M)) {
|
|
2975
|
-
var Y = M.match(
|
|
2976
|
+
var Y = M.match(v);
|
|
2976
2977
|
if (Y) {
|
|
2977
2978
|
var ee = Y[2] - 1 || 0, re = (Y[7] || "0").substring(0, 3);
|
|
2978
2979
|
return V ? new Date(Date.UTC(Y[1], ee, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, re)) : new Date(Y[1], ee, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, re);
|
|
@@ -2984,28 +2985,28 @@ var Ko = { exports: {} };
|
|
|
2984
2985
|
var I = this.$d;
|
|
2985
2986
|
this.$y = I.getFullYear(), this.$M = I.getMonth(), this.$D = I.getDate(), this.$W = I.getDay(), this.$H = I.getHours(), this.$m = I.getMinutes(), this.$s = I.getSeconds(), this.$ms = I.getMilliseconds();
|
|
2986
2987
|
}, R.$utils = function() {
|
|
2987
|
-
return
|
|
2988
|
+
return S;
|
|
2988
2989
|
}, R.isValid = function() {
|
|
2989
2990
|
return this.$d.toString() !== h;
|
|
2990
|
-
}, R.isSame = function(I,
|
|
2991
|
+
}, R.isSame = function(I, x) {
|
|
2991
2992
|
var M = g(I);
|
|
2992
|
-
return this.startOf(
|
|
2993
|
-
}, R.isAfter = function(I,
|
|
2994
|
-
return g(I) < this.startOf(
|
|
2995
|
-
}, R.isBefore = function(I,
|
|
2996
|
-
return this.endOf(
|
|
2997
|
-
}, R.$g = function(I,
|
|
2998
|
-
return
|
|
2993
|
+
return this.startOf(x) <= M && M <= this.endOf(x);
|
|
2994
|
+
}, R.isAfter = function(I, x) {
|
|
2995
|
+
return g(I) < this.startOf(x);
|
|
2996
|
+
}, R.isBefore = function(I, x) {
|
|
2997
|
+
return this.endOf(x) < g(I);
|
|
2998
|
+
}, R.$g = function(I, x, M) {
|
|
2999
|
+
return S.u(I) ? this[x] : this.set(M, I);
|
|
2999
3000
|
}, R.unix = function() {
|
|
3000
3001
|
return Math.floor(this.valueOf() / 1e3);
|
|
3001
3002
|
}, R.valueOf = function() {
|
|
3002
3003
|
return this.$d.getTime();
|
|
3003
|
-
}, R.startOf = function(I,
|
|
3004
|
-
var M = this, V = !!
|
|
3005
|
-
var De =
|
|
3004
|
+
}, R.startOf = function(I, x) {
|
|
3005
|
+
var M = this, V = !!S.u(x) || x, Y = S.p(I), ee = function(Ie, Ee) {
|
|
3006
|
+
var De = S.w(M.$u ? Date.UTC(M.$y, Ee, Ie) : new Date(M.$y, Ee, Ie), M);
|
|
3006
3007
|
return V ? De : De.endOf(u);
|
|
3007
3008
|
}, re = function(Ie, Ee) {
|
|
3008
|
-
return
|
|
3009
|
+
return S.w(M.toDate()[Ie].apply(M.toDate("s"), (V ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ee)), M);
|
|
3009
3010
|
}, ie = this.$W, pe = this.$M, ve = this.$D, $e = "set" + (this.$u ? "UTC" : "");
|
|
3010
3011
|
switch (Y) {
|
|
3011
3012
|
case p:
|
|
@@ -3029,24 +3030,24 @@ var Ko = { exports: {} };
|
|
|
3029
3030
|
}
|
|
3030
3031
|
}, R.endOf = function(I) {
|
|
3031
3032
|
return this.startOf(I, !1);
|
|
3032
|
-
}, R.$set = function(I,
|
|
3033
|
-
var M, V =
|
|
3033
|
+
}, R.$set = function(I, x) {
|
|
3034
|
+
var M, V = S.p(I), Y = "set" + (this.$u ? "UTC" : ""), ee = (M = {}, M[u] = Y + "Date", M[m] = Y + "Date", M[c] = Y + "Month", M[p] = Y + "FullYear", M[l] = Y + "Hours", M[o] = Y + "Minutes", M[s] = Y + "Seconds", M[a] = Y + "Milliseconds", M)[V], re = V === u ? this.$D + (x - this.$W) : x;
|
|
3034
3035
|
if (V === c || V === p) {
|
|
3035
3036
|
var ie = this.clone().set(m, 1);
|
|
3036
3037
|
ie.$d[ee](re), ie.init(), this.$d = ie.set(m, Math.min(this.$D, ie.daysInMonth())).$d;
|
|
3037
3038
|
} else
|
|
3038
3039
|
ee && this.$d[ee](re);
|
|
3039
3040
|
return this.init(), this;
|
|
3040
|
-
}, R.set = function(I,
|
|
3041
|
-
return this.clone().$set(I,
|
|
3041
|
+
}, R.set = function(I, x) {
|
|
3042
|
+
return this.clone().$set(I, x);
|
|
3042
3043
|
}, R.get = function(I) {
|
|
3043
|
-
return this[
|
|
3044
|
-
}, R.add = function(I,
|
|
3044
|
+
return this[S.p(I)]();
|
|
3045
|
+
}, R.add = function(I, x) {
|
|
3045
3046
|
var M, V = this;
|
|
3046
3047
|
I = Number(I);
|
|
3047
|
-
var Y =
|
|
3048
|
+
var Y = S.p(x), ee = function(pe) {
|
|
3048
3049
|
var ve = g(V);
|
|
3049
|
-
return
|
|
3050
|
+
return S.w(ve.date(ve.date() + Math.round(pe * I)), V);
|
|
3050
3051
|
};
|
|
3051
3052
|
if (Y === c)
|
|
3052
3053
|
return this.set(c, this.$M + I);
|
|
@@ -3057,52 +3058,52 @@ var Ko = { exports: {} };
|
|
|
3057
3058
|
if (Y === f)
|
|
3058
3059
|
return ee(7);
|
|
3059
3060
|
var re = (M = {}, M[o] = r, M[l] = i, M[s] = n, M)[Y] || 1, ie = this.$d.getTime() + I * re;
|
|
3060
|
-
return
|
|
3061
|
-
}, R.subtract = function(I,
|
|
3062
|
-
return this.add(-1 * I,
|
|
3061
|
+
return S.w(ie, this);
|
|
3062
|
+
}, R.subtract = function(I, x) {
|
|
3063
|
+
return this.add(-1 * I, x);
|
|
3063
3064
|
}, R.format = function(I) {
|
|
3064
|
-
var
|
|
3065
|
+
var x = this, M = this.$locale();
|
|
3065
3066
|
if (!this.isValid())
|
|
3066
3067
|
return M.invalidDate || h;
|
|
3067
|
-
var V = I || "YYYY-MM-DDTHH:mm:ssZ", Y =
|
|
3068
|
-
return Ee && (Ee[De] || Ee(
|
|
3068
|
+
var V = I || "YYYY-MM-DDTHH:mm:ssZ", Y = S.z(this), ee = this.$H, re = this.$m, ie = this.$M, pe = M.weekdays, ve = M.months, $e = M.meridiem, Pe = function(Ee, De, je, We) {
|
|
3069
|
+
return Ee && (Ee[De] || Ee(x, V)) || je[De].slice(0, We);
|
|
3069
3070
|
}, Fe = function(Ee) {
|
|
3070
|
-
return
|
|
3071
|
+
return S.s(ee % 12 || 12, Ee, "0");
|
|
3071
3072
|
}, Ie = $e || function(Ee, De, je) {
|
|
3072
3073
|
var We = Ee < 12 ? "AM" : "PM";
|
|
3073
3074
|
return je ? We.toLowerCase() : We;
|
|
3074
3075
|
};
|
|
3075
|
-
return V.replace(
|
|
3076
|
+
return V.replace(w, function(Ee, De) {
|
|
3076
3077
|
return De || function(je) {
|
|
3077
3078
|
switch (je) {
|
|
3078
3079
|
case "YY":
|
|
3079
|
-
return String(
|
|
3080
|
+
return String(x.$y).slice(-2);
|
|
3080
3081
|
case "YYYY":
|
|
3081
|
-
return
|
|
3082
|
+
return S.s(x.$y, 4, "0");
|
|
3082
3083
|
case "M":
|
|
3083
3084
|
return ie + 1;
|
|
3084
3085
|
case "MM":
|
|
3085
|
-
return
|
|
3086
|
+
return S.s(ie + 1, 2, "0");
|
|
3086
3087
|
case "MMM":
|
|
3087
3088
|
return Pe(M.monthsShort, ie, ve, 3);
|
|
3088
3089
|
case "MMMM":
|
|
3089
3090
|
return Pe(ve, ie);
|
|
3090
3091
|
case "D":
|
|
3091
|
-
return
|
|
3092
|
+
return x.$D;
|
|
3092
3093
|
case "DD":
|
|
3093
|
-
return
|
|
3094
|
+
return S.s(x.$D, 2, "0");
|
|
3094
3095
|
case "d":
|
|
3095
|
-
return String(
|
|
3096
|
+
return String(x.$W);
|
|
3096
3097
|
case "dd":
|
|
3097
|
-
return Pe(M.weekdaysMin,
|
|
3098
|
+
return Pe(M.weekdaysMin, x.$W, pe, 2);
|
|
3098
3099
|
case "ddd":
|
|
3099
|
-
return Pe(M.weekdaysShort,
|
|
3100
|
+
return Pe(M.weekdaysShort, x.$W, pe, 3);
|
|
3100
3101
|
case "dddd":
|
|
3101
|
-
return pe[
|
|
3102
|
+
return pe[x.$W];
|
|
3102
3103
|
case "H":
|
|
3103
3104
|
return String(ee);
|
|
3104
3105
|
case "HH":
|
|
3105
|
-
return
|
|
3106
|
+
return S.s(ee, 2, "0");
|
|
3106
3107
|
case "h":
|
|
3107
3108
|
return Fe(1);
|
|
3108
3109
|
case "hh":
|
|
@@ -3114,13 +3115,13 @@ var Ko = { exports: {} };
|
|
|
3114
3115
|
case "m":
|
|
3115
3116
|
return String(re);
|
|
3116
3117
|
case "mm":
|
|
3117
|
-
return
|
|
3118
|
+
return S.s(re, 2, "0");
|
|
3118
3119
|
case "s":
|
|
3119
|
-
return String(
|
|
3120
|
+
return String(x.$s);
|
|
3120
3121
|
case "ss":
|
|
3121
|
-
return
|
|
3122
|
+
return S.s(x.$s, 2, "0");
|
|
3122
3123
|
case "SSS":
|
|
3123
|
-
return
|
|
3124
|
+
return S.s(x.$ms, 3, "0");
|
|
3124
3125
|
case "Z":
|
|
3125
3126
|
return Y;
|
|
3126
3127
|
}
|
|
@@ -3129,9 +3130,9 @@ var Ko = { exports: {} };
|
|
|
3129
3130
|
});
|
|
3130
3131
|
}, R.utcOffset = function() {
|
|
3131
3132
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3132
|
-
}, R.diff = function(I,
|
|
3133
|
-
var V, Y = this, ee =
|
|
3134
|
-
return
|
|
3133
|
+
}, R.diff = function(I, x, M) {
|
|
3134
|
+
var V, Y = this, ee = S.p(x), re = g(I), ie = (re.utcOffset() - this.utcOffset()) * r, pe = this - re, ve = function() {
|
|
3135
|
+
return S.m(Y, re);
|
|
3135
3136
|
};
|
|
3136
3137
|
switch (ee) {
|
|
3137
3138
|
case p:
|
|
@@ -3161,18 +3162,18 @@ var Ko = { exports: {} };
|
|
|
3161
3162
|
default:
|
|
3162
3163
|
V = pe;
|
|
3163
3164
|
}
|
|
3164
|
-
return M ? V :
|
|
3165
|
+
return M ? V : S.a(V);
|
|
3165
3166
|
}, R.daysInMonth = function() {
|
|
3166
3167
|
return this.endOf(c).$D;
|
|
3167
3168
|
}, R.$locale = function() {
|
|
3168
|
-
return
|
|
3169
|
-
}, R.locale = function(I,
|
|
3169
|
+
return T[this.$L];
|
|
3170
|
+
}, R.locale = function(I, x) {
|
|
3170
3171
|
if (!I)
|
|
3171
3172
|
return this.$L;
|
|
3172
|
-
var M = this.clone(), V =
|
|
3173
|
+
var M = this.clone(), V = b(I, x, !0);
|
|
3173
3174
|
return V && (M.$L = V), M;
|
|
3174
3175
|
}, R.clone = function() {
|
|
3175
|
-
return
|
|
3176
|
+
return S.w(this.$d, this);
|
|
3176
3177
|
}, R.toDate = function() {
|
|
3177
3178
|
return new Date(this.valueOf());
|
|
3178
3179
|
}, R.toJSON = function() {
|
|
@@ -3181,17 +3182,17 @@ var Ko = { exports: {} };
|
|
|
3181
3182
|
return this.$d.toISOString();
|
|
3182
3183
|
}, R.toString = function() {
|
|
3183
3184
|
return this.$d.toUTCString();
|
|
3184
|
-
},
|
|
3185
|
-
}(),
|
|
3186
|
-
return g.prototype =
|
|
3187
|
-
|
|
3188
|
-
return this.$g(R,
|
|
3185
|
+
}, L;
|
|
3186
|
+
}(), F = P.prototype;
|
|
3187
|
+
return g.prototype = F, [["$ms", a], ["$s", s], ["$m", o], ["$H", l], ["$W", u], ["$M", c], ["$y", p], ["$D", m]].forEach(function(L) {
|
|
3188
|
+
F[L[1]] = function(R) {
|
|
3189
|
+
return this.$g(R, L[0], L[1]);
|
|
3189
3190
|
};
|
|
3190
|
-
}), g.extend = function(
|
|
3191
|
-
return
|
|
3192
|
-
}, g.locale =
|
|
3193
|
-
return g(1e3 *
|
|
3194
|
-
}, g.en =
|
|
3191
|
+
}), g.extend = function(L, R) {
|
|
3192
|
+
return L.$i || (L(R, P, g), L.$i = !0), g;
|
|
3193
|
+
}, g.locale = b, g.isDayjs = _, g.unix = function(L) {
|
|
3194
|
+
return g(1e3 * L);
|
|
3195
|
+
}, g.en = T[C], g.Ls = T, g.p = {}, g;
|
|
3195
3196
|
});
|
|
3196
3197
|
})(Ko);
|
|
3197
3198
|
var hd = Ko.exports;
|
|
@@ -3940,14 +3941,14 @@ function Gn(e, t, n, r, i, a) {
|
|
|
3940
3941
|
var p = a.get(e);
|
|
3941
3942
|
if (p)
|
|
3942
3943
|
return p;
|
|
3943
|
-
a.set(e, s), um(e) ? e.forEach(function(
|
|
3944
|
-
s.add(Gn(
|
|
3945
|
-
}) : am(e) && e.forEach(function(
|
|
3946
|
-
s.set(
|
|
3944
|
+
a.set(e, s), um(e) ? e.forEach(function(v) {
|
|
3945
|
+
s.add(Gn(v, t, n, v, e, a));
|
|
3946
|
+
}) : am(e) && e.forEach(function(v, w) {
|
|
3947
|
+
s.set(w, Gn(v, t, n, w, e, a));
|
|
3947
3948
|
});
|
|
3948
3949
|
var m = u ? l ? cs : qr : l ? Si : Ht, h = f ? void 0 : m(e);
|
|
3949
|
-
return cp(h || e, function(
|
|
3950
|
-
h && (
|
|
3950
|
+
return cp(h || e, function(v, w) {
|
|
3951
|
+
h && (w = v, v = e[w]), yi(s, w, Gn(v, t, n, w, e, a));
|
|
3951
3952
|
}), s;
|
|
3952
3953
|
}
|
|
3953
3954
|
var Lm = 1, xm = 4;
|
|
@@ -3989,16 +3990,16 @@ function gs(e, t, n, r, i, a) {
|
|
|
3989
3990
|
for (a.set(e, t), a.set(t, e); ++c < o; ) {
|
|
3990
3991
|
var m = e[c], h = t[c];
|
|
3991
3992
|
if (r)
|
|
3992
|
-
var
|
|
3993
|
-
if (
|
|
3994
|
-
if (
|
|
3993
|
+
var v = s ? r(h, m, c, t, e, a) : r(m, h, c, e, t, a);
|
|
3994
|
+
if (v !== void 0) {
|
|
3995
|
+
if (v)
|
|
3995
3996
|
continue;
|
|
3996
3997
|
d = !1;
|
|
3997
3998
|
break;
|
|
3998
3999
|
}
|
|
3999
4000
|
if (p) {
|
|
4000
|
-
if (!Bm(t, function(
|
|
4001
|
-
if (!hs(p, O) && (m ===
|
|
4001
|
+
if (!Bm(t, function(w, O) {
|
|
4002
|
+
if (!hs(p, O) && (m === w || i(m, w, n, r, a)))
|
|
4002
4003
|
return p.push(O);
|
|
4003
4004
|
})) {
|
|
4004
4005
|
d = !1;
|
|
@@ -4074,18 +4075,18 @@ function lv(e, t, n, r, i, a) {
|
|
|
4074
4075
|
return p == t && m == e;
|
|
4075
4076
|
var h = !0;
|
|
4076
4077
|
a.set(e, t), a.set(t, e);
|
|
4077
|
-
for (var
|
|
4078
|
+
for (var v = s; ++c < l; ) {
|
|
4078
4079
|
d = o[c];
|
|
4079
|
-
var
|
|
4080
|
+
var w = e[d], O = t[d];
|
|
4080
4081
|
if (r)
|
|
4081
|
-
var
|
|
4082
|
-
if (!(
|
|
4082
|
+
var y = s ? r(O, w, d, t, e, a) : r(w, O, d, e, t, a);
|
|
4083
|
+
if (!(y === void 0 ? w === O || i(w, O, n, r, a) : y)) {
|
|
4083
4084
|
h = !1;
|
|
4084
4085
|
break;
|
|
4085
4086
|
}
|
|
4086
|
-
|
|
4087
|
+
v || (v = d == "constructor");
|
|
4087
4088
|
}
|
|
4088
|
-
if (h && !
|
|
4089
|
+
if (h && !v) {
|
|
4089
4090
|
var $ = e.constructor, C = t.constructor;
|
|
4090
4091
|
$ != C && "constructor" in e && "constructor" in t && !(typeof $ == "function" && $ instanceof $ && typeof C == "function" && C instanceof C) && (h = !1);
|
|
4091
4092
|
}
|
|
@@ -4106,8 +4107,8 @@ function fv(e, t, n, r, i, a) {
|
|
|
4106
4107
|
if (!(n & uv)) {
|
|
4107
4108
|
var p = f && Ha.call(e, "__wrapped__"), m = c && Ha.call(t, "__wrapped__");
|
|
4108
4109
|
if (p || m) {
|
|
4109
|
-
var h = p ? e.value() : e,
|
|
4110
|
-
return a || (a = new et()), i(h,
|
|
4110
|
+
var h = p ? e.value() : e, v = m ? t.value() : t;
|
|
4111
|
+
return a || (a = new et()), i(h, v, n, r, a);
|
|
4111
4112
|
}
|
|
4112
4113
|
}
|
|
4113
4114
|
return d ? (a || (a = new et()), lv(e, t, n, r, i, a)) : !1;
|
|
@@ -4257,47 +4258,47 @@ function Ga(e, t, n) {
|
|
|
4257
4258
|
if (typeof e != "function")
|
|
4258
4259
|
throw new TypeError(Lv);
|
|
4259
4260
|
t = Hr(t) || 0, Ve(n) && (f = !!n.leading, c = "maxWait" in n, a = c ? xv(Hr(n.maxWait) || 0, t) : a, d = "trailing" in n ? !!n.trailing : d);
|
|
4260
|
-
function p(
|
|
4261
|
-
var
|
|
4262
|
-
return r = i = void 0, u =
|
|
4261
|
+
function p(T) {
|
|
4262
|
+
var E = r, _ = i;
|
|
4263
|
+
return r = i = void 0, u = T, s = e.apply(_, E), s;
|
|
4263
4264
|
}
|
|
4264
|
-
function m(
|
|
4265
|
-
return u =
|
|
4265
|
+
function m(T) {
|
|
4266
|
+
return u = T, o = setTimeout(w, t), f ? p(T) : s;
|
|
4266
4267
|
}
|
|
4267
|
-
function h(
|
|
4268
|
-
var
|
|
4269
|
-
return c ? Fv(
|
|
4268
|
+
function h(T) {
|
|
4269
|
+
var E = T - l, _ = T - u, b = t - E;
|
|
4270
|
+
return c ? Fv(b, a - _) : b;
|
|
4270
4271
|
}
|
|
4271
|
-
function
|
|
4272
|
-
var
|
|
4273
|
-
return l === void 0 ||
|
|
4272
|
+
function v(T) {
|
|
4273
|
+
var E = T - l, _ = T - u;
|
|
4274
|
+
return l === void 0 || E >= t || E < 0 || c && _ >= a;
|
|
4274
4275
|
}
|
|
4275
|
-
function
|
|
4276
|
-
var
|
|
4277
|
-
if (
|
|
4278
|
-
return O(
|
|
4279
|
-
o = setTimeout(
|
|
4276
|
+
function w() {
|
|
4277
|
+
var T = Lr();
|
|
4278
|
+
if (v(T))
|
|
4279
|
+
return O(T);
|
|
4280
|
+
o = setTimeout(w, h(T));
|
|
4280
4281
|
}
|
|
4281
|
-
function O(
|
|
4282
|
-
return o = void 0, d && r ? p(
|
|
4282
|
+
function O(T) {
|
|
4283
|
+
return o = void 0, d && r ? p(T) : (r = i = void 0, s);
|
|
4283
4284
|
}
|
|
4284
|
-
function
|
|
4285
|
+
function y() {
|
|
4285
4286
|
o !== void 0 && clearTimeout(o), u = 0, r = l = i = o = void 0;
|
|
4286
4287
|
}
|
|
4287
4288
|
function $() {
|
|
4288
4289
|
return o === void 0 ? s : O(Lr());
|
|
4289
4290
|
}
|
|
4290
4291
|
function C() {
|
|
4291
|
-
var
|
|
4292
|
-
if (r = arguments, i = this, l =
|
|
4292
|
+
var T = Lr(), E = v(T);
|
|
4293
|
+
if (r = arguments, i = this, l = T, E) {
|
|
4293
4294
|
if (o === void 0)
|
|
4294
4295
|
return m(l);
|
|
4295
4296
|
if (c)
|
|
4296
|
-
return clearTimeout(o), o = setTimeout(
|
|
4297
|
+
return clearTimeout(o), o = setTimeout(w, t), p(l);
|
|
4297
4298
|
}
|
|
4298
|
-
return o === void 0 && (o = setTimeout(
|
|
4299
|
+
return o === void 0 && (o = setTimeout(w, t)), s;
|
|
4299
4300
|
}
|
|
4300
|
-
return C.cancel =
|
|
4301
|
+
return C.cancel = y, C.flush = $, C;
|
|
4301
4302
|
}
|
|
4302
4303
|
function jv(e, t, n) {
|
|
4303
4304
|
for (var r = -1, i = e == null ? 0 : e.length; ++r < i; )
|
|
@@ -4548,26 +4549,26 @@ const Er = oi(() => {
|
|
|
4548
4549
|
if (o.status === "fulfilled") {
|
|
4549
4550
|
const { value: u } = o, { labelKey: f, valueKey: c, childrenKey: d, dataType: p, dataKey: m, groupKey: h } = r[i[l]];
|
|
4550
4551
|
if (u.success) {
|
|
4551
|
-
const
|
|
4552
|
-
Object.prototype.toString.call(O) === "[object Array]" ? p === "Cascader" ? e[i[l]] = O.map((
|
|
4552
|
+
const v = br(u, m || "data"), w = (O) => {
|
|
4553
|
+
Object.prototype.toString.call(O) === "[object Array]" ? p === "Cascader" ? e[i[l]] = O.map((y) => Jr(y, {
|
|
4553
4554
|
[c || "value"]: "value",
|
|
4554
4555
|
[f || "label"]: "label",
|
|
4555
4556
|
[d || "children"]: "children"
|
|
4556
4557
|
})) : e[i[l]] = [
|
|
4557
4558
|
...ke(e[i[l]] || []),
|
|
4558
|
-
...O.map((
|
|
4559
|
-
let $ =
|
|
4560
|
-
return Za.test(f) && ($ = f.replace(Za, (C,
|
|
4561
|
-
...h ? { group:
|
|
4559
|
+
...O.map((y) => {
|
|
4560
|
+
let $ = y[f];
|
|
4561
|
+
return Za.test(f) && ($ = f.replace(Za, (C, T) => y[T])), {
|
|
4562
|
+
...h ? { group: y[h] } : {},
|
|
4562
4563
|
label: $,
|
|
4563
|
-
value:
|
|
4564
|
+
value: y[c]
|
|
4564
4565
|
};
|
|
4565
4566
|
})
|
|
4566
|
-
] : Object.prototype.toString.call(O) === "[object Object]" && Object.keys(O).forEach((
|
|
4567
|
-
|
|
4567
|
+
] : Object.prototype.toString.call(O) === "[object Object]" && Object.keys(O).forEach((y) => {
|
|
4568
|
+
w(O[y]);
|
|
4568
4569
|
});
|
|
4569
4570
|
};
|
|
4570
|
-
|
|
4571
|
+
w(v);
|
|
4571
4572
|
}
|
|
4572
4573
|
} else
|
|
4573
4574
|
console.warn(`【enumeration】: ${i[l]}: 获取失败`);
|
|
@@ -4614,13 +4615,13 @@ const Er = oi(() => {
|
|
|
4614
4615
|
if (!C || !C.style || Object.prototype.toString.call(C.style) === "[object Object]")
|
|
4615
4616
|
return C;
|
|
4616
4617
|
const {
|
|
4617
|
-
style:
|
|
4618
|
-
...
|
|
4618
|
+
style: T,
|
|
4619
|
+
...E
|
|
4619
4620
|
} = C;
|
|
4620
4621
|
try {
|
|
4621
|
-
const _ = JSON.parse(
|
|
4622
|
+
const _ = JSON.parse(T);
|
|
4622
4623
|
return {
|
|
4623
|
-
...
|
|
4624
|
+
...E,
|
|
4624
4625
|
style: _
|
|
4625
4626
|
};
|
|
4626
4627
|
} catch (_) {
|
|
@@ -4628,17 +4629,17 @@ const Er = oi(() => {
|
|
|
4628
4629
|
}
|
|
4629
4630
|
}
|
|
4630
4631
|
const c = f(u), d = r.value.filterGroups || [], p = r.value.refEnum || "", m = G(() => {
|
|
4631
|
-
var C,
|
|
4632
|
-
return ((
|
|
4633
|
-
}), h = D([]),
|
|
4632
|
+
var C, T;
|
|
4633
|
+
return ((T = i[p]) == null ? void 0 : T.filter((C = r.value.filterGroups) != null && C.length ? (E) => d.includes(E.group) : () => !0)) || [];
|
|
4634
|
+
}), h = D([]), v = at(r.value.filterUrl || `/duckbill-data-query-server/table/column/${r.value.filterKey}`, r.value.filterMethod || "post"), w = Ce("transformFuzzy", {})[r.value.fieldName], O = (C, T) => {
|
|
4634
4635
|
var _;
|
|
4635
|
-
const
|
|
4636
|
-
return E
|
|
4637
|
-
},
|
|
4636
|
+
const E = r.value.filterKey || "label";
|
|
4637
|
+
return T[E] || console.warn(`not found key 【${E}】 in option`), ((_ = T[E]) == null ? void 0 : _.indexOf(C.toString())) > -1;
|
|
4638
|
+
}, y = G(() => {
|
|
4638
4639
|
switch (r.value.type) {
|
|
4639
4640
|
case xr:
|
|
4640
4641
|
return Ga(async function(C) {
|
|
4641
|
-
const
|
|
4642
|
+
const T = Ai({
|
|
4642
4643
|
conditions: r.value.fuzzyCode ? {
|
|
4643
4644
|
key: C,
|
|
4644
4645
|
code: r.value.fuzzyCode
|
|
@@ -4647,26 +4648,26 @@ const Er = oi(() => {
|
|
|
4647
4648
|
conditionKey: r.value.conditionKey || "params",
|
|
4648
4649
|
metaKey: r.value.metaKey
|
|
4649
4650
|
}
|
|
4650
|
-
}),
|
|
4651
|
+
}), E = await v(T), _ = w ? w(E) : E;
|
|
4651
4652
|
h.value = _;
|
|
4652
4653
|
}, 200);
|
|
4653
4654
|
case zn:
|
|
4654
4655
|
return Ga(async function(C) {
|
|
4655
4656
|
const {
|
|
4656
|
-
category:
|
|
4657
|
-
tab:
|
|
4658
|
-
} = n.meta, _ = await
|
|
4657
|
+
category: T,
|
|
4658
|
+
tab: E
|
|
4659
|
+
} = n.meta, _ = await v({
|
|
4659
4660
|
sliceNumber: "50",
|
|
4660
|
-
category:
|
|
4661
|
-
tab:
|
|
4661
|
+
category: T,
|
|
4662
|
+
tab: E,
|
|
4662
4663
|
code: C
|
|
4663
4664
|
});
|
|
4664
|
-
r.value.fuzzyMatch ? h.value = _.data.map((
|
|
4665
|
-
value:
|
|
4666
|
-
label:
|
|
4667
|
-
})) : h.value = _.data.map((
|
|
4668
|
-
value:
|
|
4669
|
-
label:
|
|
4665
|
+
r.value.fuzzyMatch ? h.value = _.data.map((b) => ({
|
|
4666
|
+
value: b,
|
|
4667
|
+
label: b
|
|
4668
|
+
})) : h.value = _.data.map((b) => ({
|
|
4669
|
+
value: b.id,
|
|
4670
|
+
label: b.name
|
|
4670
4671
|
}));
|
|
4671
4672
|
}, 200);
|
|
4672
4673
|
default:
|
|
@@ -4697,7 +4698,7 @@ const Er = oi(() => {
|
|
|
4697
4698
|
...tn({
|
|
4698
4699
|
notFoundContent: zn === r.value.type ? null : !0
|
|
4699
4700
|
}, Qv),
|
|
4700
|
-
onSearch:
|
|
4701
|
+
onSearch: y.value,
|
|
4701
4702
|
// for selection components
|
|
4702
4703
|
options: $.value,
|
|
4703
4704
|
// all other props
|
|
@@ -4768,20 +4769,20 @@ const Er = oi(() => {
|
|
|
4768
4769
|
p().then(() => e.current === 1 ? t("search") : t("update:current", 1)).catch((O) => {
|
|
4769
4770
|
console.log(O);
|
|
4770
4771
|
});
|
|
4771
|
-
},
|
|
4772
|
+
}, v = (O) => O.label.slice(0, 10);
|
|
4772
4773
|
ne(u, () => t("changeExpand"));
|
|
4773
|
-
const
|
|
4774
|
+
const w = G(() => u.value || !l.value ? (6 - a.value.length % 6) * 4 : 24);
|
|
4774
4775
|
return n({ resetFields: d }), {
|
|
4775
4776
|
expand: u,
|
|
4776
4777
|
pageName: o,
|
|
4777
4778
|
formState: f,
|
|
4778
|
-
serachSpan:
|
|
4779
|
+
serachSpan: w,
|
|
4779
4780
|
validateInfos: m,
|
|
4780
4781
|
showAvailiableTrigger: l,
|
|
4781
4782
|
AVAILIABLE_EXPAND_LINE: 3,
|
|
4782
4783
|
CONDITION_COUNT_PER_LINE: 6,
|
|
4783
4784
|
onSubmit: h,
|
|
4784
|
-
getItemLabel:
|
|
4785
|
+
getItemLabel: v
|
|
4785
4786
|
};
|
|
4786
4787
|
}
|
|
4787
4788
|
});
|
|
@@ -4792,30 +4793,30 @@ function Sy(e, t, n, r, i, a) {
|
|
|
4792
4793
|
"label-col": { span: 8 },
|
|
4793
4794
|
"wrapper-col": { span: 16 }
|
|
4794
4795
|
}, {
|
|
4795
|
-
default:
|
|
4796
|
+
default: j(() => [
|
|
4796
4797
|
W(p, { gutter: 24 }, {
|
|
4797
|
-
default:
|
|
4798
|
-
(k(!0), Z(he, null, Me(e.config, (h,
|
|
4799
|
-
var
|
|
4798
|
+
default: j(() => [
|
|
4799
|
+
(k(!0), Z(he, null, Me(e.config, (h, v) => {
|
|
4800
|
+
var w;
|
|
4800
4801
|
return ni((k(), X(l, {
|
|
4801
4802
|
key: h.fieldName,
|
|
4802
|
-
span: ((
|
|
4803
|
+
span: ((w = h.otherProps) == null ? void 0 : w.span) || 4,
|
|
4803
4804
|
class: "conditions-item-col"
|
|
4804
4805
|
}, {
|
|
4805
|
-
default:
|
|
4806
|
-
var O,
|
|
4806
|
+
default: j(() => {
|
|
4807
|
+
var O, y;
|
|
4807
4808
|
return [
|
|
4808
4809
|
W(o, Ge(e.validateInfos[h.fieldName], {
|
|
4809
4810
|
colon: !1,
|
|
4810
4811
|
"label-col": (O = h.otherProps) == null ? void 0 : O.labelCol,
|
|
4811
|
-
"wrapper-col": (
|
|
4812
|
+
"wrapper-col": (y = h.otherProps) == null ? void 0 : y.wrapperCol,
|
|
4812
4813
|
label: e.getItemLabel(h),
|
|
4813
4814
|
class: {
|
|
4814
4815
|
"form-item-with-small-fonts": e.getItemLabel(h).length > 4,
|
|
4815
4816
|
[`form-item-words${e.getItemLabel(h).length}`]: !0
|
|
4816
4817
|
}
|
|
4817
4818
|
}), {
|
|
4818
|
-
default:
|
|
4819
|
+
default: j(() => [
|
|
4819
4820
|
W(s, {
|
|
4820
4821
|
value: e.formState[e.pageName][h.fieldName],
|
|
4821
4822
|
"onUpdate:value": ($) => e.formState[e.pageName][h.fieldName] = $,
|
|
@@ -4829,20 +4830,20 @@ function Sy(e, t, n, r, i, a) {
|
|
|
4829
4830
|
}),
|
|
4830
4831
|
_: 2
|
|
4831
4832
|
}, 1032, ["span"])), [
|
|
4832
|
-
[lo, e.expand || !e.showAvailiableTrigger ||
|
|
4833
|
+
[lo, e.expand || !e.showAvailiableTrigger || v < e.CONDITION_COUNT_PER_LINE]
|
|
4833
4834
|
]);
|
|
4834
4835
|
}), 128)),
|
|
4835
4836
|
W(l, { span: e.serachSpan }, {
|
|
4836
|
-
default:
|
|
4837
|
+
default: j(() => [
|
|
4837
4838
|
W(d, { style: { float: "right", "padding-right": "12px" } }, {
|
|
4838
|
-
default:
|
|
4839
|
+
default: j(() => [
|
|
4839
4840
|
W(u, {
|
|
4840
4841
|
type: "primary",
|
|
4841
4842
|
size: "small",
|
|
4842
4843
|
onClick: uo(e.onSubmit, ["prevent"]),
|
|
4843
4844
|
loading: e.searching
|
|
4844
4845
|
}, {
|
|
4845
|
-
default:
|
|
4846
|
+
default: j(() => [
|
|
4846
4847
|
be("查询")
|
|
4847
4848
|
]),
|
|
4848
4849
|
_: 1
|
|
@@ -4851,7 +4852,7 @@ function Sy(e, t, n, r, i, a) {
|
|
|
4851
4852
|
size: "small",
|
|
4852
4853
|
onClick: t[0] || (t[0] = (h) => e.$emit("resetSearch"))
|
|
4853
4854
|
}, {
|
|
4854
|
-
default:
|
|
4855
|
+
default: j(() => [
|
|
4855
4856
|
be("重置")
|
|
4856
4857
|
]),
|
|
4857
4858
|
_: 1
|
|
@@ -4966,8 +4967,8 @@ const Cy = /* @__PURE__ */ Qe(wy, [["render", Sy]]), An = oi(() => {
|
|
|
4966
4967
|
},
|
|
4967
4968
|
emits: ["buttonClick", "update:current", "update:pageSize", "customizeSetting", "refresh"],
|
|
4968
4969
|
setup(e, { emit: t }) {
|
|
4969
|
-
var
|
|
4970
|
-
const { current: n, pageSize: r, exportConfig: i, importConfig: a, pageSizeOptions: s } = Xe(e), o = D(!1), l = D(!1), u = Ce("pageName", ""), { selectedRows: f } = An(), c = G(() => s.value || Ss), d = (g,
|
|
4970
|
+
var T, E, _, b;
|
|
4971
|
+
const { current: n, pageSize: r, exportConfig: i, importConfig: a, pageSizeOptions: s } = Xe(e), o = D(!1), l = D(!1), u = Ce("pageName", ""), { selectedRows: f } = An(), c = G(() => s.value || Ss), d = (g, S) => {
|
|
4971
4972
|
if (g.needSelectRows) {
|
|
4972
4973
|
if (!f[u].length) {
|
|
4973
4974
|
Te.warn("请选择数据");
|
|
@@ -4978,48 +4979,48 @@ const Cy = /* @__PURE__ */ Qe(wy, [["render", Sy]]), An = oi(() => {
|
|
|
4978
4979
|
return;
|
|
4979
4980
|
}
|
|
4980
4981
|
}
|
|
4981
|
-
t("buttonClick", g.action,
|
|
4982
|
+
t("buttonClick", g.action, S);
|
|
4982
4983
|
}, p = G({
|
|
4983
4984
|
get: () => n.value,
|
|
4984
4985
|
set: (g) => t("update:current", g)
|
|
4985
4986
|
}), m = G({
|
|
4986
4987
|
get: () => r.value,
|
|
4987
4988
|
set: (g) => {
|
|
4988
|
-
const
|
|
4989
|
-
p.value >
|
|
4989
|
+
const S = Math.ceil(e.total / g);
|
|
4990
|
+
p.value > S && (p.value = S), t("update:pageSize", g);
|
|
4990
4991
|
}
|
|
4991
|
-
}), h = Ce("paramsGuard", (g) => g),
|
|
4992
|
+
}), h = Ce("paramsGuard", (g) => g), v = (T = i.value) != null && T.url ? at((E = i.value) == null ? void 0 : E.url, "post", {
|
|
4992
4993
|
responseType: "blob",
|
|
4993
4994
|
...i.value.requestOptions
|
|
4994
|
-
}) : null,
|
|
4995
|
+
}) : null, w = (b = (_ = a.value) == null ? void 0 : _.children) != null && b.length ? a.value.children.map((g) => at(g.url, "post", {
|
|
4995
4996
|
...g.requestOptions
|
|
4996
4997
|
})) : [], O = async () => {
|
|
4997
4998
|
var P;
|
|
4998
|
-
const { formState: g } = _n(),
|
|
4999
|
+
const { formState: g } = _n(), S = i.value ? Ai({
|
|
4999
5000
|
conditions: ke(g[u]),
|
|
5000
5001
|
apiConfig: i.value
|
|
5001
5002
|
}) : {};
|
|
5002
|
-
h(
|
|
5003
|
+
h(S, u);
|
|
5003
5004
|
try {
|
|
5004
5005
|
o.value = !0;
|
|
5005
|
-
const
|
|
5006
|
-
if (!
|
|
5006
|
+
const F = await v(S);
|
|
5007
|
+
if (!F)
|
|
5007
5008
|
return;
|
|
5008
|
-
const
|
|
5009
|
+
const L = /\{\{(.+?)\}\}/g;
|
|
5009
5010
|
let R = ((P = i.value) == null ? void 0 : P.fileName) || "", I = null;
|
|
5010
|
-
for (; (I =
|
|
5011
|
+
for (; (I = L.exec(R)) !== null; )
|
|
5011
5012
|
I[1] === "Date" && (R = R.replace(I[0], Uo().format("YYYY-MM-DD")));
|
|
5012
|
-
const
|
|
5013
|
-
if (
|
|
5013
|
+
const x = document.createElement("a"), M = window.URL.createObjectURL(new Blob([F]));
|
|
5014
|
+
if (x.href = M, x.download = R, document.body.appendChild(x), x.click(), document.body.removeChild(x), window.URL.revokeObjectURL(M), i.value.needFeedback === !1)
|
|
5014
5015
|
return;
|
|
5015
5016
|
Te.success("导出成功");
|
|
5016
|
-
} catch (
|
|
5017
|
-
console.warn("export error: ",
|
|
5017
|
+
} catch (F) {
|
|
5018
|
+
console.warn("export error: ", F);
|
|
5018
5019
|
} finally {
|
|
5019
5020
|
o.value = !1;
|
|
5020
5021
|
}
|
|
5021
|
-
},
|
|
5022
|
-
switch (
|
|
5022
|
+
}, y = ({ url: g, type: S }) => {
|
|
5023
|
+
switch (S) {
|
|
5023
5024
|
case "TEMPLATE_LOCAL":
|
|
5024
5025
|
window.open(g);
|
|
5025
5026
|
break;
|
|
@@ -5027,28 +5028,28 @@ const Cy = /* @__PURE__ */ Qe(wy, [["render", Sy]]), An = oi(() => {
|
|
|
5027
5028
|
}, $ = async ({
|
|
5028
5029
|
accept: g
|
|
5029
5030
|
/** feedback = true, needRefresh = true */
|
|
5030
|
-
},
|
|
5031
|
-
const P = /^\.[a-zA-Z]+$/,
|
|
5032
|
-
(I,
|
|
5033
|
-
if (!P.test(
|
|
5034
|
-
throw `请提供正确的文件后缀名,是否是 【.${
|
|
5035
|
-
return I[Oy[
|
|
5031
|
+
}, S) => {
|
|
5032
|
+
const P = /^\.[a-zA-Z]+$/, F = g == null ? void 0 : g.reduce(
|
|
5033
|
+
(I, x) => {
|
|
5034
|
+
if (!P.test(x))
|
|
5035
|
+
throw `请提供正确的文件后缀名,是否是 【.${x}】 ?`;
|
|
5036
|
+
return I[Oy[x]] = [x], I;
|
|
5036
5037
|
},
|
|
5037
5038
|
{}
|
|
5038
|
-
), [
|
|
5039
|
+
), [L] = await window.showOpenFilePicker({
|
|
5039
5040
|
types: [
|
|
5040
5041
|
{
|
|
5041
|
-
accept:
|
|
5042
|
+
accept: F
|
|
5042
5043
|
}
|
|
5043
5044
|
]
|
|
5044
5045
|
/** 文件选择器带有一个允许用户选择所有类型文件的过滤选项,默认为false */
|
|
5045
5046
|
// excludeAcceptAllOption: false,
|
|
5046
5047
|
/** 是否允许多选,默认为false */
|
|
5047
5048
|
// multiple: false,
|
|
5048
|
-
}), R = await
|
|
5049
|
+
}), R = await L.getFile();
|
|
5049
5050
|
if (R) {
|
|
5050
|
-
const I = S
|
|
5051
|
-
|
|
5051
|
+
const I = w[S], x = new FormData();
|
|
5052
|
+
x.append("file", R), l.value = !0, I(x).finally(() => {
|
|
5052
5053
|
l.value = !1;
|
|
5053
5054
|
});
|
|
5054
5055
|
}
|
|
@@ -5062,14 +5063,14 @@ const Cy = /* @__PURE__ */ Qe(wy, [["render", Sy]]), An = oi(() => {
|
|
|
5062
5063
|
computed_pageSize: m,
|
|
5063
5064
|
paginationSizeOptions: c,
|
|
5064
5065
|
OPERATIONS_EXPORT_MAP: _y,
|
|
5065
|
-
handleImport: (g,
|
|
5066
|
+
handleImport: (g, S) => {
|
|
5066
5067
|
const { type: P } = g;
|
|
5067
5068
|
if (["TEMPLATE_LOCAL"].includes(P)) {
|
|
5068
|
-
|
|
5069
|
+
y(g);
|
|
5069
5070
|
return;
|
|
5070
5071
|
}
|
|
5071
5072
|
if (["IMPORT"].includes(P)) {
|
|
5072
|
-
$(g,
|
|
5073
|
+
$(g, S);
|
|
5073
5074
|
return;
|
|
5074
5075
|
}
|
|
5075
5076
|
Te.warn(`请确认ImportConfigItem.type是否正确: ${P}`);
|
|
@@ -5081,24 +5082,24 @@ const Cy = /* @__PURE__ */ Qe(wy, [["render", Sy]]), An = oi(() => {
|
|
|
5081
5082
|
});
|
|
5082
5083
|
const Py = { class: "page-renderer-buttons" }, Iy = { class: "page-renderer-buttons-left" }, Dy = { key: 2 }, Ny = { class: "page-renderer-setting-trigger" }, Ry = { href: "javascript:;" };
|
|
5083
5084
|
function My(e, t, n, r, i, a) {
|
|
5084
|
-
const s = U("aicon"), o = U("MenuItem"), l = U("Menu"), u = U("Space"), f = U("Button"), c = U("Dropdown"), d = U("DownOutlined"), p = U("Pagination"), m = U("Select"), h = U("SettingOutlined"),
|
|
5085
|
+
const s = U("aicon"), o = U("MenuItem"), l = U("Menu"), u = U("Space"), f = U("Button"), c = U("Dropdown"), d = U("DownOutlined"), p = U("Pagination"), m = U("Select"), h = U("SettingOutlined"), v = Us("permission");
|
|
5085
5086
|
return k(), Z("div", Py, [
|
|
5086
5087
|
Ae("div", Iy, [
|
|
5087
5088
|
W(u, null, {
|
|
5088
|
-
default:
|
|
5089
|
-
(k(!0), Z(he, null, Me(e.config, (
|
|
5090
|
-
key: `${
|
|
5091
|
-
onClick: (
|
|
5089
|
+
default: j(() => [
|
|
5090
|
+
(k(!0), Z(he, null, Me(e.config, (w, O) => ni((k(), X(Bt(w.type), Ge(w.otherProps, {
|
|
5091
|
+
key: `${w.type}${O}`,
|
|
5092
|
+
onClick: (y) => e.handleButtonClick(w, y)
|
|
5092
5093
|
}), co({
|
|
5093
|
-
overlay:
|
|
5094
|
+
overlay: j(() => [
|
|
5094
5095
|
W(l, null, {
|
|
5095
|
-
default:
|
|
5096
|
-
(k(!0), Z(he, null, Me(
|
|
5097
|
-
key:
|
|
5098
|
-
onClick: ($) => e.handleButtonClick(
|
|
5096
|
+
default: j(() => [
|
|
5097
|
+
(k(!0), Z(he, null, Me(w.sublist, (y) => (k(), X(o, {
|
|
5098
|
+
key: y.action,
|
|
5099
|
+
onClick: ($) => e.handleButtonClick(y, $)
|
|
5099
5100
|
}, {
|
|
5100
|
-
default:
|
|
5101
|
-
be(Se(
|
|
5101
|
+
default: j(() => [
|
|
5102
|
+
be(Se(y.children), 1)
|
|
5102
5103
|
]),
|
|
5103
5104
|
_: 2
|
|
5104
5105
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5106,22 +5107,22 @@ function My(e, t, n, r, i, a) {
|
|
|
5106
5107
|
_: 2
|
|
5107
5108
|
}, 1024)
|
|
5108
5109
|
]),
|
|
5109
|
-
default:
|
|
5110
|
-
be(" " + Se(
|
|
5110
|
+
default: j(() => [
|
|
5111
|
+
be(" " + Se(w.children) + " ", 1)
|
|
5111
5112
|
]),
|
|
5112
5113
|
_: 2
|
|
5113
5114
|
}, [
|
|
5114
|
-
|
|
5115
|
+
w.iconType ? {
|
|
5115
5116
|
name: "icon",
|
|
5116
|
-
fn:
|
|
5117
|
+
fn: j(() => [
|
|
5117
5118
|
W(s, {
|
|
5118
|
-
type:
|
|
5119
|
+
type: w.iconType
|
|
5119
5120
|
}, null, 8, ["type"])
|
|
5120
5121
|
]),
|
|
5121
5122
|
key: "0"
|
|
5122
5123
|
} : void 0
|
|
5123
5124
|
]), 1040, ["onClick"])), [
|
|
5124
|
-
[
|
|
5125
|
+
[v, w.permissions]
|
|
5125
5126
|
])), 128))
|
|
5126
5127
|
]),
|
|
5127
5128
|
_: 1
|
|
@@ -5129,24 +5130,24 @@ function My(e, t, n, r, i, a) {
|
|
|
5129
5130
|
]),
|
|
5130
5131
|
Ae("div", null, [
|
|
5131
5132
|
W(u, null, {
|
|
5132
|
-
default:
|
|
5133
|
-
var
|
|
5133
|
+
default: j(() => {
|
|
5134
|
+
var w, O;
|
|
5134
5135
|
return [
|
|
5135
5136
|
e.hasApiConfig ? (k(), Z(he, { key: 0 }, [
|
|
5136
|
-
(
|
|
5137
|
+
(w = e.importConfig) != null && w.children ? (k(), X(c, {
|
|
5137
5138
|
key: 0,
|
|
5138
5139
|
trigger: ["click"],
|
|
5139
5140
|
disabled: e.importLoading
|
|
5140
5141
|
}, {
|
|
5141
|
-
overlay:
|
|
5142
|
+
overlay: j(() => [
|
|
5142
5143
|
W(l, null, {
|
|
5143
|
-
default:
|
|
5144
|
-
(k(!0), Z(he, null, Me(e.importConfig.children, (
|
|
5144
|
+
default: j(() => [
|
|
5145
|
+
(k(!0), Z(he, null, Me(e.importConfig.children, (y, $) => (k(), X(o, {
|
|
5145
5146
|
key: $,
|
|
5146
|
-
onClick: () => e.handleImport(
|
|
5147
|
+
onClick: () => e.handleImport(y, $)
|
|
5147
5148
|
}, {
|
|
5148
|
-
default:
|
|
5149
|
-
be(Se(
|
|
5149
|
+
default: j(() => [
|
|
5150
|
+
be(Se(y.title), 1)
|
|
5150
5151
|
]),
|
|
5151
5152
|
_: 2
|
|
5152
5153
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5154,13 +5155,13 @@ function My(e, t, n, r, i, a) {
|
|
|
5154
5155
|
_: 1
|
|
5155
5156
|
})
|
|
5156
5157
|
]),
|
|
5157
|
-
default:
|
|
5158
|
+
default: j(() => [
|
|
5158
5159
|
W(f, {
|
|
5159
5160
|
loading: e.importLoading,
|
|
5160
5161
|
size: "small",
|
|
5161
5162
|
type: "primary"
|
|
5162
5163
|
}, {
|
|
5163
|
-
default:
|
|
5164
|
+
default: j(() => [
|
|
5164
5165
|
be(Se(e.importConfig.title || "导入"), 1)
|
|
5165
5166
|
]),
|
|
5166
5167
|
_: 1
|
|
@@ -5175,7 +5176,7 @@ function My(e, t, n, r, i, a) {
|
|
|
5175
5176
|
loading: e.exportLoading,
|
|
5176
5177
|
onClick: t[0] || (t[0] = () => e.handleApiConfigExport())
|
|
5177
5178
|
}, {
|
|
5178
|
-
default:
|
|
5179
|
+
default: j(() => [
|
|
5179
5180
|
be(" 导出 ")
|
|
5180
5181
|
]),
|
|
5181
5182
|
_: 1
|
|
@@ -5186,15 +5187,15 @@ function My(e, t, n, r, i, a) {
|
|
|
5186
5187
|
trigger: ["click"],
|
|
5187
5188
|
disabled: e.importLoading
|
|
5188
5189
|
}, {
|
|
5189
|
-
overlay:
|
|
5190
|
+
overlay: j(() => [
|
|
5190
5191
|
W(l, null, {
|
|
5191
|
-
default:
|
|
5192
|
-
(k(!0), Z(he, null, Me(e.importConfig.sublist, (
|
|
5192
|
+
default: j(() => [
|
|
5193
|
+
(k(!0), Z(he, null, Me(e.importConfig.sublist, (y, $) => (k(), X(o, {
|
|
5193
5194
|
key: $,
|
|
5194
|
-
onClick: () => e.handleImport(
|
|
5195
|
+
onClick: () => e.handleImport(y, $)
|
|
5195
5196
|
}, {
|
|
5196
|
-
default:
|
|
5197
|
-
be(Se(
|
|
5197
|
+
default: j(() => [
|
|
5198
|
+
be(Se(y.title), 1)
|
|
5198
5199
|
]),
|
|
5199
5200
|
_: 2
|
|
5200
5201
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5202,13 +5203,13 @@ function My(e, t, n, r, i, a) {
|
|
|
5202
5203
|
_: 1
|
|
5203
5204
|
})
|
|
5204
5205
|
]),
|
|
5205
|
-
default:
|
|
5206
|
+
default: j(() => [
|
|
5206
5207
|
W(f, {
|
|
5207
5208
|
loading: e.importLoading,
|
|
5208
5209
|
size: "small",
|
|
5209
5210
|
type: "primary"
|
|
5210
5211
|
}, {
|
|
5211
|
-
default:
|
|
5212
|
+
default: j(() => [
|
|
5212
5213
|
be(Se(e.importConfig.title || "导入"), 1)
|
|
5213
5214
|
]),
|
|
5214
5215
|
_: 1
|
|
@@ -5217,14 +5218,14 @@ function My(e, t, n, r, i, a) {
|
|
|
5217
5218
|
_: 1
|
|
5218
5219
|
}, 8, ["disabled"])) : ge("", !0),
|
|
5219
5220
|
e.exportConfig ? (k(), X(c, { key: 1 }, {
|
|
5220
|
-
overlay:
|
|
5221
|
+
overlay: j(() => [
|
|
5221
5222
|
W(l, {
|
|
5222
|
-
onClick: t[1] || (t[1] = (
|
|
5223
|
+
onClick: t[1] || (t[1] = (y) => e.handleExport(y.key))
|
|
5223
5224
|
}, {
|
|
5224
|
-
default:
|
|
5225
|
-
(k(!0), Z(he, null, Me(e.OPERATIONS_EXPORT_MAP, (
|
|
5226
|
-
default:
|
|
5227
|
-
be(Se(
|
|
5225
|
+
default: j(() => [
|
|
5226
|
+
(k(!0), Z(he, null, Me(e.OPERATIONS_EXPORT_MAP, (y, $) => (k(), X(o, { key: $ }, {
|
|
5227
|
+
default: j(() => [
|
|
5228
|
+
be(Se(y), 1)
|
|
5228
5229
|
]),
|
|
5229
5230
|
_: 2
|
|
5230
5231
|
}, 1024))), 128))
|
|
@@ -5232,13 +5233,13 @@ function My(e, t, n, r, i, a) {
|
|
|
5232
5233
|
_: 1
|
|
5233
5234
|
})
|
|
5234
5235
|
]),
|
|
5235
|
-
default:
|
|
5236
|
+
default: j(() => [
|
|
5236
5237
|
W(f, {
|
|
5237
5238
|
size: "small",
|
|
5238
5239
|
type: "primary",
|
|
5239
5240
|
loading: e.exportLoading
|
|
5240
5241
|
}, {
|
|
5241
|
-
default:
|
|
5242
|
+
default: j(() => [
|
|
5242
5243
|
be(" 导出 "),
|
|
5243
5244
|
W(d)
|
|
5244
5245
|
]),
|
|
@@ -5252,16 +5253,16 @@ function My(e, t, n, r, i, a) {
|
|
|
5252
5253
|
W(p, {
|
|
5253
5254
|
class: "operations-pagination-simple",
|
|
5254
5255
|
current: e.computed_current,
|
|
5255
|
-
"onUpdate:current": t[2] || (t[2] = (
|
|
5256
|
+
"onUpdate:current": t[2] || (t[2] = (y) => e.computed_current = y),
|
|
5256
5257
|
pageSize: e.computed_pageSize,
|
|
5257
|
-
"onUpdate:pageSize": t[3] || (t[3] = (
|
|
5258
|
+
"onUpdate:pageSize": t[3] || (t[3] = (y) => e.computed_pageSize = y),
|
|
5258
5259
|
size: "small",
|
|
5259
5260
|
simple: "",
|
|
5260
5261
|
total: e.total
|
|
5261
5262
|
}, null, 8, ["current", "pageSize", "total"]),
|
|
5262
5263
|
W(m, {
|
|
5263
5264
|
value: e.computed_pageSize,
|
|
5264
|
-
"onUpdate:value": t[4] || (t[4] = (
|
|
5265
|
+
"onUpdate:value": t[4] || (t[4] = (y) => e.computed_pageSize = y),
|
|
5265
5266
|
size: "small",
|
|
5266
5267
|
options: e.paginationSizeOptions
|
|
5267
5268
|
}, null, 8, ["value", "options"]),
|
|
@@ -5269,15 +5270,15 @@ function My(e, t, n, r, i, a) {
|
|
|
5269
5270
|
placement: "bottomRight",
|
|
5270
5271
|
trigger: ["click"]
|
|
5271
5272
|
}, {
|
|
5272
|
-
overlay:
|
|
5273
|
+
overlay: j(() => [
|
|
5273
5274
|
W(l, {
|
|
5274
|
-
onClick: t[5] || (t[5] = (
|
|
5275
|
+
onClick: t[5] || (t[5] = (y) => e.$emit("customizeSetting", y.key))
|
|
5275
5276
|
}, {
|
|
5276
|
-
default:
|
|
5277
|
-
(k(!0), Z(he, null, Me(e.hasApiConfig ? e.API_CONFIG_SETTINGS_MAP : e.SETTINGS_MAP, (
|
|
5278
|
-
default:
|
|
5277
|
+
default: j(() => [
|
|
5278
|
+
(k(!0), Z(he, null, Me(e.hasApiConfig ? e.API_CONFIG_SETTINGS_MAP : e.SETTINGS_MAP, (y, $) => (k(), X(o, { key: $ }, {
|
|
5279
|
+
default: j(() => [
|
|
5279
5280
|
W(h, { style: { "margin-right": "4px" } }),
|
|
5280
|
-
Ae("a", Ry, Se(
|
|
5281
|
+
Ae("a", Ry, Se(y), 1)
|
|
5281
5282
|
]),
|
|
5282
5283
|
_: 2
|
|
5283
5284
|
}, 1024))), 128))
|
|
@@ -5285,7 +5286,7 @@ function My(e, t, n, r, i, a) {
|
|
|
5285
5286
|
_: 1
|
|
5286
5287
|
})
|
|
5287
5288
|
]),
|
|
5288
|
-
default:
|
|
5289
|
+
default: j(() => [
|
|
5289
5290
|
Ae("div", Ny, [
|
|
5290
5291
|
W(h, { style: { "font-size": "15px", transform: "translateY(2px)" } })
|
|
5291
5292
|
])
|
|
@@ -5332,8 +5333,8 @@ const ky = /* @__PURE__ */ Qe($y, [["render", My]]), Ly = /* @__PURE__ */ Oe({
|
|
|
5332
5333
|
});
|
|
5333
5334
|
o(p, s), i.value = !0, f(p).then((m) => {
|
|
5334
5335
|
Object.keys(u).forEach((h) => {
|
|
5335
|
-
const
|
|
5336
|
-
u[h] = vn(
|
|
5336
|
+
const v = br(m, `${n.value.dataKey}.${h}`);
|
|
5337
|
+
u[h] = vn(v) ? " - " : v;
|
|
5337
5338
|
});
|
|
5338
5339
|
}).finally(() => i.value = !1);
|
|
5339
5340
|
}, d = {
|
|
@@ -5463,7 +5464,7 @@ function Uy(e, t, n, r, i, a) {
|
|
|
5463
5464
|
const s = U("a-space");
|
|
5464
5465
|
return k(), Z("div", null, [
|
|
5465
5466
|
W(s, null, {
|
|
5466
|
-
default:
|
|
5467
|
+
default: j(() => [
|
|
5467
5468
|
(k(!0), Z(he, null, Me(e.imageList, (o, l) => (k(), Z("img", {
|
|
5468
5469
|
src: o,
|
|
5469
5470
|
key: l,
|
|
@@ -5574,13 +5575,13 @@ oe.div = function(e) {
|
|
|
5574
5575
|
throw Error(Es);
|
|
5575
5576
|
if (!r[0])
|
|
5576
5577
|
return e.s = a, e.c = [e.e = 0], e;
|
|
5577
|
-
var o, l, u, f, c, d = i.slice(), p = o = i.length, m = r.length, h = r.slice(0, o),
|
|
5578
|
-
for (
|
|
5578
|
+
var o, l, u, f, c, d = i.slice(), p = o = i.length, m = r.length, h = r.slice(0, o), v = h.length, w = e, O = w.c = [], y = 0, $ = s + (w.e = t.e - e.e) + 1;
|
|
5579
|
+
for (w.s = a, a = $ < 0 ? 0 : $, d.unshift(0); v++ < o; )
|
|
5579
5580
|
h.push(0);
|
|
5580
5581
|
do {
|
|
5581
5582
|
for (u = 0; u < 10; u++) {
|
|
5582
|
-
if (o != (
|
|
5583
|
-
f = o >
|
|
5583
|
+
if (o != (v = h.length))
|
|
5584
|
+
f = o > v ? 1 : -1;
|
|
5584
5585
|
else
|
|
5585
5586
|
for (c = -1, f = 0; ++c < o; )
|
|
5586
5587
|
if (i[c] != h[c]) {
|
|
@@ -5588,22 +5589,22 @@ oe.div = function(e) {
|
|
|
5588
5589
|
break;
|
|
5589
5590
|
}
|
|
5590
5591
|
if (f < 0) {
|
|
5591
|
-
for (l =
|
|
5592
|
-
if (h[--
|
|
5593
|
-
for (c =
|
|
5592
|
+
for (l = v == o ? i : d; v; ) {
|
|
5593
|
+
if (h[--v] < l[v]) {
|
|
5594
|
+
for (c = v; c && !h[--c]; )
|
|
5594
5595
|
h[c] = 9;
|
|
5595
|
-
--h[c], h[
|
|
5596
|
+
--h[c], h[v] += 10;
|
|
5596
5597
|
}
|
|
5597
|
-
h[
|
|
5598
|
+
h[v] -= l[v];
|
|
5598
5599
|
}
|
|
5599
5600
|
for (; !h[0]; )
|
|
5600
5601
|
h.shift();
|
|
5601
5602
|
} else
|
|
5602
5603
|
break;
|
|
5603
5604
|
}
|
|
5604
|
-
O[
|
|
5605
|
+
O[y++] = f ? u : ++u, h[0] && f ? h[v] = r[p] || 0 : h = [r[p]];
|
|
5605
5606
|
} while ((p++ < m || h[0] !== tt) && a--);
|
|
5606
|
-
return !O[0] &&
|
|
5607
|
+
return !O[0] && y != 1 && (O.shift(), w.e--, $--), y > $ && $t(w, $, n.RM, h[0] !== tt), w;
|
|
5607
5608
|
};
|
|
5608
5609
|
oe.eq = function(e) {
|
|
5609
5610
|
return this.cmp(e) === 0;
|
|
@@ -5864,35 +5865,35 @@ const eb = {
|
|
|
5864
5865
|
});
|
|
5865
5866
|
};
|
|
5866
5867
|
Ct(r);
|
|
5867
|
-
const { enumerations: i } = Er(), a = D(0), s = "filter_", o = "_index", { config: l, conditions: u, hasApiConfig: f, rowKey: c, data: d, total: p } = Xe(e), m = D(null), h = Ce("pageName", ""),
|
|
5868
|
-
}),
|
|
5868
|
+
const { enumerations: i } = Er(), a = D(0), s = "filter_", o = "_index", { config: l, conditions: u, hasApiConfig: f, rowKey: c, data: d, total: p } = Xe(e), m = D(null), h = Ce("pageName", ""), v = Ce("emitHandler", () => {
|
|
5869
|
+
}), w = D(e.sort || {});
|
|
5869
5870
|
let O = !1;
|
|
5870
|
-
const
|
|
5871
|
+
const y = (A) => {
|
|
5871
5872
|
n("update:sort", A), O && (O = !1);
|
|
5872
5873
|
}, $ = (A) => {
|
|
5873
|
-
|
|
5874
|
+
y(A), n("search");
|
|
5874
5875
|
};
|
|
5875
5876
|
ne(
|
|
5876
5877
|
() => e.defaultSort,
|
|
5877
5878
|
(A) => {
|
|
5878
|
-
O = !0,
|
|
5879
|
+
O = !0, w.value = A;
|
|
5879
5880
|
}
|
|
5880
|
-
), ne(
|
|
5881
|
+
), ne(w, (A, B) => {
|
|
5881
5882
|
const N = Object.keys(A)[0];
|
|
5882
5883
|
if (N) {
|
|
5883
5884
|
const K = l.value.find((Q) => Q.columnKey === N);
|
|
5884
|
-
K != null && K.sortable && (O ?
|
|
5885
|
+
K != null && K.sortable && (O ? y(w.value) : $(w.value));
|
|
5885
5886
|
} else {
|
|
5886
5887
|
const K = Object.keys(B)[0];
|
|
5887
5888
|
if (K) {
|
|
5888
5889
|
const Q = l.value.find((ae) => ae.columnKey === K);
|
|
5889
|
-
Q != null && Q.sortable && (O ?
|
|
5890
|
+
Q != null && Q.sortable && (O ? y(w.value) : $(w.value));
|
|
5890
5891
|
}
|
|
5891
5892
|
}
|
|
5892
5893
|
});
|
|
5893
|
-
const C = D([]),
|
|
5894
|
-
|
|
5895
|
-
const
|
|
5894
|
+
const C = D([]), T = D([]), E = D([]), _ = D([]), b = D({}), g = D([]), { selectedRows: S, selectedRowKeys: P, selectedErrorRowKeys: F } = An();
|
|
5895
|
+
F[h] || (F[h] = []);
|
|
5896
|
+
const L = G(() => P[h].length > 0), R = G(() => {
|
|
5896
5897
|
if (f.value)
|
|
5897
5898
|
return Qa(u.value, "fieldName");
|
|
5898
5899
|
{
|
|
@@ -5909,7 +5910,7 @@ const eb = {
|
|
|
5909
5910
|
}), B), []);
|
|
5910
5911
|
return Qa(A, "columnKey");
|
|
5911
5912
|
}
|
|
5912
|
-
}), I = D(!f.value),
|
|
5913
|
+
}), I = D(!f.value), x = Ce("tableCellSlots", {}), M = () => {
|
|
5913
5914
|
I.value = !I.value;
|
|
5914
5915
|
}, V = (A) => A && A.dataIndex === o, Y = (A) => A.dataIndex === "action" || A.cellValueType === "slot", ee = (A, B) => vn(A[B.dataIndex]) || A[B.dataIndex] === "", re = ({
|
|
5915
5916
|
text: A,
|
|
@@ -5917,7 +5918,7 @@ const eb = {
|
|
|
5917
5918
|
record: N,
|
|
5918
5919
|
index: K
|
|
5919
5920
|
}) => V(B) ? K + 1 : Vs(A) || !B || Y(B) ? A : ee(N, B) ? " - " : A, ie = (A, B) => {
|
|
5920
|
-
P[h] = A,
|
|
5921
|
+
P[h] = A, S[h] = B;
|
|
5921
5922
|
}, pe = () => {
|
|
5922
5923
|
ie([], []);
|
|
5923
5924
|
}, ve = D(
|
|
@@ -5938,16 +5939,16 @@ const eb = {
|
|
|
5938
5939
|
if (B && (B == null ? void 0 : B.toString().length) > 0)
|
|
5939
5940
|
return;
|
|
5940
5941
|
const N = [...P[h]], K = c.value;
|
|
5941
|
-
N.indexOf(A[K]) >= 0 ? N.splice(N.indexOf(A[K]), 1) : N.push(A[K]), P[h] = N,
|
|
5942
|
+
N.indexOf(A[K]) >= 0 ? N.splice(N.indexOf(A[K]), 1) : N.push(A[K]), P[h] = N, S[h] = Xt.value.filter((Q) => N.includes(Q[K]));
|
|
5942
5943
|
}, Pe = (A) => ({
|
|
5943
5944
|
onclick: () => $e(A),
|
|
5944
5945
|
onDblclick: () => {
|
|
5945
|
-
e.rowDblclickAction &&
|
|
5946
|
+
e.rowDblclickAction && v(e.rowDblclickAction, [A]);
|
|
5946
5947
|
}
|
|
5947
5948
|
}), Fe = G(() => {
|
|
5948
5949
|
var N;
|
|
5949
5950
|
let A = a.value;
|
|
5950
|
-
|
|
5951
|
+
L.value && (A -= 31), I.value && (A -= 33);
|
|
5951
5952
|
const B = (N = m.value) == null ? void 0 : N.querySelector(".ant-table-body");
|
|
5952
5953
|
return B && (B.style.minHeight = `${A}px`), A;
|
|
5953
5954
|
});
|
|
@@ -5986,7 +5987,7 @@ const eb = {
|
|
|
5986
5987
|
filterable: Nn,
|
|
5987
5988
|
sortable: Di
|
|
5988
5989
|
} = A;
|
|
5989
|
-
Q === "Link" && C.value.push(K), Q === "HTML" &&
|
|
5990
|
+
Q === "Link" && C.value.push(K), Q === "HTML" && T.value.push(K), ae === "slot" && E.value.push(K), ae === "img" && _.value.push(K), ae === "map" && ze && (b.value[K] = A);
|
|
5990
5991
|
const Ni = K !== "action" && Array.isArray(ft), Ls = Ni ? (
|
|
5991
5992
|
// 目前有表头分组配置时,不渲染表头筛选组件
|
|
5992
5993
|
ft.map((ht) => ({
|
|
@@ -6033,7 +6034,7 @@ const eb = {
|
|
|
6033
6034
|
sortable: Di,
|
|
6034
6035
|
// 表头分组时,暂不支持排序
|
|
6035
6036
|
sorter: Ni ? !1 : Di || ((ht, Ri) => typeof ht[K] == "string" ? ht[K].localeCompare(Ri[K]) : ht[K] - Ri[K]),
|
|
6036
|
-
sortOrder: rb[
|
|
6037
|
+
sortOrder: rb[w.value[K]],
|
|
6037
6038
|
showSorterTooltip: !1,
|
|
6038
6039
|
title: B,
|
|
6039
6040
|
width: N
|
|
@@ -6060,10 +6061,10 @@ const eb = {
|
|
|
6060
6061
|
}, Dn = (A) => {
|
|
6061
6062
|
R.value[A].type === "Input" ? In() : xe(We);
|
|
6062
6063
|
}, Or = (A, B, N) => {
|
|
6063
|
-
Array.isArray(N) || (N.columnKey && N.order ?
|
|
6064
|
+
Array.isArray(N) || (N.columnKey && N.order ? w.value = { [N.columnKey]: nb[N.order] } : w.value = {});
|
|
6064
6065
|
}, _r = () => {
|
|
6065
|
-
|
|
6066
|
-
}, qt = G(() => Object.keys(
|
|
6066
|
+
w.value = e.defaultSort;
|
|
6067
|
+
}, qt = G(() => Object.keys(b.value)), Xt = G(() => {
|
|
6067
6068
|
const A = g.value.filter((N) => N.action !== void 0 || N.key === "action").reduce((N, K) => {
|
|
6068
6069
|
var Q;
|
|
6069
6070
|
return K.key === "action" ? (Q = K.child) == null || Q.forEach((ae) => {
|
|
@@ -6075,16 +6076,16 @@ const eb = {
|
|
|
6075
6076
|
...qt.value.reduce(
|
|
6076
6077
|
(K, Q) => {
|
|
6077
6078
|
var ae, Je, ze, it;
|
|
6078
|
-
if (
|
|
6079
|
-
const ft = (Je = (ae = i[
|
|
6079
|
+
if (b.value[Q].refEnumLabel) {
|
|
6080
|
+
const ft = (Je = (ae = i[b.value[Q].refEnum]) == null ? void 0 : ae.find(
|
|
6080
6081
|
(pt) => {
|
|
6081
6082
|
var dt, Nn;
|
|
6082
|
-
return ((dt = pt.id) == null ? void 0 : dt.toString()) === ((Nn = N[
|
|
6083
|
+
return ((dt = pt.id) == null ? void 0 : dt.toString()) === ((Nn = N[b.value[Q].refEnum]) == null ? void 0 : Nn.toString());
|
|
6083
6084
|
}
|
|
6084
|
-
)) == null ? void 0 : Je[
|
|
6085
|
+
)) == null ? void 0 : Je[b.value[Q].refEnumLabel];
|
|
6085
6086
|
K[qn][Q] = ft;
|
|
6086
6087
|
} else
|
|
6087
|
-
K[qn][Q] = (it = (ze = i[
|
|
6088
|
+
K[qn][Q] = (it = (ze = i[b.value[Q].refEnum]) == null ? void 0 : ze.find(
|
|
6088
6089
|
(ft) => {
|
|
6089
6090
|
var pt, dt;
|
|
6090
6091
|
return ((pt = ft.value) == null ? void 0 : pt.toString()) === ((dt = N[Q]) == null ? void 0 : dt.toString());
|
|
@@ -6138,14 +6139,14 @@ const eb = {
|
|
|
6138
6139
|
LOADING_SIGN: Bn,
|
|
6139
6140
|
tableWrapper: m,
|
|
6140
6141
|
linkCellKeys: C,
|
|
6141
|
-
htmlCellKeys:
|
|
6142
|
-
slotCellKeys:
|
|
6142
|
+
htmlCellKeys: T,
|
|
6143
|
+
slotCellKeys: E,
|
|
6143
6144
|
imgCellKeys: _,
|
|
6144
|
-
tableCellSlots:
|
|
6145
|
-
selectedRows:
|
|
6145
|
+
tableCellSlots: x,
|
|
6146
|
+
selectedRows: S,
|
|
6146
6147
|
selectedRowKeys: P,
|
|
6147
|
-
selectedErrorRowKeys:
|
|
6148
|
-
showSelectionSummaryRow:
|
|
6148
|
+
selectedErrorRowKeys: F,
|
|
6149
|
+
showSelectionSummaryRow: L,
|
|
6149
6150
|
DATA_SOURCE_FILTER_PREFIX: s,
|
|
6150
6151
|
DATA_SOURCE_INDEX_KEY: o,
|
|
6151
6152
|
formState: De,
|
|
@@ -6184,9 +6185,9 @@ const ob = {
|
|
|
6184
6185
|
}, gb = /* @__PURE__ */ Ae("span", { class: "table-summary-cell-text" }, "总计", -1), mb = { class: "table-summary-cell-text" };
|
|
6185
6186
|
function vb(e, t, n, r, i, a) {
|
|
6186
6187
|
var $;
|
|
6187
|
-
const s = U("a-button"), o = U("a-tooltip"), l = U("ConditionBuilder"), u = U("a-input"), f = U("aicon"), c = U("LoadingOutlined"), d = U("Space"), p = U("TableImageCell"), m = U("TableCell"), h = U("TableCopyCell"),
|
|
6188
|
+
const s = U("a-button"), o = U("a-tooltip"), l = U("ConditionBuilder"), u = U("a-input"), f = U("aicon"), c = U("LoadingOutlined"), d = U("Space"), p = U("TableImageCell"), m = U("TableCell"), h = U("TableCopyCell"), v = U("a-table-summary-cell"), w = U("a-table-summary-row"), O = U("a-table-summary"), y = U("Table");
|
|
6188
6189
|
return k(), Z("div", ob, [
|
|
6189
|
-
W(
|
|
6190
|
+
W(y, {
|
|
6190
6191
|
bordered: "",
|
|
6191
6192
|
size: "small",
|
|
6192
6193
|
"data-source": e.dataSource,
|
|
@@ -6199,7 +6200,7 @@ function vb(e, t, n, r, i, a) {
|
|
|
6199
6200
|
"custom-row": e.customRow,
|
|
6200
6201
|
"expanded-row-keys": e.localExpandedRowKeys,
|
|
6201
6202
|
"onUpdate:expandedRowKeys": t[1] || (t[1] = (C) => e.localExpandedRowKeys = C),
|
|
6202
|
-
"row-class-name": (C,
|
|
6203
|
+
"row-class-name": (C, T) => `${T % 2 === 1 ? "table-striped-row" : ""} ${e.selectedErrorRowKeys[e.pageName].includes(C[e.rowKey]) ? "table-error-row" : ""} ${C[e.TABLE_ROW_CLASS_NAME] ? C[e.TABLE_ROW_CLASS_NAME] : ""}`,
|
|
6203
6204
|
"row-selection": {
|
|
6204
6205
|
fixed: !0,
|
|
6205
6206
|
columnWidth: 40,
|
|
@@ -6210,17 +6211,17 @@ function vb(e, t, n, r, i, a) {
|
|
|
6210
6211
|
onResizeColumn: e.handleResizeColumn,
|
|
6211
6212
|
onChange: e.onTableChange
|
|
6212
6213
|
}, co({
|
|
6213
|
-
headerCell:
|
|
6214
|
-
var
|
|
6214
|
+
headerCell: j(({ column: C }) => {
|
|
6215
|
+
var T;
|
|
6215
6216
|
return [
|
|
6216
6217
|
C.key === e.DATA_SOURCE_INDEX_KEY ? (k(), Z("div", {
|
|
6217
6218
|
key: 0,
|
|
6218
|
-
onClick: t[0] || (t[0] = (...
|
|
6219
|
+
onClick: t[0] || (t[0] = (...E) => e.headerFilterSwitch && e.headerFilterSwitch(...E))
|
|
6219
6220
|
}, [
|
|
6220
6221
|
W(o, {
|
|
6221
6222
|
title: e.isHeaderFilterable ? "关闭筛选表头" : "开启筛选表头"
|
|
6222
6223
|
}, {
|
|
6223
|
-
default:
|
|
6224
|
+
default: j(() => [
|
|
6224
6225
|
W(s, {
|
|
6225
6226
|
type: "text",
|
|
6226
6227
|
icon: e.h(e.FilterOutlined)
|
|
@@ -6230,19 +6231,19 @@ function vb(e, t, n, r, i, a) {
|
|
|
6230
6231
|
}, 8, ["title"])
|
|
6231
6232
|
])) : (k(), Z("div", sb, [
|
|
6232
6233
|
C.sortable === !1 ? (k(), X(o, { key: 0 }, {
|
|
6233
|
-
title:
|
|
6234
|
+
title: j(() => [
|
|
6234
6235
|
be("仅支持当前页的筛选排序,不支持跨页筛选排序。如需统计全部数据,请点[导出全部],在 excel 统计。")
|
|
6235
6236
|
]),
|
|
6236
|
-
default:
|
|
6237
|
+
default: j(() => [
|
|
6237
6238
|
Ae("span", lb, Se(C.title), 1)
|
|
6238
6239
|
]),
|
|
6239
6240
|
_: 2
|
|
6240
6241
|
}, 1024)) : (k(), Z("div", ub, Se(C.title), 1)),
|
|
6241
|
-
(
|
|
6242
|
+
(T = C.key) != null && T.startsWith(e.DATA_SOURCE_FILTER_PREFIX) ? (k(), Z("div", cb, [
|
|
6242
6243
|
e.fieldNameConditionsByKey[C.dataIndex] ? (k(), X(l, {
|
|
6243
6244
|
key: 0,
|
|
6244
6245
|
value: e.formState[e.pageName][C.dataIndex],
|
|
6245
|
-
"onUpdate:value": (
|
|
6246
|
+
"onUpdate:value": (E) => e.formState[e.pageName][C.dataIndex] = E,
|
|
6246
6247
|
materials: e.fieldNameConditionsByKey[C.dataIndex],
|
|
6247
6248
|
onChange: () => {
|
|
6248
6249
|
e.onConditionChange(C.dataIndex);
|
|
@@ -6254,7 +6255,7 @@ function vb(e, t, n, r, i, a) {
|
|
|
6254
6255
|
disabled: "",
|
|
6255
6256
|
size: "small",
|
|
6256
6257
|
value: e.formState[e.pageName][C.dataIndex],
|
|
6257
|
-
"onUpdate:value": (
|
|
6258
|
+
"onUpdate:value": (E) => e.formState[e.pageName][C.dataIndex] = E,
|
|
6258
6259
|
onChange: e.onHeaderFilterChange,
|
|
6259
6260
|
onPressEnter: e.onSubmit
|
|
6260
6261
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onPressEnter"]))
|
|
@@ -6262,34 +6263,34 @@ function vb(e, t, n, r, i, a) {
|
|
|
6262
6263
|
]))
|
|
6263
6264
|
];
|
|
6264
6265
|
}),
|
|
6265
|
-
bodyCell:
|
|
6266
|
+
bodyCell: j(({ text: C, record: T, index: E, column: _ }) => [
|
|
6266
6267
|
_.dataIndex === "action" ? (k(), X(d, { key: 0 }, {
|
|
6267
|
-
default:
|
|
6268
|
-
(k(!0), Z(he, null, Me(_.childActions, (
|
|
6269
|
-
key:
|
|
6268
|
+
default: j(() => [
|
|
6269
|
+
(k(!0), Z(he, null, Me(_.childActions, (b) => (k(), Z(he, {
|
|
6270
|
+
key: b.action
|
|
6270
6271
|
}, [
|
|
6271
|
-
|
|
6272
|
-
|
|
6272
|
+
b.show === void 0 || e.actionVisible(b.show, T) ? (k(), Z(he, { key: 0 }, [
|
|
6273
|
+
T[e.LOADING_SIGN][`${b.action}Loading`] ? (k(), X(c, {
|
|
6273
6274
|
key: 1,
|
|
6274
6275
|
style: { color: "#1890ff" }
|
|
6275
6276
|
})) : (k(), Z("a", {
|
|
6276
6277
|
key: 0,
|
|
6277
6278
|
onClick: uo(
|
|
6278
6279
|
(g) => {
|
|
6279
|
-
|
|
6280
|
+
b.disabled && e.actionVisible(b.disabled, T) || e.handleLinkClick(T, _, g, b.action);
|
|
6280
6281
|
},
|
|
6281
6282
|
["stop"]
|
|
6282
6283
|
),
|
|
6283
6284
|
class: fo({
|
|
6284
|
-
"ant-table-action-disabled":
|
|
6285
|
+
"ant-table-action-disabled": b.disabled && e.actionVisible(b.disabled, T)
|
|
6285
6286
|
}),
|
|
6286
|
-
style: ti({ color:
|
|
6287
|
+
style: ti({ color: b.color })
|
|
6287
6288
|
}, [
|
|
6288
|
-
|
|
6289
|
+
b.icon ? (k(), X(f, {
|
|
6289
6290
|
key: 0,
|
|
6290
|
-
type:
|
|
6291
|
+
type: b.icon
|
|
6291
6292
|
}, null, 8, ["type"])) : ge("", !0),
|
|
6292
|
-
be(" " + Se(
|
|
6293
|
+
be(" " + Se(b.text), 1)
|
|
6293
6294
|
], 14, fb))
|
|
6294
6295
|
], 64)) : ge("", !0)
|
|
6295
6296
|
], 64))), 128))
|
|
@@ -6299,18 +6300,18 @@ function vb(e, t, n, r, i, a) {
|
|
|
6299
6300
|
e.slotCellKeys.includes(_.dataIndex) ? (k(), Z(he, { key: 1 }, [
|
|
6300
6301
|
e.tableCellSlots[_.dataIndex].component ? (k(), X(Bt(e.tableCellSlots[_.dataIndex].component), It(Ge({ key: 0 }, {
|
|
6301
6302
|
text: C,
|
|
6302
|
-
row:
|
|
6303
|
-
index:
|
|
6303
|
+
row: T,
|
|
6304
|
+
index: E,
|
|
6304
6305
|
column: _,
|
|
6305
6306
|
...e.tableCellSlots[_.dataIndex].props
|
|
6306
6307
|
})), null, 16)) : ge("", !0)
|
|
6307
6308
|
], 64)) : e.imgCellKeys.includes(_.dataIndex) ? (k(), Z(he, { key: 2 }, [
|
|
6308
6309
|
C ? (k(), X(p, It(Ge({ key: 0 }, { image: C })), null, 16)) : ge("", !0)
|
|
6309
6310
|
], 64)) : [...e.linkCellKeys, ...e.keywords, ...e.htmlCellKeys].includes(_.dataIndex) ? (k(), X(m, It(Ge({ key: 3 }, {
|
|
6310
|
-
row:
|
|
6311
|
+
row: T,
|
|
6311
6312
|
copyable: _.copyable,
|
|
6312
6313
|
column: _,
|
|
6313
|
-
loading:
|
|
6314
|
+
loading: T[e.LOADING_SIGN][`${_.action}Loading`],
|
|
6314
6315
|
keywords: e.keywords,
|
|
6315
6316
|
linkCellKeys: e.linkCellKeys,
|
|
6316
6317
|
handleLinkClick: e.handleLinkClick
|
|
@@ -6318,24 +6319,24 @@ function vb(e, t, n, r, i, a) {
|
|
|
6318
6319
|
C ? (k(), X(h, It(Ge({ key: 0 }, { text: C })), null, 16)) : ge("", !0)
|
|
6319
6320
|
], 64)) : ge("", !0)
|
|
6320
6321
|
]),
|
|
6321
|
-
summary:
|
|
6322
|
+
summary: j(() => [
|
|
6322
6323
|
W(O, { fixed: "" }, {
|
|
6323
|
-
default:
|
|
6324
|
-
ni(W(
|
|
6325
|
-
default:
|
|
6326
|
-
W(
|
|
6327
|
-
default:
|
|
6324
|
+
default: j(() => [
|
|
6325
|
+
ni(W(w, { class: "table-summary-selection" }, {
|
|
6326
|
+
default: j(() => [
|
|
6327
|
+
W(v, { index: 0 }, {
|
|
6328
|
+
default: j(() => [
|
|
6328
6329
|
db
|
|
6329
6330
|
]),
|
|
6330
6331
|
_: 1
|
|
6331
6332
|
}),
|
|
6332
|
-
(k(!0), Z(he, null, Me(e.columns, (C,
|
|
6333
|
+
(k(!0), Z(he, null, Me(e.columns, (C, T) => (k(), X(v, {
|
|
6333
6334
|
key: C.key,
|
|
6334
|
-
index:
|
|
6335
|
+
index: T + 1,
|
|
6335
6336
|
style: { "text-align": "center" }
|
|
6336
6337
|
}, {
|
|
6337
|
-
default:
|
|
6338
|
-
|
|
6338
|
+
default: j(() => [
|
|
6339
|
+
T === 0 ? (k(), Z("span", pb, Se(e.selectedRowKeys[e.pageName].length), 1)) : (k(), Z("span", hb, Se(C.summary ? e.transformSummary(C.summary, C) : null), 1))
|
|
6339
6340
|
]),
|
|
6340
6341
|
_: 2
|
|
6341
6342
|
}, 1032, ["index"]))), 128))
|
|
@@ -6344,20 +6345,20 @@ function vb(e, t, n, r, i, a) {
|
|
|
6344
6345
|
}, 512), [
|
|
6345
6346
|
[lo, e.showSelectionSummaryRow]
|
|
6346
6347
|
]),
|
|
6347
|
-
e.hasApiConfig ? ge("", !0) : (k(), X(
|
|
6348
|
-
default:
|
|
6349
|
-
W(
|
|
6350
|
-
default:
|
|
6348
|
+
e.hasApiConfig ? ge("", !0) : (k(), X(w, { key: 0 }, {
|
|
6349
|
+
default: j(() => [
|
|
6350
|
+
W(v, { index: 0 }, {
|
|
6351
|
+
default: j(() => [
|
|
6351
6352
|
gb
|
|
6352
6353
|
]),
|
|
6353
6354
|
_: 1
|
|
6354
6355
|
}),
|
|
6355
|
-
(k(!0), Z(he, null, Me(e.totalList, (C,
|
|
6356
|
-
key:
|
|
6357
|
-
index:
|
|
6356
|
+
(k(!0), Z(he, null, Me(e.totalList, (C, T) => (k(), X(v, {
|
|
6357
|
+
key: T,
|
|
6358
|
+
index: T + 1,
|
|
6358
6359
|
style: { "text-align": "center" }
|
|
6359
6360
|
}, {
|
|
6360
|
-
default:
|
|
6361
|
+
default: j(() => [
|
|
6361
6362
|
Ae("span", mb, Se(C), 1)
|
|
6362
6363
|
]),
|
|
6363
6364
|
_: 2
|
|
@@ -6373,11 +6374,11 @@ function vb(e, t, n, r, i, a) {
|
|
|
6373
6374
|
}, [
|
|
6374
6375
|
($ = e.tableProps) != null && $.expandedRowRender ? {
|
|
6375
6376
|
name: "expandedRowRender",
|
|
6376
|
-
fn:
|
|
6377
|
+
fn: j(({ record: C, index: T, indent: E, expanded: _ }) => [
|
|
6377
6378
|
(k(), X(Bt(e.tableProps.expandedRowRender.component), It(Ws({
|
|
6378
6379
|
row: C,
|
|
6379
|
-
index:
|
|
6380
|
-
indent:
|
|
6380
|
+
index: T,
|
|
6381
|
+
indent: E,
|
|
6381
6382
|
expanded: _,
|
|
6382
6383
|
...e.tableProps.expandedRowRender.props
|
|
6383
6384
|
})), null, 16))
|
|
@@ -6432,21 +6433,21 @@ const wb = {
|
|
|
6432
6433
|
if (!C)
|
|
6433
6434
|
l.value = [], u.dataSource = [];
|
|
6434
6435
|
else {
|
|
6435
|
-
let
|
|
6436
|
-
const
|
|
6437
|
-
if (
|
|
6436
|
+
let T = gn(ke(e.columns));
|
|
6437
|
+
const E = s.value[a];
|
|
6438
|
+
if (E) {
|
|
6438
6439
|
const _ = gn(ke(e.columns));
|
|
6439
|
-
|
|
6440
|
-
const
|
|
6441
|
-
(
|
|
6440
|
+
T = [...E.filter((g) => _.find((S) => S.columnKey === g.columnKey)).map((g) => {
|
|
6441
|
+
const S = _.findIndex(
|
|
6442
|
+
(F) => F.columnKey === g.columnKey
|
|
6442
6443
|
);
|
|
6443
6444
|
return {
|
|
6444
|
-
..._.splice(
|
|
6445
|
+
..._.splice(S, 1)[0],
|
|
6445
6446
|
show: g.show
|
|
6446
6447
|
};
|
|
6447
6448
|
}), ..._];
|
|
6448
6449
|
}
|
|
6449
|
-
u.dataSource =
|
|
6450
|
+
u.dataSource = T.map((_) => (_.show !== !1 && l.value.push(_.columnKey), {
|
|
6450
6451
|
..._,
|
|
6451
6452
|
disabled: _.columnKey === "action" || _.fixed !== void 0 || _.disabled,
|
|
6452
6453
|
key: _.columnKey,
|
|
@@ -6462,37 +6463,37 @@ const wb = {
|
|
|
6462
6463
|
], c = () => {
|
|
6463
6464
|
e.hasApiConfig && e.type === "COLUMN_SETTING" && Zn.confirm({
|
|
6464
6465
|
title: "确认重置为默认值吗?",
|
|
6465
|
-
getContainer:
|
|
6466
|
+
getContainer: y,
|
|
6466
6467
|
onOk() {
|
|
6467
6468
|
s.value[a] = void 0, t("change");
|
|
6468
6469
|
}
|
|
6469
6470
|
});
|
|
6470
6471
|
}, d = async () => {
|
|
6471
|
-
const C = ke(l.value), { dataSource:
|
|
6472
|
+
const C = ke(l.value), { dataSource: T } = u;
|
|
6472
6473
|
if (e.hasApiConfig && e.type === "COLUMN_SETTING") {
|
|
6473
6474
|
if (C.length < 5) {
|
|
6474
6475
|
Te.warn("显示列不能小于 5 项!");
|
|
6475
6476
|
return;
|
|
6476
6477
|
}
|
|
6477
|
-
const g =
|
|
6478
|
-
columnKey:
|
|
6479
|
-
show: C.includes(
|
|
6478
|
+
const g = T.map((S) => ({
|
|
6479
|
+
columnKey: S.columnKey,
|
|
6480
|
+
show: C.includes(S.columnKey)
|
|
6480
6481
|
}));
|
|
6481
6482
|
s.value[a] = g, t("change");
|
|
6482
6483
|
return;
|
|
6483
6484
|
}
|
|
6484
|
-
const { category:
|
|
6485
|
-
const
|
|
6486
|
-
if (
|
|
6487
|
-
const [
|
|
6488
|
-
|
|
6485
|
+
const { category: E, tab: _ } = n.meta, b = C.map((g) => {
|
|
6486
|
+
const S = {}, P = T.find((F) => F.columnKey === g);
|
|
6487
|
+
if (S.entityId = P.entityId, S.columnKey = P.columnKey, e.type === "SORT_SETTING") {
|
|
6488
|
+
const [F, L] = P.columnKey.split("@");
|
|
6489
|
+
S.columnKey = F, S.sort = L;
|
|
6489
6490
|
}
|
|
6490
|
-
return
|
|
6491
|
+
return S;
|
|
6491
6492
|
});
|
|
6492
6493
|
try {
|
|
6493
6494
|
o.value = !0, await bb(r, {
|
|
6494
|
-
[wb[e.type]]:
|
|
6495
|
-
category:
|
|
6495
|
+
[wb[e.type]]: b,
|
|
6496
|
+
category: E,
|
|
6496
6497
|
label: _
|
|
6497
6498
|
}), t("change");
|
|
6498
6499
|
} catch (g) {
|
|
@@ -6502,100 +6503,100 @@ const wb = {
|
|
|
6502
6503
|
}
|
|
6503
6504
|
}, p = () => i.value = !1, m = ({
|
|
6504
6505
|
disabled: C,
|
|
6505
|
-
selectedKeys:
|
|
6506
|
-
onItemSelectAll:
|
|
6506
|
+
selectedKeys: T,
|
|
6507
|
+
onItemSelectAll: E,
|
|
6507
6508
|
onItemSelect: _
|
|
6508
6509
|
}) => ({
|
|
6509
|
-
getCheckboxProps: (
|
|
6510
|
-
disabled: C ||
|
|
6510
|
+
getCheckboxProps: (b) => ({
|
|
6511
|
+
disabled: C || b.disabled
|
|
6511
6512
|
}),
|
|
6512
|
-
onSelectAll(
|
|
6513
|
-
const
|
|
6514
|
-
|
|
6513
|
+
onSelectAll(b, g) {
|
|
6514
|
+
const S = g.filter((P) => !P.disabled).map(({ key: P }) => P);
|
|
6515
|
+
E(S, b);
|
|
6515
6516
|
},
|
|
6516
|
-
onSelect({ key:
|
|
6517
|
-
_(
|
|
6517
|
+
onSelect({ key: b }, g) {
|
|
6518
|
+
_(b, g);
|
|
6518
6519
|
},
|
|
6519
|
-
selectedRowKeys:
|
|
6520
|
+
selectedRowKeys: T
|
|
6520
6521
|
});
|
|
6521
|
-
let h = "",
|
|
6522
|
-
const
|
|
6522
|
+
let h = "", v = "";
|
|
6523
|
+
const w = (C, T, E, _) => ({
|
|
6523
6524
|
style: {
|
|
6524
6525
|
cursor: "move"
|
|
6525
6526
|
},
|
|
6526
6527
|
// 鼠标移入
|
|
6527
|
-
onMouseenter: (
|
|
6528
|
-
var
|
|
6529
|
-
const g =
|
|
6530
|
-
C.key === "action" || (
|
|
6528
|
+
onMouseenter: (b) => {
|
|
6529
|
+
var S;
|
|
6530
|
+
const g = b || window.event;
|
|
6531
|
+
C.key === "action" || (S = e.columns.find((P) => P.columnKey === C.key)) != null && S.fixed || (g.target.draggable = !0);
|
|
6531
6532
|
},
|
|
6532
6533
|
// 开始拖拽
|
|
6533
|
-
onDragstart: (
|
|
6534
|
-
(
|
|
6534
|
+
onDragstart: (b) => {
|
|
6535
|
+
(b || window.event).stopPropagation(), h = C.key, document.querySelectorAll(".drag-modal-wrapper .source-table .ant-table-row")[T].classList.add("source");
|
|
6535
6536
|
},
|
|
6536
6537
|
// 拖动元素经过的元素
|
|
6537
|
-
onDragover: (
|
|
6538
|
-
(
|
|
6538
|
+
onDragover: (b) => {
|
|
6539
|
+
(b || window.event).preventDefault();
|
|
6539
6540
|
},
|
|
6540
6541
|
// 拖动到达目标元素
|
|
6541
|
-
onDragenter: (
|
|
6542
|
-
(
|
|
6543
|
-
const
|
|
6544
|
-
if (u.dataSource[
|
|
6542
|
+
onDragenter: (b) => {
|
|
6543
|
+
(b || window.event).preventDefault();
|
|
6544
|
+
const S = document.querySelectorAll(".drag-modal-wrapper .ant-table-row");
|
|
6545
|
+
if (u.dataSource[T].disabled)
|
|
6545
6546
|
return;
|
|
6546
6547
|
const P = document.querySelectorAll(".ant-table-row.target");
|
|
6547
|
-
P.length && P[0].classList.remove("target"),
|
|
6548
|
+
P.length && P[0].classList.remove("target"), S[T + (u.dataSource.length - l.value.length)].classList.add("target"), v = C.key;
|
|
6548
6549
|
},
|
|
6549
6550
|
// 鼠标松开
|
|
6550
|
-
onDrop: (
|
|
6551
|
-
(
|
|
6552
|
-
const
|
|
6553
|
-
|
|
6551
|
+
onDrop: (b) => {
|
|
6552
|
+
(b || window.event).stopPropagation();
|
|
6553
|
+
const S = document.querySelectorAll(".ant-table-row.target");
|
|
6554
|
+
S.length && S[0].classList.remove("target");
|
|
6554
6555
|
const P = document.querySelectorAll(".ant-table-row.source");
|
|
6555
|
-
if (P.length && P[0].classList.remove("source"),
|
|
6556
|
+
if (P.length && P[0].classList.remove("source"), v === h)
|
|
6556
6557
|
return;
|
|
6557
|
-
const
|
|
6558
|
-
|
|
6559
|
-
const I =
|
|
6560
|
-
|
|
6558
|
+
const F = u.dataSource.slice(), L = F.findIndex((x) => x.key === h), R = F[L];
|
|
6559
|
+
F.splice(L, 1);
|
|
6560
|
+
const I = F.findIndex((x) => x.key === v);
|
|
6561
|
+
F.splice(I, 0, R), Object.assign(u, { dataSource: F });
|
|
6561
6562
|
},
|
|
6562
6563
|
onClick: () => {
|
|
6563
|
-
const { key:
|
|
6564
|
-
g || _(
|
|
6564
|
+
const { key: b, disabled: g } = C;
|
|
6565
|
+
g || _(b, !E.includes(b));
|
|
6565
6566
|
},
|
|
6566
6567
|
ondblclick: () => {
|
|
6567
|
-
const { key:
|
|
6568
|
+
const { key: b, disabled: g } = C;
|
|
6568
6569
|
if (g)
|
|
6569
6570
|
return;
|
|
6570
|
-
const
|
|
6571
|
-
|
|
6571
|
+
const S = l.value.indexOf(b);
|
|
6572
|
+
S > -1 ? l.value.splice(S, 1) : l.value.push(b);
|
|
6572
6573
|
}
|
|
6573
|
-
}), O = (C,
|
|
6574
|
+
}), O = (C, T, E, _) => ({
|
|
6574
6575
|
onClick: () => {
|
|
6575
|
-
const { key:
|
|
6576
|
-
g || _(
|
|
6576
|
+
const { key: b, disabled: g } = C;
|
|
6577
|
+
g || _(b, !E.includes(b));
|
|
6577
6578
|
},
|
|
6578
6579
|
ondblclick: () => {
|
|
6579
|
-
const { key:
|
|
6580
|
+
const { key: b, disabled: g } = C;
|
|
6580
6581
|
if (g)
|
|
6581
6582
|
return;
|
|
6582
|
-
const
|
|
6583
|
-
|
|
6583
|
+
const S = l.value.indexOf(b);
|
|
6584
|
+
S > -1 ? l.value.splice(S, 1) : l.value.push(b);
|
|
6584
6585
|
}
|
|
6585
|
-
}),
|
|
6586
|
+
}), y = () => document.querySelector(".page-renderer-wrapper");
|
|
6586
6587
|
return ne(i, (C) => {
|
|
6587
6588
|
C && xe(() => {
|
|
6588
|
-
const
|
|
6589
|
-
|
|
6590
|
-
const
|
|
6591
|
-
|
|
6592
|
-
const
|
|
6593
|
-
let
|
|
6594
|
-
|
|
6595
|
-
(+
|
|
6596
|
-
(+
|
|
6597
|
-
const I = R.clientX -
|
|
6598
|
-
_.style.left = `${I +
|
|
6589
|
+
const T = document.querySelector(".ant-modal-root"), E = T == null ? void 0 : T.querySelector(".ant-modal-header"), _ = T == null ? void 0 : T.querySelector(".ant-modal");
|
|
6590
|
+
E.style.cursor = "move";
|
|
6591
|
+
const b = _.currentStyle || window.getComputedStyle(_, null);
|
|
6592
|
+
E.onmousedown = (g) => {
|
|
6593
|
+
const S = g.clientX - E.offsetLeft, P = g.clientY - E.offsetTop;
|
|
6594
|
+
let F, L;
|
|
6595
|
+
b.left.includes("%") ? (F = +document.body.clientWidth * // eslint-disable-next-line
|
|
6596
|
+
(+b.left.replace(/\%/g, "") / 100), L = +document.body.clientHeight * // eslint-disable-next-line
|
|
6597
|
+
(+b.top.replace(/\%/g, "") / 100)) : (F = +b.left.replace(/\px/g, ""), L = +b.top.replace(/\px/g, "")), document.onmousemove = function(R) {
|
|
6598
|
+
const I = R.clientX - S, x = R.clientY - P;
|
|
6599
|
+
_.style.left = `${I + F}px`, _.style.top = `${x + L}px`;
|
|
6599
6600
|
}, document.onmouseup = function() {
|
|
6600
6601
|
document.onmousemove = null, document.onmouseup = null;
|
|
6601
6602
|
};
|
|
@@ -6607,19 +6608,19 @@ const wb = {
|
|
|
6607
6608
|
state: u,
|
|
6608
6609
|
toKeys: l,
|
|
6609
6610
|
tableColumn: f,
|
|
6610
|
-
handleChange: (C,
|
|
6611
|
-
const _ = C.map((
|
|
6611
|
+
handleChange: (C, T, E) => {
|
|
6612
|
+
const _ = C.map((b) => b.split("@")[0]);
|
|
6612
6613
|
if (_.length !== cy(_).length) {
|
|
6613
|
-
l.value = C.filter((
|
|
6614
|
+
l.value = C.filter((b) => !E.includes(b)), Te.warn("同一字段不能同时设置升序和降序!");
|
|
6614
6615
|
return;
|
|
6615
6616
|
}
|
|
6616
6617
|
},
|
|
6617
6618
|
handleReset: c,
|
|
6618
6619
|
handleOk: d,
|
|
6619
|
-
customRowRight:
|
|
6620
|
+
customRowRight: w,
|
|
6620
6621
|
customRowLeft: O,
|
|
6621
6622
|
handleClose: p,
|
|
6622
|
-
getContainer:
|
|
6623
|
+
getContainer: y,
|
|
6623
6624
|
getRowSelection: m
|
|
6624
6625
|
};
|
|
6625
6626
|
}
|
|
@@ -6635,17 +6636,17 @@ function Cb(e, t, n, r, i, a) {
|
|
|
6635
6636
|
"destroy-on-close": !0,
|
|
6636
6637
|
onCancel: e.handleClose
|
|
6637
6638
|
}, {
|
|
6638
|
-
title:
|
|
6639
|
+
title: j(() => [
|
|
6639
6640
|
Ae("span", null, Se(e.title), 1)
|
|
6640
6641
|
]),
|
|
6641
|
-
footer:
|
|
6642
|
+
footer: j(() => [
|
|
6642
6643
|
W(u, null, {
|
|
6643
|
-
default:
|
|
6644
|
+
default: j(() => [
|
|
6644
6645
|
e.hasApiConfig && e.type === "COLUMN_SETTING" ? (k(), X(l, {
|
|
6645
6646
|
key: 0,
|
|
6646
6647
|
onClick: e.handleReset
|
|
6647
6648
|
}, {
|
|
6648
|
-
default:
|
|
6649
|
+
default: j(() => [
|
|
6649
6650
|
be("重置")
|
|
6650
6651
|
]),
|
|
6651
6652
|
_: 1
|
|
@@ -6655,7 +6656,7 @@ function Cb(e, t, n, r, i, a) {
|
|
|
6655
6656
|
loading: e.loading,
|
|
6656
6657
|
onClick: e.handleOk
|
|
6657
6658
|
}, {
|
|
6658
|
-
default:
|
|
6659
|
+
default: j(() => [
|
|
6659
6660
|
be("确定")
|
|
6660
6661
|
]),
|
|
6661
6662
|
_: 1
|
|
@@ -6664,7 +6665,7 @@ function Cb(e, t, n, r, i, a) {
|
|
|
6664
6665
|
_: 1
|
|
6665
6666
|
})
|
|
6666
6667
|
]),
|
|
6667
|
-
default:
|
|
6668
|
+
default: j(() => [
|
|
6668
6669
|
W(o, {
|
|
6669
6670
|
"target-keys": e.toKeys,
|
|
6670
6671
|
"onUpdate:targetKeys": t[0] || (t[0] = (c) => e.toKeys = c),
|
|
@@ -6681,7 +6682,7 @@ function Cb(e, t, n, r, i, a) {
|
|
|
6681
6682
|
},
|
|
6682
6683
|
onChange: e.handleChange
|
|
6683
6684
|
}, {
|
|
6684
|
-
children:
|
|
6685
|
+
children: j(({
|
|
6685
6686
|
direction: c,
|
|
6686
6687
|
selectedKeys: d,
|
|
6687
6688
|
disabled: p,
|
|
@@ -6699,11 +6700,11 @@ function Cb(e, t, n, r, i, a) {
|
|
|
6699
6700
|
}),
|
|
6700
6701
|
"show-expand-column": !1,
|
|
6701
6702
|
columns: e.tableColumn,
|
|
6702
|
-
"data-source": c === "left" ? e.state.dataSource.filter((
|
|
6703
|
+
"data-source": c === "left" ? e.state.dataSource.filter((v) => !e.toKeys.includes(v.key)) : e.state.dataSource.filter((v) => e.toKeys.includes(v.key)),
|
|
6703
6704
|
pagination: !1,
|
|
6704
6705
|
scroll: { y: 300 },
|
|
6705
6706
|
style: ti({ pointerEvents: p ? "none" : null }),
|
|
6706
|
-
"custom-row": (
|
|
6707
|
+
"custom-row": (v, w) => c === "left" ? e.customRowLeft(v, w, d, h) : e.customRowRight(v, w, d, h)
|
|
6707
6708
|
}, null, 8, ["class", "row-selection", "columns", "data-source", "style", "custom-row"])
|
|
6708
6709
|
]),
|
|
6709
6710
|
_: 1
|
|
@@ -6743,59 +6744,59 @@ function $s(e, t, n) {
|
|
|
6743
6744
|
throw new TypeError("Expected a function");
|
|
6744
6745
|
t = +t || 0, yn(n) && (f = !!n.leading, c = "maxWait" in n, a = c ? Math.max(+n.maxWait || 0, t) : a, d = "trailing" in n ? !!n.trailing : d);
|
|
6745
6746
|
function m(g) {
|
|
6746
|
-
const
|
|
6747
|
-
return r = i = void 0, u = g, s = e.apply(P,
|
|
6747
|
+
const S = r, P = i;
|
|
6748
|
+
return r = i = void 0, u = g, s = e.apply(P, S), s;
|
|
6748
6749
|
}
|
|
6749
|
-
function h(g,
|
|
6750
|
-
return p ? (window.cancelAnimationFrame(o), window.requestAnimationFrame(g)) : setTimeout(g,
|
|
6750
|
+
function h(g, S) {
|
|
6751
|
+
return p ? (window.cancelAnimationFrame(o), window.requestAnimationFrame(g)) : setTimeout(g, S);
|
|
6751
6752
|
}
|
|
6752
|
-
function
|
|
6753
|
+
function v(g) {
|
|
6753
6754
|
if (p)
|
|
6754
6755
|
return window.cancelAnimationFrame(g);
|
|
6755
6756
|
clearTimeout(g);
|
|
6756
6757
|
}
|
|
6757
|
-
function
|
|
6758
|
+
function w(g) {
|
|
6758
6759
|
return u = g, o = h($, t), f ? m(g) : s;
|
|
6759
6760
|
}
|
|
6760
6761
|
function O(g) {
|
|
6761
|
-
const
|
|
6762
|
-
return c ? Math.min(
|
|
6762
|
+
const S = g - l, P = g - u, F = t - S;
|
|
6763
|
+
return c ? Math.min(F, a - P) : F;
|
|
6763
6764
|
}
|
|
6764
|
-
function
|
|
6765
|
-
const
|
|
6766
|
-
return l === void 0 ||
|
|
6765
|
+
function y(g) {
|
|
6766
|
+
const S = g - l, P = g - u;
|
|
6767
|
+
return l === void 0 || S >= t || S < 0 || c && P >= a;
|
|
6767
6768
|
}
|
|
6768
6769
|
function $() {
|
|
6769
6770
|
const g = Date.now();
|
|
6770
|
-
if (
|
|
6771
|
+
if (y(g))
|
|
6771
6772
|
return C(g);
|
|
6772
6773
|
o = h($, O(g));
|
|
6773
6774
|
}
|
|
6774
6775
|
function C(g) {
|
|
6775
6776
|
return o = void 0, d && r ? m(g) : (r = i = void 0, s);
|
|
6776
6777
|
}
|
|
6777
|
-
function E() {
|
|
6778
|
-
o !== void 0 && y(o), u = 0, r = l = i = o = void 0;
|
|
6779
|
-
}
|
|
6780
6778
|
function T() {
|
|
6779
|
+
o !== void 0 && v(o), u = 0, r = l = i = o = void 0;
|
|
6780
|
+
}
|
|
6781
|
+
function E() {
|
|
6781
6782
|
return o === void 0 ? s : C(Date.now());
|
|
6782
6783
|
}
|
|
6783
6784
|
function _() {
|
|
6784
6785
|
return o !== void 0;
|
|
6785
6786
|
}
|
|
6786
|
-
function
|
|
6787
|
-
const g = Date.now(),
|
|
6788
|
-
for (var P = arguments.length,
|
|
6789
|
-
|
|
6790
|
-
if (r =
|
|
6787
|
+
function b() {
|
|
6788
|
+
const g = Date.now(), S = y(g);
|
|
6789
|
+
for (var P = arguments.length, F = new Array(P), L = 0; L < P; L++)
|
|
6790
|
+
F[L] = arguments[L];
|
|
6791
|
+
if (r = F, i = this, l = g, S) {
|
|
6791
6792
|
if (o === void 0)
|
|
6792
|
-
return
|
|
6793
|
+
return w(l);
|
|
6793
6794
|
if (c)
|
|
6794
6795
|
return o = h($, t), m(l);
|
|
6795
6796
|
}
|
|
6796
6797
|
return o === void 0 && (o = h($, t)), s;
|
|
6797
6798
|
}
|
|
6798
|
-
return
|
|
6799
|
+
return b.cancel = T, b.flush = E, b.pending = _, b;
|
|
6799
6800
|
}
|
|
6800
6801
|
function Ps(e, t) {
|
|
6801
6802
|
for (const n in t)
|
|
@@ -6867,8 +6868,8 @@ var Rb = ct((e, t) => {
|
|
|
6867
6868
|
}, f = G(() => {
|
|
6868
6869
|
if (o.value)
|
|
6869
6870
|
return o.value;
|
|
6870
|
-
const p = 1e3, m = 1, h = 9,
|
|
6871
|
-
return p *
|
|
6871
|
+
const p = 1e3, m = 1, h = 9, v = Math.floor(Math.random() * 2 ** Math.min(a.value, h) + m);
|
|
6872
|
+
return p * v;
|
|
6872
6873
|
}), c = () => {
|
|
6873
6874
|
let p;
|
|
6874
6875
|
const m = s.value === -1, h = a.value < s.value;
|
|
@@ -6967,82 +6968,82 @@ const Fb = (e, t) => (n) => {
|
|
|
6967
6968
|
onError: o,
|
|
6968
6969
|
onBefore: l,
|
|
6969
6970
|
onAfter: u
|
|
6970
|
-
} = t, f = D((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1), c = nn((i = n == null ? void 0 : n.data) !== null && i !== void 0 ? i : a), d = nn(n == null ? void 0 : n.error), p = D(n == null ? void 0 : n.params), m = D([]), h = nn("pending"),
|
|
6971
|
+
} = t, f = D((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1), c = nn((i = n == null ? void 0 : n.data) !== null && i !== void 0 ? i : a), d = nn(n == null ? void 0 : n.error), p = D(n == null ? void 0 : n.params), m = D([]), h = nn("pending"), v = {}, w = Fb({
|
|
6971
6972
|
status: h,
|
|
6972
6973
|
loading: f,
|
|
6973
6974
|
data: c,
|
|
6974
6975
|
error: d,
|
|
6975
6976
|
params: p
|
|
6976
6977
|
}, []), O = function($) {
|
|
6977
|
-
for (var C = arguments.length,
|
|
6978
|
-
E
|
|
6978
|
+
for (var C = arguments.length, T = new Array(C > 1 ? C - 1 : 0), E = 1; E < C; E++)
|
|
6979
|
+
T[E - 1] = arguments[E];
|
|
6979
6980
|
if ($ === "onQuery") {
|
|
6980
|
-
const _ = m.value.map((
|
|
6981
|
+
const _ = m.value.map((b) => b.onQuery).filter(Boolean);
|
|
6981
6982
|
return {
|
|
6982
|
-
servicePromise: jb(_,
|
|
6983
|
+
servicePromise: jb(_, T[0])()
|
|
6983
6984
|
};
|
|
6984
6985
|
} else {
|
|
6985
|
-
const _ = m.value.map((
|
|
6986
|
+
const _ = m.value.map((b) => {
|
|
6986
6987
|
var g;
|
|
6987
|
-
return (g =
|
|
6988
|
+
return (g = b[$]) === null || g === void 0 ? void 0 : g.call(b, ...T);
|
|
6988
6989
|
});
|
|
6989
6990
|
return Object.assign({}, ..._);
|
|
6990
6991
|
}
|
|
6991
|
-
},
|
|
6992
|
-
return
|
|
6993
|
-
for (var $ = arguments.length, C = new Array($),
|
|
6994
|
-
C[
|
|
6995
|
-
|
|
6992
|
+
}, y = D(0);
|
|
6993
|
+
return v.runAsync = async function() {
|
|
6994
|
+
for (var $ = arguments.length, C = new Array($), T = 0; T < $; T++)
|
|
6995
|
+
C[T] = arguments[T];
|
|
6996
|
+
w({
|
|
6996
6997
|
loading: !0,
|
|
6997
6998
|
params: C,
|
|
6998
6999
|
status: "pending"
|
|
6999
|
-
}),
|
|
7000
|
-
const
|
|
7000
|
+
}), y.value += 1;
|
|
7001
|
+
const E = y.value, {
|
|
7001
7002
|
isBreak: _,
|
|
7002
|
-
breakResult:
|
|
7003
|
+
breakResult: b = Fr()
|
|
7003
7004
|
} = O("onBefore", C);
|
|
7004
7005
|
if (_)
|
|
7005
|
-
return
|
|
7006
|
+
return w({
|
|
7006
7007
|
status: "settled"
|
|
7007
|
-
}),
|
|
7008
|
+
}), b;
|
|
7008
7009
|
l == null || l(C);
|
|
7009
7010
|
try {
|
|
7010
|
-
const g = () => new Promise((
|
|
7011
|
+
const g = () => new Promise((F) => F(e(...p.value)));
|
|
7011
7012
|
let {
|
|
7012
|
-
servicePromise:
|
|
7013
|
+
servicePromise: S
|
|
7013
7014
|
} = O("onQuery", g);
|
|
7014
|
-
|
|
7015
|
-
const P = await
|
|
7016
|
-
return
|
|
7015
|
+
S || (S = g());
|
|
7016
|
+
const P = await S;
|
|
7017
|
+
return E !== y.value ? Fr() : (w({
|
|
7017
7018
|
data: P,
|
|
7018
7019
|
loading: !1,
|
|
7019
7020
|
error: void 0,
|
|
7020
7021
|
status: "settled"
|
|
7021
|
-
}), O("onSuccess", P, C), s == null || s(P, C),
|
|
7022
|
+
}), O("onSuccess", P, C), s == null || s(P, C), E === y.value && O("onAfter", C, P, void 0), u == null || u(C), P);
|
|
7022
7023
|
} catch (g) {
|
|
7023
|
-
if (
|
|
7024
|
+
if (E !== y.value)
|
|
7024
7025
|
return Fr();
|
|
7025
|
-
throw
|
|
7026
|
+
throw w({
|
|
7026
7027
|
loading: !1,
|
|
7027
7028
|
error: g,
|
|
7028
7029
|
status: "settled"
|
|
7029
|
-
}), O("onError", g, C), o == null || o(g, C),
|
|
7030
|
+
}), O("onError", g, C), o == null || o(g, C), E === y.value && O("onAfter", C, void 0, g), u == null || u(C), g;
|
|
7030
7031
|
}
|
|
7031
|
-
},
|
|
7032
|
-
|
|
7032
|
+
}, v.run = function() {
|
|
7033
|
+
v.runAsync(...arguments).catch(($) => {
|
|
7033
7034
|
o || console.error($);
|
|
7034
7035
|
});
|
|
7035
|
-
},
|
|
7036
|
-
|
|
7036
|
+
}, v.cancel = () => {
|
|
7037
|
+
y.value += 1, w({
|
|
7037
7038
|
loading: !1
|
|
7038
7039
|
}), O("onCancel");
|
|
7039
|
-
},
|
|
7040
|
-
|
|
7041
|
-
},
|
|
7042
|
-
const C = Pi($) ? $(c.value) : $,
|
|
7043
|
-
|
|
7044
|
-
data:
|
|
7045
|
-
}), O("onMutate",
|
|
7040
|
+
}, v.refresh = () => {
|
|
7041
|
+
v.run(...p.value || []);
|
|
7042
|
+
}, v.refreshAsync = () => v.runAsync(...p.value || []), v.mutate = ($) => {
|
|
7043
|
+
const C = Pi($) ? $(c.value) : $, T = Pb(C);
|
|
7044
|
+
w({
|
|
7045
|
+
data: T
|
|
7046
|
+
}), O("onMutate", T);
|
|
7046
7047
|
}, {
|
|
7047
7048
|
status: h,
|
|
7048
7049
|
loading: f,
|
|
@@ -7050,7 +7051,7 @@ const Fb = (e, t) => (n) => {
|
|
|
7050
7051
|
error: d,
|
|
7051
7052
|
params: p,
|
|
7052
7053
|
plugins: m,
|
|
7053
|
-
context:
|
|
7054
|
+
context: v
|
|
7054
7055
|
};
|
|
7055
7056
|
};
|
|
7056
7057
|
function Bb(e) {
|
|
@@ -7105,45 +7106,45 @@ var Wb = ct((e, t) => {
|
|
|
7105
7106
|
const o = Pi(n) ? n : () => n, l = D(() => {
|
|
7106
7107
|
});
|
|
7107
7108
|
let u;
|
|
7108
|
-
const f = (
|
|
7109
|
-
s ? s(
|
|
7110
|
-
}, d = (
|
|
7111
|
-
const O = o(
|
|
7112
|
-
return Vb(O, (
|
|
7113
|
-
e.data.value =
|
|
7109
|
+
const f = (w) => a ? a(w) : Ib(w), c = (w, O, y) => {
|
|
7110
|
+
s ? s(w, y) : Db(w, O, y), Yb(w, y.data);
|
|
7111
|
+
}, d = (w) => i === -1 || w + i > (/* @__PURE__ */ new Date()).getTime(), p = (w, O) => Object.prototype.hasOwnProperty.call(w, O), m = (w) => {
|
|
7112
|
+
const O = o(w);
|
|
7113
|
+
return Vb(O, (y) => {
|
|
7114
|
+
e.data.value = y;
|
|
7114
7115
|
});
|
|
7115
|
-
}, h = o(),
|
|
7116
|
-
return
|
|
7116
|
+
}, h = o(), v = f(h);
|
|
7117
|
+
return v && p(v, "data") && (e.data.value = v.data, e.params.value = v.params), h && (l.value = m()), wn(() => {
|
|
7117
7118
|
l.value();
|
|
7118
7119
|
}), {
|
|
7119
|
-
onBefore(
|
|
7120
|
-
const O = o(
|
|
7121
|
-
if (!
|
|
7120
|
+
onBefore(w) {
|
|
7121
|
+
const O = o(w), y = f(O);
|
|
7122
|
+
if (!y || !p(y, "data"))
|
|
7122
7123
|
return {};
|
|
7123
|
-
if (d(
|
|
7124
|
-
return e.data.value =
|
|
7124
|
+
if (d(y.time))
|
|
7125
|
+
return e.data.value = y.data, e.loading.value = !1, {
|
|
7125
7126
|
isBreak: !0,
|
|
7126
|
-
breakResult:
|
|
7127
|
+
breakResult: y.data
|
|
7127
7128
|
};
|
|
7128
|
-
e.data.value =
|
|
7129
|
+
e.data.value = y.data;
|
|
7129
7130
|
},
|
|
7130
|
-
onQuery(
|
|
7131
|
-
const O = e.params.value,
|
|
7132
|
-
let $ = Ub(
|
|
7133
|
-
return $ && $ !== u ? () => $ : ($ =
|
|
7131
|
+
onQuery(w) {
|
|
7132
|
+
const O = e.params.value, y = o(O);
|
|
7133
|
+
let $ = Ub(y);
|
|
7134
|
+
return $ && $ !== u ? () => $ : ($ = w(), u = $, Kb(y, $), () => $);
|
|
7134
7135
|
},
|
|
7135
|
-
onSuccess(
|
|
7136
|
-
const
|
|
7137
|
-
|
|
7138
|
-
data:
|
|
7136
|
+
onSuccess(w, O) {
|
|
7137
|
+
const y = o(O);
|
|
7138
|
+
y && (l.value(), c(y, r, {
|
|
7139
|
+
data: w,
|
|
7139
7140
|
params: O,
|
|
7140
7141
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
7141
7142
|
}), l.value = m(O));
|
|
7142
7143
|
},
|
|
7143
|
-
onMutate(
|
|
7144
|
+
onMutate(w) {
|
|
7144
7145
|
const O = o(e.params.value);
|
|
7145
7146
|
O && (l.value(), c(O, r, {
|
|
7146
|
-
data:
|
|
7147
|
+
data: w,
|
|
7147
7148
|
params: e.params.value,
|
|
7148
7149
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
7149
7150
|
}), l.value = m(e.params.value));
|
|
@@ -7250,15 +7251,15 @@ var qb = ct((e, t) => {
|
|
|
7250
7251
|
), p = (h) => {
|
|
7251
7252
|
if (e.error.value && u.value !== 0)
|
|
7252
7253
|
return;
|
|
7253
|
-
let
|
|
7254
|
+
let v;
|
|
7254
7255
|
if (!Pn(l.value) && l.value >= 0)
|
|
7255
7256
|
if (d())
|
|
7256
|
-
|
|
7257
|
+
v = setTimeout(h, l.value);
|
|
7257
7258
|
else {
|
|
7258
7259
|
o.value = !0;
|
|
7259
7260
|
return;
|
|
7260
7261
|
}
|
|
7261
|
-
return () =>
|
|
7262
|
+
return () => v && clearTimeout(v);
|
|
7262
7263
|
}, m = () => {
|
|
7263
7264
|
o.value && d() && (e.context.refresh(), o.value = !1);
|
|
7264
7265
|
};
|
|
@@ -7335,58 +7336,58 @@ function no(e) {
|
|
|
7335
7336
|
params: d,
|
|
7336
7337
|
run: p,
|
|
7337
7338
|
...m
|
|
7338
|
-
} = Zb(e, f), h = (
|
|
7339
|
-
const [_, ...
|
|
7339
|
+
} = Zb(e, f), h = (E) => {
|
|
7340
|
+
const [_, ...b] = d.value || [], S = [{
|
|
7340
7341
|
..._,
|
|
7341
|
-
...
|
|
7342
|
-
}, ...
|
|
7343
|
-
p(...
|
|
7344
|
-
},
|
|
7342
|
+
...E
|
|
7343
|
+
}, ...b];
|
|
7344
|
+
p(...S);
|
|
7345
|
+
}, v = (E) => {
|
|
7345
7346
|
h({
|
|
7346
|
-
[s]:
|
|
7347
|
+
[s]: E
|
|
7347
7348
|
});
|
|
7348
|
-
},
|
|
7349
|
+
}, w = (E) => {
|
|
7349
7350
|
h({
|
|
7350
|
-
[o]:
|
|
7351
|
+
[o]: E
|
|
7351
7352
|
});
|
|
7352
|
-
}, O = (
|
|
7353
|
+
}, O = (E, _) => {
|
|
7353
7354
|
h({
|
|
7354
|
-
[s]:
|
|
7355
|
+
[s]: E,
|
|
7355
7356
|
[o]: _
|
|
7356
7357
|
});
|
|
7357
|
-
},
|
|
7358
|
+
}, y = G(() => eo(c.value, l, 0)), $ = G({
|
|
7358
7359
|
get: () => {
|
|
7359
|
-
var
|
|
7360
|
+
var E, _, b;
|
|
7360
7361
|
return (
|
|
7361
7362
|
// @ts-ignore
|
|
7362
|
-
(
|
|
7363
|
+
(E = (_ = d.value) === null || _ === void 0 || (b = _[0]) === null || b === void 0 ? void 0 : b[s]) !== null && E !== void 0 ? E : f.defaultParams[0][s]
|
|
7363
7364
|
);
|
|
7364
7365
|
},
|
|
7365
|
-
set: (
|
|
7366
|
-
|
|
7366
|
+
set: (E) => {
|
|
7367
|
+
v(E);
|
|
7367
7368
|
}
|
|
7368
7369
|
}), C = G({
|
|
7369
7370
|
get: () => {
|
|
7370
|
-
var
|
|
7371
|
+
var E, _, b;
|
|
7371
7372
|
return (
|
|
7372
7373
|
// @ts-ignore
|
|
7373
|
-
(
|
|
7374
|
+
(E = (_ = d.value) === null || _ === void 0 || (b = _[0]) === null || b === void 0 ? void 0 : b[o]) !== null && E !== void 0 ? E : f.defaultParams[0][o]
|
|
7374
7375
|
);
|
|
7375
7376
|
},
|
|
7376
|
-
set: (
|
|
7377
|
-
|
|
7377
|
+
set: (E) => {
|
|
7378
|
+
w(E);
|
|
7378
7379
|
}
|
|
7379
|
-
}),
|
|
7380
|
+
}), T = G(() => eo(c.value, u, Math.ceil(y.value / C.value)));
|
|
7380
7381
|
return {
|
|
7381
7382
|
data: c,
|
|
7382
7383
|
params: d,
|
|
7383
7384
|
current: $,
|
|
7384
7385
|
pageSize: C,
|
|
7385
|
-
total:
|
|
7386
|
-
totalPage:
|
|
7386
|
+
total: y,
|
|
7387
|
+
totalPage: T,
|
|
7387
7388
|
run: p,
|
|
7388
|
-
changeCurrent:
|
|
7389
|
-
changePageSize:
|
|
7389
|
+
changeCurrent: v,
|
|
7390
|
+
changePageSize: w,
|
|
7390
7391
|
changePagination: O,
|
|
7391
7392
|
...m
|
|
7392
7393
|
};
|
|
@@ -7416,18 +7417,18 @@ const ro = {
|
|
|
7416
7417
|
}
|
|
7417
7418
|
},
|
|
7418
7419
|
setup(e, { expose: t }) {
|
|
7419
|
-
const n = Cr(), { page: r } = Xe(e), { apiConfig: i, buttons: a, data: s, page_size_options: o, sort: l } = r.value, u = D(r.value.total), f = D(i == null ? void 0 : i.summary), c = D(s), d = D(s), p = D(l), m = D(!1), h = D(!1),
|
|
7420
|
-
导入:
|
|
7420
|
+
const n = Cr(), { page: r } = Xe(e), { apiConfig: i, buttons: a, data: s, page_size_options: o, sort: l } = r.value, u = D(r.value.total), f = D(i == null ? void 0 : i.summary), c = D(s), d = D(s), p = D(l), m = D(!1), h = D(!1), v = D([]), w = D([]), O = D(), y = D(), $ = D(), C = {
|
|
7421
|
+
导入: y,
|
|
7421
7422
|
导出: O
|
|
7422
|
-
},
|
|
7423
|
+
}, T = G(() => ({
|
|
7423
7424
|
COLUMN_SETTING: r.value.fieldShowConfigList,
|
|
7424
7425
|
FILTER_SETTING: r.value.fieldFilterConfigList,
|
|
7425
7426
|
SORT_SETTING: r.value.fieldSortConfigList
|
|
7426
|
-
})),
|
|
7427
|
+
})), E = D(), _ = Ce(
|
|
7427
7428
|
"transformData",
|
|
7428
7429
|
// eslint-disable-next-line
|
|
7429
7430
|
(z, A) => z
|
|
7430
|
-
),
|
|
7431
|
+
), b = Ce("refreshPage", () => {
|
|
7431
7432
|
}), g = () => {
|
|
7432
7433
|
d.value = qa(c.value, (z) => Kv(pe, (A, B) => {
|
|
7433
7434
|
var N;
|
|
@@ -7440,7 +7441,7 @@ const ro = {
|
|
|
7440
7441
|
ne(c, () => {
|
|
7441
7442
|
g();
|
|
7442
7443
|
});
|
|
7443
|
-
const { patchEnumerations:
|
|
7444
|
+
const { patchEnumerations: S, patchStaticEnumerations: P } = Er(), F = D(null), L = D(null), R = D(null), I = bo(Cs, {}), x = D(r.value.columns), M = Ue({
|
|
7444
7445
|
type: "COLUMN_SETTING",
|
|
7445
7446
|
title: "",
|
|
7446
7447
|
columns: [],
|
|
@@ -7449,14 +7450,14 @@ const ro = {
|
|
|
7449
7450
|
if (i)
|
|
7450
7451
|
return r.value.rowKey || console.warn("【TablePage】rowKey 列表唯一键没有定义"), r.value.rowKey;
|
|
7451
7452
|
{
|
|
7452
|
-
const z = qa(
|
|
7453
|
+
const z = qa(x.value, { isUniqueKey: !0 });
|
|
7453
7454
|
return z.length === 0 ? console.warn("【TablePage】isUniqueKey 请设置唯一键") : z.length > 1 && console.warn("【TablePage】isUniqueKey 唯一键应该只有一个"), z[0].columnKey;
|
|
7454
7455
|
}
|
|
7455
7456
|
});
|
|
7456
7457
|
(() => {
|
|
7457
7458
|
if (i) {
|
|
7458
7459
|
const z = at(i.list.url, i.list.method || "post");
|
|
7459
|
-
|
|
7460
|
+
E.value = no(z, {
|
|
7460
7461
|
manual: !0,
|
|
7461
7462
|
// 手动模式
|
|
7462
7463
|
loadingKeep: 100,
|
|
@@ -7471,7 +7472,7 @@ const ro = {
|
|
|
7471
7472
|
const z = at(
|
|
7472
7473
|
`/duckbill-data-query-server/table/search/${n.meta.category}`
|
|
7473
7474
|
);
|
|
7474
|
-
|
|
7475
|
+
E.value = no(z, {
|
|
7475
7476
|
manual: !0,
|
|
7476
7477
|
// 手动模式
|
|
7477
7478
|
loadingKeep: 100,
|
|
@@ -7495,7 +7496,7 @@ const ro = {
|
|
|
7495
7496
|
})(), bt(() => {
|
|
7496
7497
|
a.forEach((z) => {
|
|
7497
7498
|
const A = C[z.children];
|
|
7498
|
-
A ? A.value = z : z.columnAction ?
|
|
7499
|
+
A ? A.value = z : z.columnAction ? w.value.push(z) : v.value.push(z);
|
|
7499
7500
|
});
|
|
7500
7501
|
});
|
|
7501
7502
|
const { initFormState: ie } = _n(), pe = ie(
|
|
@@ -7522,10 +7523,10 @@ const ro = {
|
|
|
7522
7523
|
sort: p.value,
|
|
7523
7524
|
listApiConfig: i.list
|
|
7524
7525
|
});
|
|
7525
|
-
|
|
7526
|
+
E.value.run(z);
|
|
7526
7527
|
} else {
|
|
7527
7528
|
const { category: z, tab: A } = n.meta;
|
|
7528
|
-
|
|
7529
|
+
E.value.run({
|
|
7529
7530
|
category: z,
|
|
7530
7531
|
tab: A,
|
|
7531
7532
|
pageNumber: $e.value,
|
|
@@ -7563,16 +7564,16 @@ const ro = {
|
|
|
7563
7564
|
ze.href = it, ze.download = ae, document.body.appendChild(ze), ze.click(), document.body.removeChild(ze), window.URL.revokeObjectURL(it);
|
|
7564
7565
|
}, Dn = () => {
|
|
7565
7566
|
var z, A;
|
|
7566
|
-
(z = R.value) == null || z.resetFields(), (A =
|
|
7567
|
+
(z = R.value) == null || z.resetFields(), (A = F.value) == null || A.clearSort();
|
|
7567
7568
|
}, Or = () => {
|
|
7568
7569
|
var z;
|
|
7569
|
-
(z =
|
|
7570
|
+
(z = F.value) == null || z.clearSelect();
|
|
7570
7571
|
}, _r = () => {
|
|
7571
7572
|
var z;
|
|
7572
|
-
return (z =
|
|
7573
|
+
return (z = F.value) == null ? void 0 : z.toggleTableHeight();
|
|
7573
7574
|
}, qt = () => {
|
|
7574
7575
|
var z;
|
|
7575
|
-
return (z =
|
|
7576
|
+
return (z = L.value) == null ? void 0 : z.fetchSummary();
|
|
7576
7577
|
}, Xt = Ce("emitHandler", () => {
|
|
7577
7578
|
});
|
|
7578
7579
|
Dt("pageName", e.page.name);
|
|
@@ -7581,9 +7582,9 @@ const ro = {
|
|
|
7581
7582
|
Xt(z, K, N);
|
|
7582
7583
|
}, Qt = async () => {
|
|
7583
7584
|
M.visible = !1, setTimeout(() => {
|
|
7584
|
-
|
|
7585
|
+
b();
|
|
7585
7586
|
}, 500);
|
|
7586
|
-
}, $r = G(() =>
|
|
7587
|
+
}, $r = G(() => x.value.map((z) => ({
|
|
7587
7588
|
...z,
|
|
7588
7589
|
show: i ? !0 : V.value.includes(z.columnKey)
|
|
7589
7590
|
})));
|
|
@@ -7592,15 +7593,15 @@ const ro = {
|
|
|
7592
7593
|
const Q = V.value.indexOf(N.columnKey), ae = V.value.indexOf(K.columnKey);
|
|
7593
7594
|
return Q - ae;
|
|
7594
7595
|
});
|
|
7595
|
-
|
|
7596
|
+
w.value.length > 0 && z.unshift({
|
|
7596
7597
|
title: "操作",
|
|
7597
7598
|
align: "center",
|
|
7598
7599
|
columnKey: "action",
|
|
7599
|
-
children:
|
|
7600
|
+
children: w.value.map((N) => ({
|
|
7600
7601
|
text: N.children,
|
|
7601
7602
|
action: N.action
|
|
7602
7603
|
})),
|
|
7603
|
-
width:
|
|
7604
|
+
width: w.value.reduce((N, K) => N + Number(K.columnActionWidth || 50), 0)
|
|
7604
7605
|
});
|
|
7605
7606
|
let A = z;
|
|
7606
7607
|
const B = I.value[e.page.name];
|
|
@@ -7618,14 +7619,14 @@ const ro = {
|
|
|
7618
7619
|
}
|
|
7619
7620
|
Y.value = A;
|
|
7620
7621
|
}), Ct(async () => {
|
|
7621
|
-
P(e.page.enumerations), await
|
|
7622
|
+
P(e.page.enumerations), await S(e.page.enumapi), h.value = !0, xe().then(() => {
|
|
7622
7623
|
qt();
|
|
7623
7624
|
});
|
|
7624
7625
|
}), i ? ne([$e, ve], () => {
|
|
7625
7626
|
We();
|
|
7626
7627
|
}) : ne([$e, ve, p], ([z, A, B]) => {
|
|
7627
7628
|
const { category: N, tab: K } = n.meta;
|
|
7628
|
-
|
|
7629
|
+
E.value.run({
|
|
7629
7630
|
category: N,
|
|
7630
7631
|
tab: K,
|
|
7631
7632
|
pageNumber: z,
|
|
@@ -7647,7 +7648,7 @@ const ro = {
|
|
|
7647
7648
|
FILTER_SETTING: !N.filterable
|
|
7648
7649
|
};
|
|
7649
7650
|
if (z === "SORT_SETTING") {
|
|
7650
|
-
const Q =
|
|
7651
|
+
const Q = T.value[z].find(
|
|
7651
7652
|
(ae) => ae.columnKey === N.columnKey
|
|
7652
7653
|
);
|
|
7653
7654
|
Object.keys(ro).forEach((ae) => {
|
|
@@ -7662,7 +7663,7 @@ const ro = {
|
|
|
7662
7663
|
} else
|
|
7663
7664
|
B.push({
|
|
7664
7665
|
...N,
|
|
7665
|
-
show: !!
|
|
7666
|
+
show: !!T.value[z].find(
|
|
7666
7667
|
(Q) => Q.columnKey === N.columnKey
|
|
7667
7668
|
),
|
|
7668
7669
|
disabled: K[z]
|
|
@@ -7675,19 +7676,19 @@ const ro = {
|
|
|
7675
7676
|
apiConfig: i,
|
|
7676
7677
|
tableData: d,
|
|
7677
7678
|
rowKey: ee,
|
|
7678
|
-
paginationQuery:
|
|
7679
|
+
paginationQuery: E,
|
|
7679
7680
|
loaded: h,
|
|
7680
|
-
buttonsConfig:
|
|
7681
|
+
buttonsConfig: v,
|
|
7681
7682
|
exportConfig: O,
|
|
7682
|
-
importConfig:
|
|
7683
|
+
importConfig: y,
|
|
7683
7684
|
summary: f,
|
|
7684
7685
|
current: $e,
|
|
7685
7686
|
pageSize: ve,
|
|
7686
7687
|
pageTotal: u,
|
|
7687
7688
|
sort: p,
|
|
7688
|
-
tableView:
|
|
7689
|
+
tableView: F,
|
|
7689
7690
|
conditions: R,
|
|
7690
|
-
summaryBar:
|
|
7691
|
+
summaryBar: L,
|
|
7691
7692
|
sortedColumns: Y,
|
|
7692
7693
|
columnSettingState: M,
|
|
7693
7694
|
columnSettingVisible: m,
|
|
@@ -7804,8 +7805,8 @@ const Rs = /* @__PURE__ */ Qe(Jb, [["render", ew]]), tw = Oe({
|
|
|
7804
7805
|
}, s = {}, o = D({}), l = (p, m) => {
|
|
7805
7806
|
p !== null && (o.value[m] = p, s[m] = () => o.value[m].run());
|
|
7806
7807
|
}, u = (p, m) => {
|
|
7807
|
-
var
|
|
7808
|
-
const h = (
|
|
7808
|
+
var v;
|
|
7809
|
+
const h = (v = e.customEvent) == null ? void 0 : v[e.tabClickAction];
|
|
7809
7810
|
if (h)
|
|
7810
7811
|
return h({ name: p, index: m });
|
|
7811
7812
|
if (i)
|
|
@@ -7831,12 +7832,12 @@ function nw(e, t, n, r, i, a) {
|
|
|
7831
7832
|
"tab-bar-gutter": 0,
|
|
7832
7833
|
onChange: e.activeChange
|
|
7833
7834
|
}, {
|
|
7834
|
-
default:
|
|
7835
|
+
default: j(() => [
|
|
7835
7836
|
(k(!0), Z(he, null, Me(e.pages, (u) => (k(), X(o, {
|
|
7836
7837
|
key: u.name,
|
|
7837
7838
|
tab: u.title
|
|
7838
7839
|
}, {
|
|
7839
|
-
default:
|
|
7840
|
+
default: j(() => [
|
|
7840
7841
|
W(s, {
|
|
7841
7842
|
page: u,
|
|
7842
7843
|
ref_for: !0,
|
|
@@ -8137,46 +8138,46 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8137
8138
|
const n = Cr(), r = D(null), i = D(null), a = D(""), s = D(null), o = D(null), l = D([]), u = D(), f = { title: "", component: null }, { selectedErrorRowKeys: c } = An(), d = nn(f), p = D(!!e.options), m = D(e.options);
|
|
8138
8139
|
ne(
|
|
8139
8140
|
() => e.options,
|
|
8140
|
-
(
|
|
8141
|
-
m.value =
|
|
8141
|
+
(S) => {
|
|
8142
|
+
m.value = S;
|
|
8142
8143
|
}
|
|
8143
8144
|
), ne(
|
|
8144
8145
|
() => m,
|
|
8145
|
-
(
|
|
8146
|
-
p.value = !!
|
|
8146
|
+
(S) => {
|
|
8147
|
+
p.value = !!S;
|
|
8147
8148
|
}
|
|
8148
8149
|
);
|
|
8149
|
-
const h = D(!1),
|
|
8150
|
+
const h = D(!1), v = Ce(
|
|
8150
8151
|
"actionGuard",
|
|
8151
8152
|
null
|
|
8152
8153
|
);
|
|
8153
8154
|
$i().interceptors.response.use(
|
|
8154
|
-
(
|
|
8155
|
-
var P,
|
|
8156
|
-
if (
|
|
8155
|
+
(S) => {
|
|
8156
|
+
var P, F;
|
|
8157
|
+
if (S.data && ((P = S.data) == null ? void 0 : P.type) === "string" && typeof ((F = S.data) == null ? void 0 : F.value) == "string")
|
|
8157
8158
|
try {
|
|
8158
|
-
|
|
8159
|
+
S.data = JSON.parse(S.data.value);
|
|
8159
8160
|
} catch {
|
|
8160
8161
|
console.warn("response.data is not a json string");
|
|
8161
8162
|
}
|
|
8162
|
-
return
|
|
8163
|
+
return S;
|
|
8163
8164
|
}
|
|
8164
8165
|
), Ct(() => {
|
|
8165
8166
|
$();
|
|
8166
8167
|
});
|
|
8167
8168
|
const O = at(
|
|
8168
8169
|
`/duckbill-data-query-server/table/search/${n.meta.category}`
|
|
8169
|
-
),
|
|
8170
|
+
), y = () => {
|
|
8170
8171
|
p.value = !1, xe(() => {
|
|
8171
8172
|
p.value = !0;
|
|
8172
8173
|
});
|
|
8173
8174
|
}, $ = async () => {
|
|
8174
|
-
const { category:
|
|
8175
|
-
if (!e.options &&
|
|
8175
|
+
const { category: S, tab: P } = n.meta;
|
|
8176
|
+
if (!e.options && S && P) {
|
|
8176
8177
|
h.value = !0;
|
|
8177
8178
|
try {
|
|
8178
|
-
const
|
|
8179
|
-
category:
|
|
8179
|
+
const F = await O({
|
|
8180
|
+
category: S,
|
|
8180
8181
|
tab: P,
|
|
8181
8182
|
pageNumber: 1,
|
|
8182
8183
|
pageSize: 100,
|
|
@@ -8184,36 +8185,36 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8184
8185
|
sorts: {},
|
|
8185
8186
|
filters: {}
|
|
8186
8187
|
});
|
|
8187
|
-
m.value =
|
|
8188
|
+
m.value = F.data;
|
|
8188
8189
|
} catch {
|
|
8189
8190
|
Te.error("页面配置请求失败!");
|
|
8190
8191
|
} finally {
|
|
8191
8192
|
h.value = !1;
|
|
8192
8193
|
}
|
|
8193
8194
|
}
|
|
8194
|
-
window.__POWERED_BY_WUJIE__ &&
|
|
8195
|
+
window.__POWERED_BY_WUJIE__ && y();
|
|
8195
8196
|
}, C = {
|
|
8196
8197
|
locale: gw,
|
|
8197
8198
|
transformCellText: ({
|
|
8198
|
-
text:
|
|
8199
|
+
text: S,
|
|
8199
8200
|
column: P,
|
|
8200
|
-
record:
|
|
8201
|
-
}) => !P || P.dataIndex === "action" ?
|
|
8202
|
-
},
|
|
8203
|
-
var
|
|
8204
|
-
(
|
|
8201
|
+
record: F
|
|
8202
|
+
}) => !P || P.dataIndex === "action" ? S : vn(F[P.dataIndex]) || F[P.dataIndex] === "" ? " - " : S
|
|
8203
|
+
}, T = (S, P) => {
|
|
8204
|
+
var F;
|
|
8205
|
+
(F = o.value) == null || F.open(S, P);
|
|
8205
8206
|
};
|
|
8206
|
-
Dt("materials", (g = e.config) == null ? void 0 : g.materials), Dt("previewMediaModalOpen",
|
|
8207
|
+
Dt("materials", (g = e.config) == null ? void 0 : g.materials), Dt("previewMediaModalOpen", T), Dt("tableCellSlots", e.tableCellSlots || {}), Dt("refreshPage", $), Dt(
|
|
8207
8208
|
"emitHandler",
|
|
8208
|
-
(
|
|
8209
|
-
var R, I,
|
|
8210
|
-
const
|
|
8211
|
-
if (e.form === void 0 || !e.form[
|
|
8212
|
-
const M = (R = e.customEvent) == null ? void 0 : R[
|
|
8209
|
+
(S, P, F) => {
|
|
8210
|
+
var R, I, x;
|
|
8211
|
+
const L = gn(P);
|
|
8212
|
+
if (e.form === void 0 || !e.form[S]) {
|
|
8213
|
+
const M = (R = e.customEvent) == null ? void 0 : R[S];
|
|
8213
8214
|
if (!M)
|
|
8214
|
-
return
|
|
8215
|
+
return v ? v(S, L) : Te.warn("没有找到自定义事件处理函数"), F == null ? void 0 : F();
|
|
8215
8216
|
try {
|
|
8216
|
-
M(
|
|
8217
|
+
M(L, (V) => {
|
|
8217
8218
|
var ee;
|
|
8218
8219
|
const Y = (ee = m.value.page) == null ? void 0 : ee.rowKey;
|
|
8219
8220
|
Y && V.forEach((re) => {
|
|
@@ -8222,14 +8223,14 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8222
8223
|
});
|
|
8223
8224
|
}).finally(() => {
|
|
8224
8225
|
setTimeout(() => {
|
|
8225
|
-
|
|
8226
|
+
F == null || F();
|
|
8226
8227
|
}, 100);
|
|
8227
8228
|
});
|
|
8228
8229
|
} catch (V) {
|
|
8229
8230
|
((I = V.message) == null ? void 0 : I.indexOf("finally")) > -1 ? Te.warn("自定义事件处理函数必须返回一个Promise") : Te.warn(V.message);
|
|
8230
8231
|
}
|
|
8231
8232
|
} else
|
|
8232
|
-
(((
|
|
8233
|
+
(((x = e.customEvent) == null ? void 0 : x[S]) || (() => Promise.resolve()))(L, (V) => {
|
|
8233
8234
|
var ee;
|
|
8234
8235
|
const Y = (ee = m.value.page) == null ? void 0 : ee.rowKey;
|
|
8235
8236
|
Y && V.forEach((re) => {
|
|
@@ -8238,35 +8239,35 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8238
8239
|
});
|
|
8239
8240
|
}).then((V) => {
|
|
8240
8241
|
var Y;
|
|
8241
|
-
u.value = V, d.value = e.form[
|
|
8242
|
+
u.value = V, d.value = e.form[S], l.value = d.value.needSelectRows === !1 ? [] : L, (Y = s.value) == null || Y.openModal();
|
|
8242
8243
|
}).finally(() => {
|
|
8243
8244
|
setTimeout(() => {
|
|
8244
|
-
|
|
8245
|
+
F == null || F();
|
|
8245
8246
|
}, 100);
|
|
8246
8247
|
});
|
|
8247
8248
|
}
|
|
8248
8249
|
), ow();
|
|
8249
|
-
const
|
|
8250
|
-
var
|
|
8250
|
+
const E = () => {
|
|
8251
|
+
var S, P;
|
|
8251
8252
|
return {
|
|
8252
|
-
basic: (
|
|
8253
|
+
basic: (S = r.value) == null ? void 0 : S.run(),
|
|
8253
8254
|
tabs: (P = i.value) == null ? void 0 : P.run(a.value)
|
|
8254
8255
|
}[m.value.type];
|
|
8255
8256
|
};
|
|
8256
|
-
return t({ run:
|
|
8257
|
-
var
|
|
8257
|
+
return t({ run: E, resetSearch: () => {
|
|
8258
|
+
var S, P;
|
|
8258
8259
|
return {
|
|
8259
|
-
basic: (
|
|
8260
|
+
basic: (S = r.value) == null ? void 0 : S.resetSearch(),
|
|
8260
8261
|
tabs: (P = i.value) == null ? void 0 : P.resetSearch(a.value)
|
|
8261
8262
|
}[m.value.type];
|
|
8262
8263
|
}, clearSelect: () => {
|
|
8263
|
-
var
|
|
8264
|
+
var S, P;
|
|
8264
8265
|
return {
|
|
8265
|
-
basic: (
|
|
8266
|
+
basic: (S = r.value) == null ? void 0 : S.clearSelect(),
|
|
8266
8267
|
tabs: (P = i.value) == null ? void 0 : P.clearSelect(a.value)
|
|
8267
8268
|
}[m.value.type];
|
|
8268
8269
|
} }), {
|
|
8269
|
-
run:
|
|
8270
|
+
run: E,
|
|
8270
8271
|
loaded: p,
|
|
8271
8272
|
rows: l,
|
|
8272
8273
|
tabs: i,
|
|
@@ -8284,7 +8285,7 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8284
8285
|
function bw(e, t, n, r, i, a) {
|
|
8285
8286
|
const s = U("TablePage"), o = U("TabsPage"), l = U("FormModal"), u = U("PreviewMediaModal"), f = U("ConfigProvider");
|
|
8286
8287
|
return e.loaded ? (k(), X(f, It(Ge({ key: 0 }, e.getPopupContainer)), {
|
|
8287
|
-
default:
|
|
8288
|
+
default: j(() => [
|
|
8288
8289
|
Ae("div", yw, [
|
|
8289
8290
|
e.rendererOptions.type === "basic" ? (k(), X(s, {
|
|
8290
8291
|
key: 0,
|
|
@@ -8292,7 +8293,7 @@ function bw(e, t, n, r, i, a) {
|
|
|
8292
8293
|
config: e.config,
|
|
8293
8294
|
ref: "table"
|
|
8294
8295
|
}, {
|
|
8295
|
-
summaryBar:
|
|
8296
|
+
summaryBar: j(() => [
|
|
8296
8297
|
Lt(e.$slots, "summaryBar")
|
|
8297
8298
|
]),
|
|
8298
8299
|
_: 3
|