@yzsf2e/render-core 1.0.2-alpha.120 → 1.0.2-alpha.121
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 +582 -582
- package/dist/render-core.umd.js +3 -3
- package/package.json +1 -1
package/dist/render-core.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getCurrentInstance as St, defineComponent as be, ref as $, computed as q, createVNode as Y, mergeProps as ke, openBlock as R, createBlock as V, resolveDynamicComponent as Zt, effectScope as nl, unref as De, isRef as ht, toRefs as Ze, customRef as rl, onMounted as Rt, nextTick as
|
|
2
|
-
import { DatePicker as Oo, Modal as ur, Button as Sr, Space as Rn, message as
|
|
1
|
+
import { getCurrentInstance as St, defineComponent as be, ref as $, computed as q, createVNode as Y, mergeProps as ke, openBlock as R, createBlock as V, resolveDynamicComponent as Zt, effectScope as nl, unref as De, isRef as ht, toRefs as Ze, customRef as rl, onMounted as Rt, nextTick as Ue, getCurrentScope as al, onScopeDispose as il, readonly as ol, watch as ie, shallowRef as mn, resolveComponent as B, withCtx as F, createElementBlock as Z, Fragment as ye, createTextVNode as we, toDisplayString as ae, renderSlot as Vt, createElementVNode as Fe, createCommentVNode as me, reactive as Xe, onUnmounted as Dn, watchEffect as It, normalizeStyle as va, renderList as Be, createApp as sl, toRaw as Re, inject as Ce, h as je, withDirectives as lr, vShow as So, withModifiers as Eo, resolveDirective as Co, createSlots as To, onRenderTriggered as ll, isVNode as ul, normalizeClass as _o, normalizeProps as fn, guardReactiveProps as cl, provide as _t } from "vue";
|
|
2
|
+
import { DatePicker as Oo, Modal as ur, Button as Sr, Space as Rn, message as Pe, InputGroup as fl, InputNumber as Xa, Input as dl, Select as er, Cascader as pl, RangePicker as hl, Col as gl, Row as ml, Form as ya, Menu as vl, MenuItem as yl, Dropdown as bl, Pagination as wl, DropdownButton as Sl, Alert as Qa, Spin as El, Table as Cl, Transfer as Tl } from "ant-design-vue";
|
|
3
3
|
import * as _l from "@ant-design/icons-vue";
|
|
4
4
|
import { CloseOutlined as Ol, ShrinkOutlined as Al, ArrowsAltOutlined as $l, HolderOutlined as Pl, DownOutlined as Ao, UpOutlined as Il, SettingOutlined as Nl, CopyOutlined as Dl, LoadingOutlined as $o, FilterOutlined as Rl } from "@ant-design/icons-vue";
|
|
5
5
|
import { useI18n as Po } from "vue-i18n";
|
|
6
6
|
import { useRouter as Ll } from "vue-router";
|
|
7
7
|
/*!
|
|
8
|
-
* @yzsf2e/render-core v1.0.2-alpha.
|
|
8
|
+
* @yzsf2e/render-core v1.0.2-alpha.121 Tue Nov 12 2024 18:39:27 GMT+0800 (中国标准时间)
|
|
9
9
|
* (c) 2023 @yzsf2e.
|
|
10
10
|
*/
|
|
11
|
-
const Ml = "@yzsf2e/render-core", kl = "1.0.2-alpha.
|
|
11
|
+
const Ml = "@yzsf2e/render-core", kl = "1.0.2-alpha.121", Fl = "dist/render-core", zl = "dist/render-core", jl = [
|
|
12
12
|
"dist"
|
|
13
13
|
], xl = {
|
|
14
14
|
dev: "storybook dev -p 6006",
|
|
@@ -198,7 +198,7 @@ function Ln(e) {
|
|
|
198
198
|
const r = nl(!0);
|
|
199
199
|
return (...a) => (t || (n = r.run(() => e(...a)), t = !0), n);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function xe(e) {
|
|
202
202
|
return typeof e == "function" ? e() : De(e);
|
|
203
203
|
}
|
|
204
204
|
const Do = typeof window < "u" && typeof document < "u";
|
|
@@ -269,7 +269,7 @@ function pu(e, t = {}) {
|
|
|
269
269
|
},
|
|
270
270
|
set(a) {
|
|
271
271
|
var i;
|
|
272
|
-
if ((i =
|
|
272
|
+
if ((i = xe(t.replaceRef)) != null ? i : !0)
|
|
273
273
|
if (Array.isArray(e.value)) {
|
|
274
274
|
const o = [...e.value];
|
|
275
275
|
o[r] = a, e.value = o;
|
|
@@ -285,11 +285,11 @@ function pu(e, t = {}) {
|
|
|
285
285
|
}
|
|
286
286
|
function hu(e, t = !0, n) {
|
|
287
287
|
const r = cu(n);
|
|
288
|
-
r ? Rt(e, r) : t ? e() :
|
|
288
|
+
r ? Rt(e, r) : t ? e() : Ue(e);
|
|
289
289
|
}
|
|
290
290
|
function aa(e) {
|
|
291
291
|
var t;
|
|
292
|
-
const n =
|
|
292
|
+
const n = xe(e);
|
|
293
293
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
294
294
|
}
|
|
295
295
|
const Sn = Do ? window : void 0;
|
|
@@ -301,13 +301,13 @@ function vn(...e) {
|
|
|
301
301
|
const i = [], s = () => {
|
|
302
302
|
i.forEach((f) => f()), i.length = 0;
|
|
303
303
|
}, o = (f, c, p, d) => (f.addEventListener(c, p, d), () => f.removeEventListener(c, p, d)), u = ie(
|
|
304
|
-
() => [aa(t),
|
|
304
|
+
() => [aa(t), xe(a)],
|
|
305
305
|
([f, c]) => {
|
|
306
306
|
if (s(), !f)
|
|
307
307
|
return;
|
|
308
308
|
const p = ou(c) ? { ...c } : c;
|
|
309
309
|
i.push(
|
|
310
|
-
...n.flatMap((d) => r.map((
|
|
310
|
+
...n.flatMap((d) => r.map((g) => o(f, d, g, p)))
|
|
311
311
|
);
|
|
312
312
|
},
|
|
313
313
|
{ immediate: !0, flush: "post" }
|
|
@@ -387,7 +387,7 @@ function Lo(e, t, n, r = {}) {
|
|
|
387
387
|
onError: d = (E) => {
|
|
388
388
|
console.error(E);
|
|
389
389
|
},
|
|
390
|
-
initOnMounted:
|
|
390
|
+
initOnMounted: g
|
|
391
391
|
} = r, h = (f ? mn : $)(typeof t == "function" ? t() : t);
|
|
392
392
|
if (!n)
|
|
393
393
|
try {
|
|
@@ -400,42 +400,42 @@ function Lo(e, t, n, r = {}) {
|
|
|
400
400
|
}
|
|
401
401
|
if (!n)
|
|
402
402
|
return h;
|
|
403
|
-
const
|
|
403
|
+
const m = xe(t), b = Su(m), T = (a = r.serializer) != null ? a : Eu[b], { pause: S, resume: _ } = du(
|
|
404
404
|
h,
|
|
405
405
|
() => M(h.value),
|
|
406
406
|
{ flush: i, deep: s, eventFilter: p }
|
|
407
407
|
);
|
|
408
408
|
return c && o && hu(() => {
|
|
409
|
-
vn(c, "storage", A), vn(c, Za, v),
|
|
410
|
-
}),
|
|
409
|
+
vn(c, "storage", A), vn(c, Za, v), g && A();
|
|
410
|
+
}), g || A(), h;
|
|
411
411
|
function M(E) {
|
|
412
412
|
try {
|
|
413
413
|
if (E == null)
|
|
414
414
|
n.removeItem(e);
|
|
415
415
|
else {
|
|
416
|
-
const
|
|
417
|
-
w !==
|
|
416
|
+
const y = T.write(E), w = n.getItem(e);
|
|
417
|
+
w !== y && (n.setItem(e, y), c && c.dispatchEvent(new CustomEvent(Za, {
|
|
418
418
|
detail: {
|
|
419
419
|
key: e,
|
|
420
420
|
oldValue: w,
|
|
421
|
-
newValue:
|
|
421
|
+
newValue: y,
|
|
422
422
|
storageArea: n
|
|
423
423
|
}
|
|
424
424
|
})));
|
|
425
425
|
}
|
|
426
|
-
} catch (
|
|
427
|
-
d(
|
|
426
|
+
} catch (y) {
|
|
427
|
+
d(y);
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
function O(E) {
|
|
431
|
-
const
|
|
432
|
-
if (
|
|
433
|
-
return u &&
|
|
431
|
+
const y = E ? E.newValue : n.getItem(e);
|
|
432
|
+
if (y == null)
|
|
433
|
+
return u && m != null && n.setItem(e, T.write(m)), m;
|
|
434
434
|
if (!E && l) {
|
|
435
|
-
const w = T.read(
|
|
436
|
-
return typeof l == "function" ? l(w,
|
|
435
|
+
const w = T.read(y);
|
|
436
|
+
return typeof l == "function" ? l(w, m) : b === "object" && !Array.isArray(w) ? { ...m, ...w } : w;
|
|
437
437
|
} else
|
|
438
|
-
return typeof
|
|
438
|
+
return typeof y != "string" ? y : T.read(y);
|
|
439
439
|
}
|
|
440
440
|
function v(E) {
|
|
441
441
|
A(E.detail);
|
|
@@ -443,17 +443,17 @@ function Lo(e, t, n, r = {}) {
|
|
|
443
443
|
function A(E) {
|
|
444
444
|
if (!(E && E.storageArea !== n)) {
|
|
445
445
|
if (E && E.key == null) {
|
|
446
|
-
h.value =
|
|
446
|
+
h.value = m;
|
|
447
447
|
return;
|
|
448
448
|
}
|
|
449
449
|
if (!(E && E.key !== e)) {
|
|
450
450
|
S();
|
|
451
451
|
try {
|
|
452
452
|
(E == null ? void 0 : E.newValue) !== T.write(h.value) && (h.value = O(E));
|
|
453
|
-
} catch (
|
|
454
|
-
d(
|
|
453
|
+
} catch (y) {
|
|
454
|
+
d(y);
|
|
455
455
|
} finally {
|
|
456
|
-
E ?
|
|
456
|
+
E ? Ue(_) : _();
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
@@ -472,44 +472,44 @@ function Cu(e, t = {}) {
|
|
|
472
472
|
initialValue: c,
|
|
473
473
|
axis: p = "both",
|
|
474
474
|
draggingElement: d = Sn,
|
|
475
|
-
containerElement:
|
|
475
|
+
containerElement: g,
|
|
476
476
|
handle: h = e
|
|
477
|
-
} = t,
|
|
478
|
-
(n =
|
|
479
|
-
),
|
|
480
|
-
|
|
477
|
+
} = t, m = $(
|
|
478
|
+
(n = xe(c)) != null ? n : { x: 0, y: 0 }
|
|
479
|
+
), b = $(), T = (v) => a ? a.includes(v.pointerType) : !0, S = (v) => {
|
|
480
|
+
xe(i) && v.preventDefault(), xe(s) && v.stopPropagation();
|
|
481
481
|
}, _ = (v) => {
|
|
482
482
|
var A;
|
|
483
|
-
if (!T(v) ||
|
|
483
|
+
if (!T(v) || xe(o) && v.target !== xe(e))
|
|
484
484
|
return;
|
|
485
|
-
const E =
|
|
486
|
-
x: v.clientX - (E ? w.left -
|
|
487
|
-
y: v.clientY - (E ? w.top -
|
|
485
|
+
const E = xe(g), y = (A = E == null ? void 0 : E.getBoundingClientRect) == null ? void 0 : A.call(E), w = xe(e).getBoundingClientRect(), C = {
|
|
486
|
+
x: v.clientX - (E ? w.left - y.left : w.left),
|
|
487
|
+
y: v.clientY - (E ? w.top - y.top : w.top)
|
|
488
488
|
};
|
|
489
|
-
(f == null ? void 0 : f(C, v)) !== !1 && (
|
|
489
|
+
(f == null ? void 0 : f(C, v)) !== !1 && (b.value = C, S(v));
|
|
490
490
|
}, M = (v) => {
|
|
491
491
|
var A;
|
|
492
|
-
if (!T(v) || !
|
|
492
|
+
if (!T(v) || !b.value)
|
|
493
493
|
return;
|
|
494
|
-
const E =
|
|
495
|
-
let { x: C, y: k } =
|
|
496
|
-
(p === "x" || p === "both") && (C = v.clientX -
|
|
494
|
+
const E = xe(g), y = (A = E == null ? void 0 : E.getBoundingClientRect) == null ? void 0 : A.call(E), w = xe(e).getBoundingClientRect();
|
|
495
|
+
let { x: C, y: k } = m.value;
|
|
496
|
+
(p === "x" || p === "both") && (C = v.clientX - b.value.x, E && (C = Math.min(Math.max(0, C), y.width - w.width))), (p === "y" || p === "both") && (k = v.clientY - b.value.y, E && (k = Math.min(Math.max(0, k), y.height - w.height))), m.value = {
|
|
497
497
|
x: C,
|
|
498
498
|
y: k
|
|
499
|
-
}, u == null || u(
|
|
499
|
+
}, u == null || u(m.value, v), S(v);
|
|
500
500
|
}, O = (v) => {
|
|
501
|
-
T(v) &&
|
|
501
|
+
T(v) && b.value && (b.value = void 0, l == null || l(m.value, v), S(v));
|
|
502
502
|
};
|
|
503
503
|
if (Do) {
|
|
504
504
|
const v = { capture: (r = t.capture) != null ? r : !0 };
|
|
505
505
|
vn(h, "pointerdown", _, v), vn(d, "pointermove", M, v), vn(d, "pointerup", O, v);
|
|
506
506
|
}
|
|
507
507
|
return {
|
|
508
|
-
...pu(
|
|
509
|
-
position:
|
|
510
|
-
isDragging: q(() => !!
|
|
508
|
+
...pu(m),
|
|
509
|
+
position: m,
|
|
510
|
+
isDragging: q(() => !!b.value),
|
|
511
511
|
style: q(
|
|
512
|
-
() => `left:${
|
|
512
|
+
() => `left:${m.value.x}px;top:${m.value.y}px;`
|
|
513
513
|
)
|
|
514
514
|
};
|
|
515
515
|
}
|
|
@@ -545,19 +545,19 @@ function rn(e, t, n, r = {}) {
|
|
|
545
545
|
deep: f = !1,
|
|
546
546
|
defaultValue: c,
|
|
547
547
|
shouldEmit: p
|
|
548
|
-
} = r, d = St(),
|
|
548
|
+
} = r, d = St(), g = n || (d == null ? void 0 : d.emit) || ((a = d == null ? void 0 : d.$emit) == null ? void 0 : a.bind(d)) || ((s = (i = d == null ? void 0 : d.proxy) == null ? void 0 : i.$emit) == null ? void 0 : s.bind(d == null ? void 0 : d.proxy));
|
|
549
549
|
let h = l;
|
|
550
550
|
t || (t = "modelValue"), h = h || `update:${t.toString()}`;
|
|
551
|
-
const
|
|
552
|
-
p ? p(S) &&
|
|
551
|
+
const m = (S) => o ? typeof o == "function" ? o(S) : vu(S) : S, b = () => au(e[t]) ? m(e[t]) : c, T = (S) => {
|
|
552
|
+
p ? p(S) && g(h, S) : g(h, S);
|
|
553
553
|
};
|
|
554
554
|
if (u) {
|
|
555
|
-
const S =
|
|
555
|
+
const S = b(), _ = $(S);
|
|
556
556
|
let M = !1;
|
|
557
557
|
return ie(
|
|
558
558
|
() => e[t],
|
|
559
559
|
(O) => {
|
|
560
|
-
M || (M = !0, _.value =
|
|
560
|
+
M || (M = !0, _.value = m(O), Ue(() => M = !1));
|
|
561
561
|
}
|
|
562
562
|
), ie(
|
|
563
563
|
_,
|
|
@@ -569,7 +569,7 @@ function rn(e, t, n, r = {}) {
|
|
|
569
569
|
} else
|
|
570
570
|
return q({
|
|
571
571
|
get() {
|
|
572
|
-
return
|
|
572
|
+
return b();
|
|
573
573
|
},
|
|
574
574
|
set(S) {
|
|
575
575
|
T(S);
|
|
@@ -616,9 +616,9 @@ const [_u] = ct("drag-drawer"), Ou = be({
|
|
|
616
616
|
handleClose: s,
|
|
617
617
|
toggleFullScreen: f,
|
|
618
618
|
handleMouseDown: (p) => {
|
|
619
|
-
const d = p.clientX,
|
|
620
|
-
document.body.classList.add("disable-select-in-dragging"), window.onmousemove = function(
|
|
621
|
-
const T =
|
|
619
|
+
const d = p.clientX, g = a.value, h = (u == null ? void 0 : u.clientWidth) || document.body.clientWidth;
|
|
620
|
+
document.body.classList.add("disable-select-in-dragging"), window.onmousemove = function(m) {
|
|
621
|
+
const T = m.clientX - d, S = typeof g == "number" ? g - T : window.innerWidth - m.x;
|
|
622
622
|
a.value = Math.min(S < l ? l : S, h);
|
|
623
623
|
}, window.onmouseup = () => {
|
|
624
624
|
window.onmousemove = null, document.body.classList.remove("disable-select-in-dragging");
|
|
@@ -723,28 +723,28 @@ const Pu = /* @__PURE__ */ rt(Ou, [["render", $u]]), Iu = vt(Pu), [Nu] = ct("pag
|
|
|
723
723
|
var p, d;
|
|
724
724
|
i.value = !0;
|
|
725
725
|
const c = ((p = s.value) == null ? void 0 : p.finish) || (() => Promise.resolve({ success: !0 }));
|
|
726
|
-
(d = s.value) != null && d.finish || console.warn("form组件没有提供finish方法"), c().then((
|
|
727
|
-
const { needFeedback: h = !0, needRefresh:
|
|
728
|
-
i.value = !1,
|
|
729
|
-
}).catch((
|
|
730
|
-
var
|
|
731
|
-
if (i.value = !1, console.log("[PageRendererFormModal handleOk Error]: ",
|
|
732
|
-
return
|
|
733
|
-
const { errorFields: h } =
|
|
734
|
-
h && h.length &&
|
|
726
|
+
(d = s.value) != null && d.finish || console.warn("form组件没有提供finish方法"), c().then((g) => {
|
|
727
|
+
const { needFeedback: h = !0, needRefresh: m = !0, successMsg: b = "操作成功" } = r.value;
|
|
728
|
+
i.value = !1, g && g.success && (h && Pe.success(b), f(), m && n("refresh"));
|
|
729
|
+
}).catch((g) => {
|
|
730
|
+
var m;
|
|
731
|
+
if (i.value = !1, console.log("[PageRendererFormModal handleOk Error]: ", g), typeof g == "string")
|
|
732
|
+
return Pe.warn(g);
|
|
733
|
+
const { errorFields: h } = g;
|
|
734
|
+
h && h.length && Pe.warn((m = h[0]) == null ? void 0 : m.errors.join("、"));
|
|
735
735
|
});
|
|
736
736
|
};
|
|
737
737
|
ie(a, (c) => {
|
|
738
|
-
c &&
|
|
739
|
-
const p = document.querySelector(".ant-modal-root"), d = p == null ? void 0 : p.querySelector(".ant-modal-header"),
|
|
738
|
+
c && Ue(() => {
|
|
739
|
+
const p = document.querySelector(".ant-modal-root"), d = p == null ? void 0 : p.querySelector(".ant-modal-header"), g = p == null ? void 0 : p.querySelector(".ant-modal");
|
|
740
740
|
d.style.cursor = "move";
|
|
741
|
-
const h =
|
|
742
|
-
d.onmousedown = (
|
|
743
|
-
const
|
|
741
|
+
const h = g.currentStyle || window.getComputedStyle(g, null);
|
|
742
|
+
d.onmousedown = (m) => {
|
|
743
|
+
const b = m.clientX - d.offsetLeft, T = m.clientY - d.offsetTop;
|
|
744
744
|
let S, _;
|
|
745
745
|
h.left.includes("%") ? (S = +document.body.clientWidth * (+h.left.replace(/%/g, "") / 100), _ = +document.body.clientHeight * (+h.top.replace(/%/g, "") / 100)) : (S = +h.left.replace(/\px/g, ""), _ = +h.top.replace(/\px/g, "")), document.onmousemove = function(M) {
|
|
746
|
-
const O = M.clientX -
|
|
747
|
-
|
|
746
|
+
const O = M.clientX - b, v = M.clientY - T;
|
|
747
|
+
g.style.left = `${O + S}px`, g.style.top = `${v + _}px`;
|
|
748
748
|
}, document.onmouseup = function() {
|
|
749
749
|
document.onmousemove = null, document.onmouseup = null;
|
|
750
750
|
};
|
|
@@ -910,9 +910,9 @@ const Mo = /* @__PURE__ */ rt(Du, [["render", Lu]]), Mu = vt(Mo), an = () => {
|
|
|
910
910
|
function p(d) {
|
|
911
911
|
t("change", d);
|
|
912
912
|
}
|
|
913
|
-
return (d,
|
|
914
|
-
const h = B("a-select"),
|
|
915
|
-
return d.showLabel !== !1 ? (R(), V(
|
|
913
|
+
return (d, g) => {
|
|
914
|
+
const h = B("a-select"), m = B("a-form-item");
|
|
915
|
+
return d.showLabel !== !1 ? (R(), V(m, ke({
|
|
916
916
|
key: 0,
|
|
917
917
|
name: d.name,
|
|
918
918
|
label: d.label || De(r)(d.code) || d.code
|
|
@@ -920,7 +920,7 @@ const Mo = /* @__PURE__ */ rt(Du, [["render", Lu]]), Mu = vt(Mo), an = () => {
|
|
|
920
920
|
default: F(() => [
|
|
921
921
|
Y(h, ke({
|
|
922
922
|
value: De(a),
|
|
923
|
-
"onUpdate:value":
|
|
923
|
+
"onUpdate:value": g[0] || (g[0] = (b) => ht(a) ? a.value = b : null),
|
|
924
924
|
options: i.value
|
|
925
925
|
}, u.value, {
|
|
926
926
|
class: [{ "enum-select-selector-active": De(a) }, "enum-select-selector"],
|
|
@@ -932,7 +932,7 @@ const Mo = /* @__PURE__ */ rt(Du, [["render", Lu]]), Mu = vt(Mo), an = () => {
|
|
|
932
932
|
}, 16, ["name", "label"])) : (R(), V(h, ke({
|
|
933
933
|
key: 1,
|
|
934
934
|
value: De(a),
|
|
935
|
-
"onUpdate:value":
|
|
935
|
+
"onUpdate:value": g[1] || (g[1] = (b) => ht(a) ? a.value = b : null),
|
|
936
936
|
options: i.value
|
|
937
937
|
}, u.value, {
|
|
938
938
|
class: [{ "enum-select-selector-active": De(a) }, "enum-select-selector"],
|
|
@@ -1687,14 +1687,14 @@ function tr(e, t, n, r, a, i) {
|
|
|
1687
1687
|
var d = i.get(e);
|
|
1688
1688
|
if (d)
|
|
1689
1689
|
return d;
|
|
1690
|
-
i.set(e, s), Lp(e) ? e.forEach(function(
|
|
1691
|
-
s.add(tr(
|
|
1692
|
-
}) : Ip(e) && e.forEach(function(
|
|
1693
|
-
s.set(
|
|
1690
|
+
i.set(e, s), Lp(e) ? e.forEach(function(m) {
|
|
1691
|
+
s.add(tr(m, t, n, m, e, i));
|
|
1692
|
+
}) : Ip(e) && e.forEach(function(m, b) {
|
|
1693
|
+
s.set(b, tr(m, t, n, b, e, i));
|
|
1694
1694
|
});
|
|
1695
|
-
var
|
|
1696
|
-
return Lc(h || e, function(
|
|
1697
|
-
h && (
|
|
1695
|
+
var g = l ? u ? rs : sa : u ? _a : sn, h = f ? void 0 : g(e);
|
|
1696
|
+
return Lc(h || e, function(m, b) {
|
|
1697
|
+
h && (b = m, m = e[b]), Ea(s, b, tr(m, t, n, b, e, i));
|
|
1698
1698
|
}), s;
|
|
1699
1699
|
}
|
|
1700
1700
|
var sh = 1, lh = 4;
|
|
@@ -1734,24 +1734,24 @@ function ls(e, t, n, r, a, i) {
|
|
|
1734
1734
|
return l == t && f == e;
|
|
1735
1735
|
var c = -1, p = !0, d = n & hh ? new On() : void 0;
|
|
1736
1736
|
for (i.set(e, t), i.set(t, e); ++c < o; ) {
|
|
1737
|
-
var
|
|
1737
|
+
var g = e[c], h = t[c];
|
|
1738
1738
|
if (r)
|
|
1739
|
-
var
|
|
1740
|
-
if (
|
|
1741
|
-
if (
|
|
1739
|
+
var m = s ? r(h, g, c, t, e, i) : r(g, h, c, e, t, i);
|
|
1740
|
+
if (m !== void 0) {
|
|
1741
|
+
if (m)
|
|
1742
1742
|
continue;
|
|
1743
1743
|
p = !1;
|
|
1744
1744
|
break;
|
|
1745
1745
|
}
|
|
1746
1746
|
if (d) {
|
|
1747
|
-
if (!dh(t, function(
|
|
1748
|
-
if (!ss(d, T) && (
|
|
1747
|
+
if (!dh(t, function(b, T) {
|
|
1748
|
+
if (!ss(d, T) && (g === b || a(g, b, n, r, i)))
|
|
1749
1749
|
return d.push(T);
|
|
1750
1750
|
})) {
|
|
1751
1751
|
p = !1;
|
|
1752
1752
|
break;
|
|
1753
1753
|
}
|
|
1754
|
-
} else if (!(
|
|
1754
|
+
} else if (!(g === h || a(g, h, n, r, i))) {
|
|
1755
1755
|
p = !1;
|
|
1756
1756
|
break;
|
|
1757
1757
|
}
|
|
@@ -1816,23 +1816,23 @@ function Rh(e, t, n, r, a, i) {
|
|
|
1816
1816
|
if (!(s ? p in t : Dh.call(t, p)))
|
|
1817
1817
|
return !1;
|
|
1818
1818
|
}
|
|
1819
|
-
var d = i.get(e),
|
|
1820
|
-
if (d &&
|
|
1821
|
-
return d == t &&
|
|
1819
|
+
var d = i.get(e), g = i.get(t);
|
|
1820
|
+
if (d && g)
|
|
1821
|
+
return d == t && g == e;
|
|
1822
1822
|
var h = !0;
|
|
1823
1823
|
i.set(e, t), i.set(t, e);
|
|
1824
|
-
for (var
|
|
1824
|
+
for (var m = s; ++c < u; ) {
|
|
1825
1825
|
p = o[c];
|
|
1826
|
-
var
|
|
1826
|
+
var b = e[p], T = t[p];
|
|
1827
1827
|
if (r)
|
|
1828
|
-
var S = s ? r(T,
|
|
1829
|
-
if (!(S === void 0 ?
|
|
1828
|
+
var S = s ? r(T, b, p, t, e, i) : r(b, T, p, e, t, i);
|
|
1829
|
+
if (!(S === void 0 ? b === T || a(b, T, n, r, i) : S)) {
|
|
1830
1830
|
h = !1;
|
|
1831
1831
|
break;
|
|
1832
1832
|
}
|
|
1833
|
-
|
|
1833
|
+
m || (m = p == "constructor");
|
|
1834
1834
|
}
|
|
1835
|
-
if (h && !
|
|
1835
|
+
if (h && !m) {
|
|
1836
1836
|
var _ = e.constructor, M = t.constructor;
|
|
1837
1837
|
_ != M && "constructor" in e && "constructor" in t && !(typeof _ == "function" && _ instanceof _ && typeof M == "function" && M instanceof M) && (h = !1);
|
|
1838
1838
|
}
|
|
@@ -1851,10 +1851,10 @@ function kh(e, t, n, r, a, i) {
|
|
|
1851
1851
|
if (p && !f)
|
|
1852
1852
|
return i || (i = new ot()), s || qo(e) ? ls(e, t, n, r, a, i) : Ph(e, t, u, n, r, a, i);
|
|
1853
1853
|
if (!(n & Lh)) {
|
|
1854
|
-
var d = f && Ai.call(e, "__wrapped__"),
|
|
1855
|
-
if (d ||
|
|
1856
|
-
var h = d ? e.value() : e,
|
|
1857
|
-
return i || (i = new ot()), a(h,
|
|
1854
|
+
var d = f && Ai.call(e, "__wrapped__"), g = c && Ai.call(t, "__wrapped__");
|
|
1855
|
+
if (d || g) {
|
|
1856
|
+
var h = d ? e.value() : e, m = g ? t.value() : t;
|
|
1857
|
+
return i || (i = new ot()), a(h, m, n, r, i);
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
1860
|
return p ? (i || (i = new ot()), Rh(e, t, n, r, a, i)) : !1;
|
|
@@ -2008,22 +2008,22 @@ function pr(e, t, n) {
|
|
|
2008
2008
|
var v = r, A = a;
|
|
2009
2009
|
return r = a = void 0, l = O, s = e.apply(A, v), s;
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2012
|
-
return l = O, o = setTimeout(
|
|
2011
|
+
function g(O) {
|
|
2012
|
+
return l = O, o = setTimeout(b, t), f ? d(O) : s;
|
|
2013
2013
|
}
|
|
2014
2014
|
function h(O) {
|
|
2015
2015
|
var v = O - u, A = O - l, E = t - v;
|
|
2016
2016
|
return c ? ug(E, i - A) : E;
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function m(O) {
|
|
2019
2019
|
var v = O - u, A = O - l;
|
|
2020
2020
|
return u === void 0 || v >= t || v < 0 || c && A >= i;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function b() {
|
|
2023
2023
|
var O = Hr();
|
|
2024
|
-
if (
|
|
2024
|
+
if (m(O))
|
|
2025
2025
|
return T(O);
|
|
2026
|
-
o = setTimeout(
|
|
2026
|
+
o = setTimeout(b, h(O));
|
|
2027
2027
|
}
|
|
2028
2028
|
function T(O) {
|
|
2029
2029
|
return o = void 0, p && r ? d(O) : (r = a = void 0, s);
|
|
@@ -2035,14 +2035,14 @@ function pr(e, t, n) {
|
|
|
2035
2035
|
return o === void 0 ? s : T(Hr());
|
|
2036
2036
|
}
|
|
2037
2037
|
function M() {
|
|
2038
|
-
var O = Hr(), v =
|
|
2038
|
+
var O = Hr(), v = m(O);
|
|
2039
2039
|
if (r = arguments, a = this, u = O, v) {
|
|
2040
2040
|
if (o === void 0)
|
|
2041
|
-
return
|
|
2041
|
+
return g(u);
|
|
2042
2042
|
if (c)
|
|
2043
|
-
return clearTimeout(o), o = setTimeout(
|
|
2043
|
+
return clearTimeout(o), o = setTimeout(b, t), d(u);
|
|
2044
2044
|
}
|
|
2045
|
-
return o === void 0 && (o = setTimeout(
|
|
2045
|
+
return o === void 0 && (o = setTimeout(b, t)), s;
|
|
2046
2046
|
}
|
|
2047
2047
|
return M.cancel = S, M.flush = _, M;
|
|
2048
2048
|
}
|
|
@@ -2265,15 +2265,15 @@ const [Mg] = ct("fuzzy-select"), kg = { name: Mg }, Fg = /* @__PURE__ */ be({
|
|
|
2265
2265
|
placeholder: n.disabled ? "" : n.placeholder
|
|
2266
2266
|
})), o = $([]);
|
|
2267
2267
|
let u = !1;
|
|
2268
|
-
const l = async (d,
|
|
2268
|
+
const l = async (d, g) => {
|
|
2269
2269
|
const h = { ...n.params };
|
|
2270
|
-
d && An(h, n.conditionKey || "label", d),
|
|
2271
|
-
const
|
|
2270
|
+
d && An(h, n.conditionKey || "label", d), g && An(h, "value", g);
|
|
2271
|
+
const m = await r({
|
|
2272
2272
|
url: n.url,
|
|
2273
2273
|
method: n.method,
|
|
2274
2274
|
[n.method === "get" ? "params" : "data"]: h
|
|
2275
2275
|
});
|
|
2276
|
-
o.value = n.transform ? n.transform(
|
|
2276
|
+
o.value = n.transform ? n.transform(m) : m.data;
|
|
2277
2277
|
};
|
|
2278
2278
|
ie(
|
|
2279
2279
|
a,
|
|
@@ -2293,9 +2293,9 @@ const [Mg] = ct("fuzzy-select"), kg = { name: Mg }, Fg = /* @__PURE__ */ be({
|
|
|
2293
2293
|
function p(d) {
|
|
2294
2294
|
t("change", d);
|
|
2295
2295
|
}
|
|
2296
|
-
return (d,
|
|
2297
|
-
const h = B("a-select"),
|
|
2298
|
-
return d.showLabel ? (R(), V(
|
|
2296
|
+
return (d, g) => {
|
|
2297
|
+
const h = B("a-select"), m = B("a-form-item");
|
|
2298
|
+
return d.showLabel ? (R(), V(m, ke({
|
|
2299
2299
|
key: 0,
|
|
2300
2300
|
name: d.name,
|
|
2301
2301
|
label: d.label || d.$t(d.code) || d.code
|
|
@@ -2303,7 +2303,7 @@ const [Mg] = ct("fuzzy-select"), kg = { name: Mg }, Fg = /* @__PURE__ */ be({
|
|
|
2303
2303
|
default: F(() => [
|
|
2304
2304
|
Y(h, ke({
|
|
2305
2305
|
value: De(a),
|
|
2306
|
-
"onUpdate:value":
|
|
2306
|
+
"onUpdate:value": g[0] || (g[0] = (b) => ht(a) ? a.value = b : null),
|
|
2307
2307
|
"filter-option": !1,
|
|
2308
2308
|
options: o.value,
|
|
2309
2309
|
onSearch: De(f)
|
|
@@ -2317,7 +2317,7 @@ const [Mg] = ct("fuzzy-select"), kg = { name: Mg }, Fg = /* @__PURE__ */ be({
|
|
|
2317
2317
|
}, 16, ["name", "label"])) : (R(), V(h, ke({
|
|
2318
2318
|
key: 1,
|
|
2319
2319
|
value: De(a),
|
|
2320
|
-
"onUpdate:value":
|
|
2320
|
+
"onUpdate:value": g[1] || (g[1] = (b) => ht(a) ? a.value = b : null),
|
|
2321
2321
|
"filter-option": !1,
|
|
2322
2322
|
options: o.value,
|
|
2323
2323
|
onSearch: De(f)
|
|
@@ -2352,12 +2352,12 @@ const zg = vt(Fg), [jg] = ct("enum-fuzzy-select"), xg = { name: jg }, Bg = /* @_
|
|
|
2352
2352
|
const n = e, { t: r } = an(), a = rn(n, "value", t), { getApiDataSource: i } = Er(), s = $(""), o = $(), u = $(), l = $(!1), f = q(() => n.placeholder ? n.placeholder : r("pleaseSelect") ? `${r("pleaseSelect")}${n.label || r(n.code)}` : "");
|
|
2353
2353
|
async function c() {
|
|
2354
2354
|
l.value = !0;
|
|
2355
|
-
const
|
|
2356
|
-
if (
|
|
2357
|
-
s.value = cr +
|
|
2355
|
+
const g = await i(n.codeType, n.code);
|
|
2356
|
+
if (g) {
|
|
2357
|
+
s.value = cr + g.apiUrl, o.value = g.apiPost ? "post" : "get";
|
|
2358
2358
|
let h = null;
|
|
2359
2359
|
try {
|
|
2360
|
-
h = JSON.parse(
|
|
2360
|
+
h = JSON.parse(g.apiParam);
|
|
2361
2361
|
} catch {
|
|
2362
2362
|
h = null;
|
|
2363
2363
|
}
|
|
@@ -2365,26 +2365,26 @@ const zg = vt(Fg), [jg] = ct("enum-fuzzy-select"), xg = { name: jg }, Bg = /* @_
|
|
|
2365
2365
|
}
|
|
2366
2366
|
}
|
|
2367
2367
|
c();
|
|
2368
|
-
const p = () => t("pressEnter"), d = (
|
|
2369
|
-
return (
|
|
2370
|
-
const
|
|
2371
|
-
return l.value ? me("", !0) : (R(), V(
|
|
2368
|
+
const p = () => t("pressEnter"), d = (g) => t("change", g);
|
|
2369
|
+
return (g, h) => {
|
|
2370
|
+
const m = B("YzsFuzzySelect");
|
|
2371
|
+
return l.value ? me("", !0) : (R(), V(m, {
|
|
2372
2372
|
key: 0,
|
|
2373
2373
|
value: De(a),
|
|
2374
|
-
"onUpdate:value": h[0] || (h[0] = (
|
|
2374
|
+
"onUpdate:value": h[0] || (h[0] = (b) => ht(a) ? a.value = b : null),
|
|
2375
2375
|
url: s.value,
|
|
2376
|
-
code:
|
|
2377
|
-
name:
|
|
2378
|
-
label:
|
|
2376
|
+
code: g.code,
|
|
2377
|
+
name: g.name,
|
|
2378
|
+
label: g.label,
|
|
2379
2379
|
method: o.value,
|
|
2380
2380
|
params: u.value,
|
|
2381
|
-
required:
|
|
2382
|
-
"show-label":
|
|
2381
|
+
required: g.required,
|
|
2382
|
+
"show-label": g.showLabel,
|
|
2383
2383
|
placeholder: f.value,
|
|
2384
|
-
"select-props":
|
|
2385
|
-
"condition-key":
|
|
2386
|
-
"form-item-props":
|
|
2387
|
-
transform:
|
|
2384
|
+
"select-props": g.selectProps,
|
|
2385
|
+
"condition-key": g.conditionKey,
|
|
2386
|
+
"form-item-props": g.formItemProps,
|
|
2387
|
+
transform: g.transform,
|
|
2388
2388
|
onPressEnter: p,
|
|
2389
2389
|
onChange: d
|
|
2390
2390
|
}, null, 8, ["value", "url", "code", "name", "label", "method", "params", "required", "show-label", "placeholder", "select-props", "condition-key", "form-item-props", "transform"]));
|
|
@@ -2768,7 +2768,7 @@ function pe(e, t) {
|
|
|
2768
2768
|
});
|
|
2769
2769
|
return e;
|
|
2770
2770
|
}
|
|
2771
|
-
var
|
|
2771
|
+
var Ke = Object.assign || function(t) {
|
|
2772
2772
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
|
|
2773
2773
|
r[a - 1] = arguments[a];
|
|
2774
2774
|
return nn(t) && r.length > 0 && r.forEach(function(i) {
|
|
@@ -2991,7 +2991,7 @@ var gm = {
|
|
|
2991
2991
|
t.inline && (r = {
|
|
2992
2992
|
width: Math.max(n.offsetWidth, t.minWidth),
|
|
2993
2993
|
height: Math.max(n.offsetHeight, t.minHeight)
|
|
2994
|
-
}, this.parentData = r), (this.fulled || !r) && (r = this.containerData), this.viewerData =
|
|
2994
|
+
}, this.parentData = r), (this.fulled || !r) && (r = this.containerData), this.viewerData = Ke({}, r);
|
|
2995
2995
|
},
|
|
2996
2996
|
renderViewer: function() {
|
|
2997
2997
|
this.options.inline && !this.fulled && nt(this.viewer, this.viewerData);
|
|
@@ -3003,8 +3003,8 @@ var gm = {
|
|
|
3003
3003
|
if (u || f) {
|
|
3004
3004
|
var c = document.createElement("li"), p = document.createElement("img");
|
|
3005
3005
|
pe(r.inheritedAttributes, function(d) {
|
|
3006
|
-
var
|
|
3007
|
-
|
|
3006
|
+
var g = s.getAttribute(d);
|
|
3007
|
+
g !== null && p.setAttribute(d, g);
|
|
3008
3008
|
}), r.navbar && (p.src = u || f), p.alt = l, p.setAttribute("data-original-url", f || u), c.setAttribute("data-index", o), c.setAttribute("data-viewer-action", "view"), c.setAttribute("role", "button"), r.keyboard && c.setAttribute("tabindex", 0), c.appendChild(p), a.appendChild(c), i.push(c);
|
|
3009
3009
|
}
|
|
3010
3010
|
}), this.items = i, pe(i, function(s) {
|
|
@@ -3028,7 +3028,7 @@ var gm = {
|
|
|
3028
3028
|
var t = this.index, n = this.items[t];
|
|
3029
3029
|
if (n) {
|
|
3030
3030
|
var r = n.nextElementSibling, a = parseInt(window.getComputedStyle(r || n).marginLeft, 10), i = n.offsetWidth, s = i + a;
|
|
3031
|
-
nt(this.list,
|
|
3031
|
+
nt(this.list, Ke({
|
|
3032
3032
|
width: s * this.length - a
|
|
3033
3033
|
}, ar({
|
|
3034
3034
|
translateX: (this.viewerData.width - i) / 2 - s * t
|
|
@@ -3048,27 +3048,27 @@ var gm = {
|
|
|
3048
3048
|
f.onload = null;
|
|
3049
3049
|
}
|
|
3050
3050
|
}, f = vs(a, r, function(c, p) {
|
|
3051
|
-
var d = c / p,
|
|
3052
|
-
n.imageInitializing = !1, u * d > o ?
|
|
3053
|
-
var
|
|
3054
|
-
left:
|
|
3051
|
+
var d = c / p, g = Math.max(0, Math.min(1, r.initialCoverage)), h = o, m = u;
|
|
3052
|
+
n.imageInitializing = !1, u * d > o ? m = o / d : h = u * d, g = Se(g) ? g : 0.9, h = Math.min(h * g, c), m = Math.min(m * g, p);
|
|
3053
|
+
var b = (o - h) / 2, T = (u - m) / 2, S = {
|
|
3054
|
+
left: b,
|
|
3055
3055
|
top: T,
|
|
3056
|
-
x:
|
|
3056
|
+
x: b,
|
|
3057
3057
|
y: T,
|
|
3058
3058
|
width: h,
|
|
3059
|
-
height:
|
|
3059
|
+
height: m,
|
|
3060
3060
|
oldRatio: 1,
|
|
3061
3061
|
ratio: h / c,
|
|
3062
3062
|
aspectRatio: d,
|
|
3063
3063
|
naturalWidth: c,
|
|
3064
3064
|
naturalHeight: p
|
|
3065
|
-
}, _ =
|
|
3065
|
+
}, _ = Ke({}, S);
|
|
3066
3066
|
r.rotatable && (S.rotate = l.rotate || 0, _.rotate = 0), r.scalable && (S.scaleX = l.scaleX || 1, S.scaleY = l.scaleY || 1, _.scaleX = 1, _.scaleY = 1), n.imageData = S, n.initialImageData = _, t && t();
|
|
3067
3067
|
});
|
|
3068
3068
|
},
|
|
3069
3069
|
renderImage: function(t) {
|
|
3070
3070
|
var n = this, r = this.image, a = this.imageData;
|
|
3071
|
-
if (nt(r,
|
|
3071
|
+
if (nt(r, Ke({
|
|
3072
3072
|
width: a.width,
|
|
3073
3073
|
height: a.height,
|
|
3074
3074
|
// XXX: Not to use translateX/Y to avoid image shaking when zooming
|
|
@@ -3183,7 +3183,7 @@ var gm = {
|
|
|
3183
3183
|
var n = t.target, r = n.parentNode, a = r.offsetWidth || 30, i = r.offsetHeight || 50, s = !!Wt(n, "filled");
|
|
3184
3184
|
vs(n, this.options, function(o, u) {
|
|
3185
3185
|
var l = o / u, f = a, c = i;
|
|
3186
|
-
i * l > a ? s ? f = i * l : c = a / l : s ? c = a / l : f = i * l, nt(n,
|
|
3186
|
+
i * l > a ? s ? f = i * l : c = a / l : s ? c = a / l : f = i * l, nt(n, Ke({
|
|
3187
3187
|
width: f,
|
|
3188
3188
|
height: c
|
|
3189
3189
|
}, ar({
|
|
@@ -3245,8 +3245,8 @@ var gm = {
|
|
|
3245
3245
|
pointermove: function(t) {
|
|
3246
3246
|
var n = this.pointers, r = this.action;
|
|
3247
3247
|
!this.viewed || !r || (t.preventDefault(), t.changedTouches ? pe(t.changedTouches, function(a) {
|
|
3248
|
-
|
|
3249
|
-
}) :
|
|
3248
|
+
Ke(n[a.identifier] || {}, Qn(a, !0));
|
|
3249
|
+
}) : Ke(n[t.pointerId || 0] || {}, Qn(t, !0)), this.change(t));
|
|
3250
3250
|
},
|
|
3251
3251
|
pointerup: function(t) {
|
|
3252
3252
|
var n = this, r = this.options, a = this.action, i = this.pointers, s;
|
|
@@ -3367,9 +3367,9 @@ var gm = {
|
|
|
3367
3367
|
return this.index = n, this.show();
|
|
3368
3368
|
this.viewing && this.viewing.abort();
|
|
3369
3369
|
var r = this.element, a = this.options, i = this.title, s = this.canvas, o = this.items[n], u = o.querySelector("img"), l = Wt(u, "originalUrl"), f = u.getAttribute("alt"), c = document.createElement("img");
|
|
3370
|
-
if (pe(a.inheritedAttributes, function(
|
|
3371
|
-
var
|
|
3372
|
-
|
|
3370
|
+
if (pe(a.inheritedAttributes, function(m) {
|
|
3371
|
+
var b = u.getAttribute(m);
|
|
3372
|
+
b !== null && c.setAttribute(m, b);
|
|
3373
3373
|
}), c.src = l, c.alt = f, ce(a.view) && Q(r, Gi, a.view, {
|
|
3374
3374
|
once: !0
|
|
3375
3375
|
}), Te(r, Gi, {
|
|
@@ -3381,21 +3381,21 @@ var gm = {
|
|
|
3381
3381
|
var p = this.items[this.index];
|
|
3382
3382
|
p && (se(p, Gn), p.removeAttribute("aria-selected")), H(o, Gn), o.setAttribute("aria-selected", !0), a.focus && o.focus(), this.image = c, this.viewed = !1, this.index = n, this.imageData = {}, H(c, bn), a.loading && H(s, Xt), s.innerHTML = "", s.appendChild(c), this.renderList(), i.innerHTML = "";
|
|
3383
3383
|
var d = function() {
|
|
3384
|
-
var
|
|
3385
|
-
i.innerHTML = um(ce(T) ? T.call(t, c,
|
|
3386
|
-
},
|
|
3384
|
+
var b = t.imageData, T = Array.isArray(a.title) ? a.title[1] : a.title;
|
|
3385
|
+
i.innerHTML = um(ce(T) ? T.call(t, c, b) : "".concat(f, " (").concat(b.naturalWidth, " × ").concat(b.naturalHeight, ")"));
|
|
3386
|
+
}, g, h;
|
|
3387
3387
|
return Q(r, $n, d, {
|
|
3388
3388
|
once: !0
|
|
3389
3389
|
}), this.viewing = {
|
|
3390
3390
|
abort: function() {
|
|
3391
|
-
fe(r, $n, d), c.complete ? t.imageRendering ? t.imageRendering.abort() : t.imageInitializing && t.imageInitializing.abort() : (c.src = "", fe(c, He,
|
|
3391
|
+
fe(r, $n, d), c.complete ? t.imageRendering ? t.imageRendering.abort() : t.imageInitializing && t.imageInitializing.abort() : (c.src = "", fe(c, He, g), t.timeout && clearTimeout(t.timeout));
|
|
3392
3392
|
}
|
|
3393
|
-
}, c.complete ? this.load() : (Q(c, He,
|
|
3393
|
+
}, c.complete ? this.load() : (Q(c, He, g = function() {
|
|
3394
3394
|
fe(c, Pt, h), t.load();
|
|
3395
3395
|
}, {
|
|
3396
3396
|
once: !0
|
|
3397
3397
|
}), Q(c, Pt, h = function() {
|
|
3398
|
-
fe(c, He,
|
|
3398
|
+
fe(c, He, g), t.timeout && (clearTimeout(t.timeout), t.timeout = !1), se(c, bn), a.loading && se(t.canvas, Xt);
|
|
3399
3399
|
}, {
|
|
3400
3400
|
once: !0
|
|
3401
3401
|
}), this.timeout && clearTimeout(this.timeout), this.timeout = setTimeout(function() {
|
|
@@ -3582,11 +3582,11 @@ var gm = {
|
|
|
3582
3582
|
* @returns {Viewer} this
|
|
3583
3583
|
*/
|
|
3584
3584
|
zoomTo: function(t) {
|
|
3585
|
-
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, o = this.element, u = this.options, l = this.pointers, f = this.imageData, c = f.x, p = f.y, d = f.width,
|
|
3585
|
+
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, o = this.element, u = this.options, l = this.pointers, f = this.imageData, c = f.x, p = f.y, d = f.width, g = f.height, h = f.naturalWidth, m = f.naturalHeight;
|
|
3586
3586
|
if (t = Math.max(0, t), Se(t) && this.viewed && !this.played && (s || u.zoomable)) {
|
|
3587
3587
|
if (!s) {
|
|
3588
|
-
var
|
|
3589
|
-
t = Math.min(Math.max(t,
|
|
3588
|
+
var b = Math.max(0.01, u.minZoomRatio), T = Math.min(100, u.maxZoomRatio);
|
|
3589
|
+
t = Math.min(Math.max(t, b), T);
|
|
3590
3590
|
}
|
|
3591
3591
|
if (i)
|
|
3592
3592
|
switch (i.type) {
|
|
@@ -3599,7 +3599,7 @@ var gm = {
|
|
|
3599
3599
|
t > 0.99 && t < 1.01 && (t = 1);
|
|
3600
3600
|
break;
|
|
3601
3601
|
}
|
|
3602
|
-
var S = h * t, _ =
|
|
3602
|
+
var S = h * t, _ = m * t, M = S - d, O = _ - g, v = f.ratio;
|
|
3603
3603
|
if (ce(u.zoom) && Q(o, to, u.zoom, {
|
|
3604
3604
|
once: !0
|
|
3605
3605
|
}), Te(o, to, {
|
|
@@ -3613,9 +3613,9 @@ var gm = {
|
|
|
3613
3613
|
pageX: i.pageX,
|
|
3614
3614
|
pageY: i.pageY
|
|
3615
3615
|
};
|
|
3616
|
-
f.x -= M * ((E.pageX - A.left - c) / d), f.y -= O * ((E.pageY - A.top - p) /
|
|
3616
|
+
f.x -= M * ((E.pageX - A.left - c) / d), f.y -= O * ((E.pageY - A.top - p) / g);
|
|
3617
3617
|
} else
|
|
3618
|
-
Yt(a) && Se(a.x) && Se(a.y) ? (f.x -= M * ((a.x - c) / d), f.y -= O * ((a.y - p) /
|
|
3618
|
+
Yt(a) && Se(a.x) && Se(a.y) ? (f.x -= M * ((a.x - c) / d), f.y -= O * ((a.y - p) / g)) : (f.x -= M / 2, f.y -= O / 2);
|
|
3619
3619
|
f.left = f.x, f.top = f.y, f.width = S, f.height = _, f.oldRatio = v, f.ratio = t, this.renderImage(function() {
|
|
3620
3620
|
n.zooming = !1, ce(u.zoomed) && Q(o, no, u.zoomed, {
|
|
3621
3621
|
once: !0
|
|
@@ -3646,8 +3646,8 @@ var gm = {
|
|
|
3646
3646
|
return this;
|
|
3647
3647
|
var i = this.player, s = this.loadImage.bind(this), o = [], u = 0, l = 0;
|
|
3648
3648
|
if (this.played = !0, this.onLoadWhenPlay = s, n && this.requestFullscreen(n), H(i, Bt), pe(this.items, function(p, d) {
|
|
3649
|
-
var
|
|
3650
|
-
h.src = Wt(
|
|
3649
|
+
var g = p.querySelector("img"), h = document.createElement("img");
|
|
3650
|
+
h.src = Wt(g, "originalUrl"), h.alt = g.getAttribute("alt"), h.referrerPolicy = g.referrerPolicy, u += 1, H(h, rr), In(h, Ee, a.transition), Kt(p, Gn) && (H(h, Ge), l = d), o.push(h), Q(h, He, s, {
|
|
3651
3651
|
once: !0
|
|
3652
3652
|
}), i.appendChild(h);
|
|
3653
3653
|
}), Se(a.interval) && a.interval > 0) {
|
|
@@ -3684,7 +3684,7 @@ var gm = {
|
|
|
3684
3684
|
var t = this, n = this.options, r = this.viewer, a = this.image, i = this.list;
|
|
3685
3685
|
return !this.isShown || this.played || this.fulled || !n.inline ? this : (this.fulled = !0, this.open(), H(this.button, Ri), n.transition && (se(i, Ee), this.viewed && se(a, Ee)), H(r, da), r.setAttribute("role", "dialog"), r.setAttribute("aria-labelledby", this.title.id), r.setAttribute("aria-modal", !0), r.removeAttribute("style"), nt(r, {
|
|
3686
3686
|
zIndex: n.zIndex
|
|
3687
|
-
}), n.focus && this.enforceFocus(), this.initContainer(), this.viewerData =
|
|
3687
|
+
}), n.focus && this.enforceFocus(), this.initContainer(), this.viewerData = Ke({}, this.containerData), this.renderList(), this.viewed && this.initImage(function() {
|
|
3688
3688
|
t.renderImage(function() {
|
|
3689
3689
|
n.transition && setTimeout(function() {
|
|
3690
3690
|
H(a, Ee), H(i, Ee);
|
|
@@ -3697,7 +3697,7 @@ var gm = {
|
|
|
3697
3697
|
var t = this, n = this.options, r = this.viewer, a = this.image, i = this.list;
|
|
3698
3698
|
return !this.isShown || this.played || !this.fulled || !n.inline ? this : (this.fulled = !1, this.close(), se(this.button, Ri), n.transition && (se(i, Ee), this.viewed && se(a, Ee)), n.focus && this.clearEnforceFocus(), r.removeAttribute("role"), r.removeAttribute("aria-labelledby"), r.removeAttribute("aria-modal"), se(r, da), nt(r, {
|
|
3699
3699
|
zIndex: n.zIndexInline
|
|
3700
|
-
}), this.viewerData =
|
|
3700
|
+
}), this.viewerData = Ke({}, this.parentData), this.renderViewer(), this.renderList(), this.viewed && this.initImage(function() {
|
|
3701
3701
|
t.renderImage(function() {
|
|
3702
3702
|
n.transition && setTimeout(function() {
|
|
3703
3703
|
H(a, Ee), H(i, Ee);
|
|
@@ -3727,7 +3727,7 @@ var gm = {
|
|
|
3727
3727
|
},
|
|
3728
3728
|
// Reset the image to its initial state
|
|
3729
3729
|
reset: function() {
|
|
3730
|
-
return this.viewed && !this.played && (this.imageData =
|
|
3730
|
+
return this.viewed && !this.played && (this.imageData = Ke({}, this.initialImageData), this.renderImage()), this;
|
|
3731
3731
|
},
|
|
3732
3732
|
// Update viewer when images changed
|
|
3733
3733
|
update: function() {
|
|
@@ -3859,7 +3859,7 @@ var gm = {
|
|
|
3859
3859
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3860
3860
|
if (Vg(this, e), !t || t.nodeType !== 1)
|
|
3861
3861
|
throw new Error("The first argument is required and must be an element.");
|
|
3862
|
-
this.element = t, this.options =
|
|
3862
|
+
this.element = t, this.options = Ke({}, Di, Yt(n) && n), this.action = !1, this.fading = !1, this.fulled = !1, this.hiding = !1, this.imageClicked = !1, this.imageData = {}, this.index = this.options.initialViewIndex, this.isImg = !1, this.isShown = !1, this.length = 0, this.moving = !1, this.played = !1, this.playing = !1, this.pointers = {}, this.ready = !1, this.rotating = !1, this.scaling = !1, this.showing = !1, this.timeout = !1, this.tooltipping = !1, this.viewed = !1, this.viewing = !1, this.wheeling = !1, this.zooming = !1, this.pointerMoved = !1, this.id = Sm(), this.init();
|
|
3863
3863
|
}
|
|
3864
3864
|
return qg(e, [{
|
|
3865
3865
|
key: "init",
|
|
@@ -3922,19 +3922,19 @@ var gm = {
|
|
|
3922
3922
|
if (this.parent = a, this.viewer = s, this.title = o, this.toolbar = u, this.navbar = l, 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) : At), H(l, r.navbar ? Xn(r.navbar) : At), In(f, At, !r.button), r.keyboard && f.setAttribute("tabindex", 0), r.backdrop && (H(s, "".concat(J, "-backdrop")), !r.inline && r.backdrop !== "static" && ha(c, gr, "hide")), Pn(r.className) && r.className && r.className.split(Ra).forEach(function(S) {
|
|
3923
3923
|
H(s, S);
|
|
3924
3924
|
}), r.toolbar) {
|
|
3925
|
-
var p = document.createElement("ul"), d = Yt(r.toolbar),
|
|
3925
|
+
var p = document.createElement("ul"), d = Yt(r.toolbar), g = Hn.slice(0, 3), h = Hn.slice(7, 9), m = Hn.slice(9);
|
|
3926
3926
|
d || H(u, Xn(r.toolbar)), pe(d ? r.toolbar : Hn, function(S, _) {
|
|
3927
3927
|
var M = d && Yt(S), O = d ? La(_) : S, v = M && !Ut(S.show) ? S.show : S;
|
|
3928
|
-
if (!(!v || !r.zoomable &&
|
|
3929
|
-
var A = M && !Ut(S.size) ? S.size : S, E = M && !Ut(S.click) ? S.click : S,
|
|
3930
|
-
r.keyboard &&
|
|
3928
|
+
if (!(!v || !r.zoomable && g.indexOf(O) !== -1 || !r.rotatable && h.indexOf(O) !== -1 || !r.scalable && m.indexOf(O) !== -1)) {
|
|
3929
|
+
var A = M && !Ut(S.size) ? S.size : S, E = M && !Ut(S.click) ? S.click : S, y = document.createElement("li");
|
|
3930
|
+
r.keyboard && y.setAttribute("tabindex", 0), y.setAttribute("role", "button"), H(y, "".concat(J, "-").concat(O)), ce(E) || ha(y, gr, O), Se(v) && H(y, Xn(v)), ["small", "large"].indexOf(A) !== -1 ? H(y, "".concat(J, "-").concat(A)) : O === "play" && H(y, "".concat(J, "-large")), ce(E) && Q(y, tn, E), p.appendChild(y);
|
|
3931
3931
|
}
|
|
3932
3932
|
}), u.appendChild(p);
|
|
3933
3933
|
} else
|
|
3934
3934
|
H(u, At);
|
|
3935
3935
|
if (!r.rotatable) {
|
|
3936
|
-
var
|
|
3937
|
-
H(
|
|
3936
|
+
var b = u.querySelectorAll('li[class*="rotate"]');
|
|
3937
|
+
H(b, bn), pe(b, function(S) {
|
|
3938
3938
|
u.appendChild(S);
|
|
3939
3939
|
});
|
|
3940
3940
|
}
|
|
@@ -3976,11 +3976,11 @@ var gm = {
|
|
|
3976
3976
|
}, {
|
|
3977
3977
|
key: "setDefaults",
|
|
3978
3978
|
value: function(n) {
|
|
3979
|
-
|
|
3979
|
+
Ke(Di, Yt(n) && n);
|
|
3980
3980
|
}
|
|
3981
3981
|
}]), e;
|
|
3982
3982
|
}();
|
|
3983
|
-
|
|
3983
|
+
Ke(ys.prototype, gm, mm, vm, ym, bm);
|
|
3984
3984
|
var Em = typeof global == "object" && global && global.Object === Object && global;
|
|
3985
3985
|
const bs = Em;
|
|
3986
3986
|
var Cm = typeof self == "object" && self && self.Object === Object && self, Tm = bs || Cm || Function("return this")();
|
|
@@ -4333,15 +4333,15 @@ const _y = be({
|
|
|
4333
4333
|
}
|
|
4334
4334
|
const l = { deep: !0 };
|
|
4335
4335
|
return ie(() => e.images, () => {
|
|
4336
|
-
|
|
4336
|
+
Ue(() => {
|
|
4337
4337
|
u();
|
|
4338
4338
|
});
|
|
4339
4339
|
}, l), ie(() => e.trigger, () => {
|
|
4340
|
-
|
|
4340
|
+
Ue(() => {
|
|
4341
4341
|
u();
|
|
4342
4342
|
});
|
|
4343
4343
|
}, l), ie(() => e.options, () => {
|
|
4344
|
-
|
|
4344
|
+
Ue(() => {
|
|
4345
4345
|
s();
|
|
4346
4346
|
});
|
|
4347
4347
|
}, l), Rt(() => a()), Dn(() => i()), {
|
|
@@ -4399,10 +4399,10 @@ const Py = /* @__PURE__ */ Oy(_y, [["render", $y]]), Iy = { style: { height: "80
|
|
|
4399
4399
|
);
|
|
4400
4400
|
const c = (C) => {
|
|
4401
4401
|
s.value = C, C.view(f.value);
|
|
4402
|
-
}, p = $(null), { x: d, y:
|
|
4403
|
-
ie([d,
|
|
4402
|
+
}, p = $(null), { x: d, y: g, isDragging: h } = Cu(p), m = $(0), b = $(0), T = $(!1), S = $(0), _ = $(0), M = $(0), O = $(0), v = $({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
4403
|
+
ie([d, g], () => {
|
|
4404
4404
|
if (!T.value) {
|
|
4405
|
-
|
|
4405
|
+
m.value = d.value, b.value = g.value;
|
|
4406
4406
|
const C = document.body.getBoundingClientRect(), k = p.value.getBoundingClientRect();
|
|
4407
4407
|
v.value.right = C.width - k.width, v.value.bottom = C.height - k.height, M.value = S.value, O.value = _.value;
|
|
4408
4408
|
}
|
|
@@ -4410,18 +4410,18 @@ const Py = /* @__PURE__ */ Oy(_y, [["render", $y]]), Iy = { style: { height: "80
|
|
|
4410
4410
|
}), ie(h, () => {
|
|
4411
4411
|
h || (T.value = !1);
|
|
4412
4412
|
}), It(() => {
|
|
4413
|
-
T.value && (S.value = M.value + Math.min(Math.max(v.value.left, d.value), v.value.right) -
|
|
4413
|
+
T.value && (S.value = M.value + Math.min(Math.max(v.value.left, d.value), v.value.right) - m.value, _.value = O.value + Math.min(Math.max(v.value.top, g.value), v.value.bottom) - b.value);
|
|
4414
4414
|
});
|
|
4415
4415
|
const A = q(() => ({
|
|
4416
4416
|
transform: `translate(${S.value}px, ${_.value}px)`
|
|
4417
4417
|
})), E = (C, k = 0, N) => {
|
|
4418
4418
|
N && (i.value = N), l.value = [...C], f.value = k, u.value = !0;
|
|
4419
|
-
},
|
|
4419
|
+
}, y = () => {
|
|
4420
4420
|
u.value = !1;
|
|
4421
4421
|
}, w = () => {
|
|
4422
4422
|
a(!1);
|
|
4423
4423
|
};
|
|
4424
|
-
return t({ open: E, close:
|
|
4424
|
+
return t({ open: E, close: y }), (C, k) => (R(), V(De(ur), {
|
|
4425
4425
|
visible: u.value,
|
|
4426
4426
|
"onUpdate:visible": k[0] || (k[0] = (N) => u.value = N),
|
|
4427
4427
|
"destroy-on-close": "",
|
|
@@ -4432,7 +4432,7 @@ const Py = /* @__PURE__ */ Oy(_y, [["render", $y]]), Iy = { style: { height: "80
|
|
|
4432
4432
|
"wrap-class-name": "pointer-events-none preview-media-modal",
|
|
4433
4433
|
"wrap-style": { overflow: "hidden" },
|
|
4434
4434
|
footer: null,
|
|
4435
|
-
onOk:
|
|
4435
|
+
onOk: y,
|
|
4436
4436
|
onCancel: w
|
|
4437
4437
|
}, {
|
|
4438
4438
|
title: F(() => [
|
|
@@ -4460,7 +4460,7 @@ const Py = /* @__PURE__ */ Oy(_y, [["render", $y]]), Iy = { style: { height: "80
|
|
|
4460
4460
|
}, {
|
|
4461
4461
|
default: F((N) => [
|
|
4462
4462
|
Fe("div", Iy, [
|
|
4463
|
-
(R(!0), Z(ye, null,
|
|
4463
|
+
(R(!0), Z(ye, null, Be(N.images, (D) => (R(), Z("img", {
|
|
4464
4464
|
style: { opacity: "0" },
|
|
4465
4465
|
src: D,
|
|
4466
4466
|
key: D
|
|
@@ -4538,7 +4538,7 @@ var Ls = { exports: {} };
|
|
|
4538
4538
|
(function(n, r) {
|
|
4539
4539
|
e.exports = r();
|
|
4540
4540
|
})(xy, function() {
|
|
4541
|
-
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", s = "second", o = "minute", u = "hour", l = "day", f = "week", c = "month", p = "quarter", d = "year",
|
|
4541
|
+
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", s = "second", o = "minute", u = "hour", l = "day", f = "week", c = "month", p = "quarter", d = "year", g = "date", h = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|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, T = { 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(N) {
|
|
4542
4542
|
var D = ["th", "st", "nd", "rd"], I = N % 100;
|
|
4543
4543
|
return "[" + N + (D[(I - 20) % 10] || D[I] || D[0]) + "]";
|
|
4544
4544
|
} }, S = function(N, D, I) {
|
|
@@ -4555,7 +4555,7 @@ var Ls = { exports: {} };
|
|
|
4555
4555
|
}, a: function(N) {
|
|
4556
4556
|
return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
|
|
4557
4557
|
}, p: function(N) {
|
|
4558
|
-
return { M: c, y: d, w: f, d: l, D:
|
|
4558
|
+
return { M: c, y: d, w: f, d: l, D: g, h: u, m: o, s, ms: i, Q: p }[N] || String(N || "").toLowerCase().replace(/s$/, "");
|
|
4559
4559
|
}, u: function(N) {
|
|
4560
4560
|
return N === void 0;
|
|
4561
4561
|
} }, M = "en", O = {};
|
|
@@ -4577,14 +4577,14 @@ var Ls = { exports: {} };
|
|
|
4577
4577
|
O[ee] = D, L = ee;
|
|
4578
4578
|
}
|
|
4579
4579
|
return !z && L && (M = L), L || !z && M;
|
|
4580
|
-
},
|
|
4580
|
+
}, y = function(N, D) {
|
|
4581
4581
|
if (A(N))
|
|
4582
4582
|
return N.clone();
|
|
4583
4583
|
var I = typeof D == "object" ? D : {};
|
|
4584
4584
|
return I.date = N, I.args = arguments, new C(I);
|
|
4585
4585
|
}, w = _;
|
|
4586
4586
|
w.l = E, w.i = A, w.w = function(N, D) {
|
|
4587
|
-
return
|
|
4587
|
+
return y(N, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
4588
4588
|
};
|
|
4589
4589
|
var C = function() {
|
|
4590
4590
|
function N(I) {
|
|
@@ -4601,7 +4601,7 @@ var Ls = { exports: {} };
|
|
|
4601
4601
|
if (L instanceof Date)
|
|
4602
4602
|
return new Date(L);
|
|
4603
4603
|
if (typeof L == "string" && !/Z$/i.test(L)) {
|
|
4604
|
-
var W = L.match(
|
|
4604
|
+
var W = L.match(m);
|
|
4605
4605
|
if (W) {
|
|
4606
4606
|
var ee = W[2] - 1 || 0, ne = (W[7] || "0").substring(0, 3);
|
|
4607
4607
|
return j ? new Date(Date.UTC(W[1], ee, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, ne)) : new Date(W[1], ee, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, ne);
|
|
@@ -4617,12 +4617,12 @@ var Ls = { exports: {} };
|
|
|
4617
4617
|
}, D.isValid = function() {
|
|
4618
4618
|
return this.$d.toString() !== h;
|
|
4619
4619
|
}, D.isSame = function(I, z) {
|
|
4620
|
-
var L =
|
|
4620
|
+
var L = y(I);
|
|
4621
4621
|
return this.startOf(z) <= L && L <= this.endOf(z);
|
|
4622
4622
|
}, D.isAfter = function(I, z) {
|
|
4623
|
-
return
|
|
4623
|
+
return y(I) < this.startOf(z);
|
|
4624
4624
|
}, D.isBefore = function(I, z) {
|
|
4625
|
-
return this.endOf(z) <
|
|
4625
|
+
return this.endOf(z) < y(I);
|
|
4626
4626
|
}, D.$g = function(I, z, L) {
|
|
4627
4627
|
return w.u(I) ? this[z] : this.set(L, I);
|
|
4628
4628
|
}, D.unix = function() {
|
|
@@ -4631,8 +4631,8 @@ var Ls = { exports: {} };
|
|
|
4631
4631
|
return this.$d.getTime();
|
|
4632
4632
|
}, D.startOf = function(I, z) {
|
|
4633
4633
|
var L = this, j = !!w.u(z) || z, W = w.p(I), ee = function(Je, ue) {
|
|
4634
|
-
var
|
|
4635
|
-
return j ?
|
|
4634
|
+
var Ie = w.w(L.$u ? Date.UTC(L.$y, ue, Je) : new Date(L.$y, ue, Je), L);
|
|
4635
|
+
return j ? Ie : Ie.endOf(l);
|
|
4636
4636
|
}, ne = function(Je, ue) {
|
|
4637
4637
|
return w.w(L.toDate()[Je].apply(L.toDate("s"), (j ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ue)), L);
|
|
4638
4638
|
}, re = this.$W, ve = this.$M, Oe = this.$D, ze = "set" + (this.$u ? "UTC" : "");
|
|
@@ -4642,10 +4642,10 @@ var Ls = { exports: {} };
|
|
|
4642
4642
|
case c:
|
|
4643
4643
|
return j ? ee(1, ve) : ee(0, ve + 1);
|
|
4644
4644
|
case f:
|
|
4645
|
-
var
|
|
4646
|
-
return ee(j ? Oe -
|
|
4645
|
+
var Ye = this.$locale().weekStart || 0, We = (re < Ye ? re + 7 : re) - Ye;
|
|
4646
|
+
return ee(j ? Oe - We : Oe + (6 - We), ve);
|
|
4647
4647
|
case l:
|
|
4648
|
-
case
|
|
4648
|
+
case g:
|
|
4649
4649
|
return ne(ze + "Hours", 0);
|
|
4650
4650
|
case u:
|
|
4651
4651
|
return ne(ze + "Minutes", 1);
|
|
@@ -4659,10 +4659,10 @@ var Ls = { exports: {} };
|
|
|
4659
4659
|
}, D.endOf = function(I) {
|
|
4660
4660
|
return this.startOf(I, !1);
|
|
4661
4661
|
}, D.$set = function(I, z) {
|
|
4662
|
-
var L, j = w.p(I), W = "set" + (this.$u ? "UTC" : ""), ee = (L = {}, L[l] = W + "Date", L[
|
|
4662
|
+
var L, j = w.p(I), W = "set" + (this.$u ? "UTC" : ""), ee = (L = {}, L[l] = W + "Date", L[g] = W + "Date", L[c] = W + "Month", L[d] = W + "FullYear", L[u] = W + "Hours", L[o] = W + "Minutes", L[s] = W + "Seconds", L[i] = W + "Milliseconds", L)[j], ne = j === l ? this.$D + (z - this.$W) : z;
|
|
4663
4663
|
if (j === c || j === d) {
|
|
4664
|
-
var re = this.clone().set(
|
|
4665
|
-
re.$d[ee](ne), re.init(), this.$d = re.set(
|
|
4664
|
+
var re = this.clone().set(g, 1);
|
|
4665
|
+
re.$d[ee](ne), re.init(), this.$d = re.set(g, Math.min(this.$D, re.daysInMonth())).$d;
|
|
4666
4666
|
} else
|
|
4667
4667
|
ee && this.$d[ee](ne);
|
|
4668
4668
|
return this.init(), this;
|
|
@@ -4674,7 +4674,7 @@ var Ls = { exports: {} };
|
|
|
4674
4674
|
var L, j = this;
|
|
4675
4675
|
I = Number(I);
|
|
4676
4676
|
var W = w.p(z), ee = function(ve) {
|
|
4677
|
-
var Oe =
|
|
4677
|
+
var Oe = y(j);
|
|
4678
4678
|
return w.w(Oe.date(Oe.date() + Math.round(ve * I)), j);
|
|
4679
4679
|
};
|
|
4680
4680
|
if (W === c)
|
|
@@ -4693,17 +4693,17 @@ var Ls = { exports: {} };
|
|
|
4693
4693
|
var z = this, L = this.$locale();
|
|
4694
4694
|
if (!this.isValid())
|
|
4695
4695
|
return L.invalidDate || h;
|
|
4696
|
-
var j = I || "YYYY-MM-DDTHH:mm:ssZ", W = w.z(this), ee = this.$H, ne = this.$m, re = this.$M, ve = L.weekdays, Oe = L.months, ze = L.meridiem,
|
|
4697
|
-
return ue && (ue[
|
|
4698
|
-
},
|
|
4696
|
+
var j = I || "YYYY-MM-DDTHH:mm:ssZ", W = w.z(this), ee = this.$H, ne = this.$m, re = this.$M, ve = L.weekdays, Oe = L.months, ze = L.meridiem, Ye = function(ue, Ie, Ve, ft) {
|
|
4697
|
+
return ue && (ue[Ie] || ue(z, j)) || Ve[Ie].slice(0, ft);
|
|
4698
|
+
}, We = function(ue) {
|
|
4699
4699
|
return w.s(ee % 12 || 12, ue, "0");
|
|
4700
|
-
}, Je = ze || function(ue,
|
|
4700
|
+
}, Je = ze || function(ue, Ie, Ve) {
|
|
4701
4701
|
var ft = ue < 12 ? "AM" : "PM";
|
|
4702
|
-
return
|
|
4702
|
+
return Ve ? ft.toLowerCase() : ft;
|
|
4703
4703
|
};
|
|
4704
|
-
return j.replace(
|
|
4705
|
-
return
|
|
4706
|
-
switch (
|
|
4704
|
+
return j.replace(b, function(ue, Ie) {
|
|
4705
|
+
return Ie || function(Ve) {
|
|
4706
|
+
switch (Ve) {
|
|
4707
4707
|
case "YY":
|
|
4708
4708
|
return String(z.$y).slice(-2);
|
|
4709
4709
|
case "YYYY":
|
|
@@ -4713,9 +4713,9 @@ var Ls = { exports: {} };
|
|
|
4713
4713
|
case "MM":
|
|
4714
4714
|
return w.s(re + 1, 2, "0");
|
|
4715
4715
|
case "MMM":
|
|
4716
|
-
return
|
|
4716
|
+
return Ye(L.monthsShort, re, Oe, 3);
|
|
4717
4717
|
case "MMMM":
|
|
4718
|
-
return
|
|
4718
|
+
return Ye(Oe, re);
|
|
4719
4719
|
case "D":
|
|
4720
4720
|
return z.$D;
|
|
4721
4721
|
case "DD":
|
|
@@ -4723,9 +4723,9 @@ var Ls = { exports: {} };
|
|
|
4723
4723
|
case "d":
|
|
4724
4724
|
return String(z.$W);
|
|
4725
4725
|
case "dd":
|
|
4726
|
-
return
|
|
4726
|
+
return Ye(L.weekdaysMin, z.$W, ve, 2);
|
|
4727
4727
|
case "ddd":
|
|
4728
|
-
return
|
|
4728
|
+
return Ye(L.weekdaysShort, z.$W, ve, 3);
|
|
4729
4729
|
case "dddd":
|
|
4730
4730
|
return ve[z.$W];
|
|
4731
4731
|
case "H":
|
|
@@ -4733,9 +4733,9 @@ var Ls = { exports: {} };
|
|
|
4733
4733
|
case "HH":
|
|
4734
4734
|
return w.s(ee, 2, "0");
|
|
4735
4735
|
case "h":
|
|
4736
|
-
return
|
|
4736
|
+
return We(1);
|
|
4737
4737
|
case "hh":
|
|
4738
|
-
return
|
|
4738
|
+
return We(2);
|
|
4739
4739
|
case "a":
|
|
4740
4740
|
return Je(ee, ne, !0);
|
|
4741
4741
|
case "A":
|
|
@@ -4759,7 +4759,7 @@ var Ls = { exports: {} };
|
|
|
4759
4759
|
}, D.utcOffset = function() {
|
|
4760
4760
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4761
4761
|
}, D.diff = function(I, z, L) {
|
|
4762
|
-
var j, W = this, ee = w.p(z), ne =
|
|
4762
|
+
var j, W = this, ee = w.p(z), ne = y(I), re = (ne.utcOffset() - this.utcOffset()) * r, ve = this - ne, Oe = function() {
|
|
4763
4763
|
return w.m(W, ne);
|
|
4764
4764
|
};
|
|
4765
4765
|
switch (ee) {
|
|
@@ -4812,15 +4812,15 @@ var Ls = { exports: {} };
|
|
|
4812
4812
|
return this.$d.toUTCString();
|
|
4813
4813
|
}, N;
|
|
4814
4814
|
}(), k = C.prototype;
|
|
4815
|
-
return
|
|
4815
|
+
return y.prototype = k, [["$ms", i], ["$s", s], ["$m", o], ["$H", u], ["$W", l], ["$M", c], ["$y", d], ["$D", g]].forEach(function(N) {
|
|
4816
4816
|
k[N[1]] = function(D) {
|
|
4817
4817
|
return this.$g(D, N[0], N[1]);
|
|
4818
4818
|
};
|
|
4819
|
-
}),
|
|
4820
|
-
return N.$i || (N(D, C,
|
|
4821
|
-
},
|
|
4822
|
-
return
|
|
4823
|
-
},
|
|
4819
|
+
}), y.extend = function(N, D) {
|
|
4820
|
+
return N.$i || (N(D, C, y), N.$i = !0), y;
|
|
4821
|
+
}, y.locale = E, y.isDayjs = A, y.unix = function(N) {
|
|
4822
|
+
return y(1e3 * N);
|
|
4823
|
+
}, y.en = O[M], y.Ls = O, y.p = {}, y;
|
|
4824
4824
|
});
|
|
4825
4825
|
})(Ls);
|
|
4826
4826
|
var Ky = Ls.exports;
|
|
@@ -4882,15 +4882,15 @@ const zr = Ln(() => {
|
|
|
4882
4882
|
return a(d || "we", p);
|
|
4883
4883
|
if (!l)
|
|
4884
4884
|
throw `enum api ${u} 没有提供apiUrl`;
|
|
4885
|
-
const
|
|
4886
|
-
return pt(l, f,
|
|
4885
|
+
const g = f && f.toLocaleLowerCase() === "get";
|
|
4886
|
+
return pt(l, f, g ? { params: c } : void 0)(c);
|
|
4887
4887
|
});
|
|
4888
4888
|
(await Promise.allSettled(s)).forEach((u, l) => {
|
|
4889
4889
|
if (u.status === "fulfilled") {
|
|
4890
|
-
const { value: f } = u, { labelKey: c, valueKey: p, childrenKey: d, dataType:
|
|
4890
|
+
const { value: f } = u, { labelKey: c, valueKey: p, childrenKey: d, dataType: g, dataKey: h, groupKey: m } = r[i[l]];
|
|
4891
4891
|
if (f.success) {
|
|
4892
|
-
const
|
|
4893
|
-
Object.prototype.toString.call(S) === "[object Array]" ?
|
|
4892
|
+
const b = kn(f, h || "data"), T = (S) => {
|
|
4893
|
+
Object.prototype.toString.call(S) === "[object Array]" ? g === "Cascader" ? e[i[l]] = S.map((_) => ga(_, {
|
|
4894
4894
|
[p || "value"]: "value",
|
|
4895
4895
|
[c || "label"]: "label",
|
|
4896
4896
|
[d || "children"]: "children"
|
|
@@ -4899,7 +4899,7 @@ const zr = Ln(() => {
|
|
|
4899
4899
|
...S.map((_) => {
|
|
4900
4900
|
let M = _[c || "label"];
|
|
4901
4901
|
return ho.test(c || "label") && (M = (c || "label").replace(ho, (O, v) => _[v])), {
|
|
4902
|
-
...
|
|
4902
|
+
...m ? { group: _[m] } : {},
|
|
4903
4903
|
label: M,
|
|
4904
4904
|
value: _[p || "value"]
|
|
4905
4905
|
};
|
|
@@ -4908,7 +4908,7 @@ const zr = Ln(() => {
|
|
|
4908
4908
|
T(S[_]);
|
|
4909
4909
|
});
|
|
4910
4910
|
};
|
|
4911
|
-
T(
|
|
4911
|
+
T(b);
|
|
4912
4912
|
}
|
|
4913
4913
|
} else
|
|
4914
4914
|
console.warn(`【enumeration】: ${i[l]}: 获取失败`);
|
|
@@ -5031,26 +5031,26 @@ const [Vy] = ct("input-range"), qy = {
|
|
|
5031
5031
|
...E
|
|
5032
5032
|
} = v;
|
|
5033
5033
|
try {
|
|
5034
|
-
const
|
|
5034
|
+
const y = JSON.parse(A);
|
|
5035
5035
|
return {
|
|
5036
5036
|
...E,
|
|
5037
|
-
style:
|
|
5037
|
+
style: y
|
|
5038
5038
|
};
|
|
5039
|
-
} catch (
|
|
5040
|
-
return console.warn("Failed to parse style:",
|
|
5039
|
+
} catch (y) {
|
|
5040
|
+
return console.warn("Failed to parse style:", y), v;
|
|
5041
5041
|
}
|
|
5042
5042
|
}
|
|
5043
|
-
const d = p(c),
|
|
5043
|
+
const d = p(c), g = a.value.filterGroups || [], h = a.value.refEnum || "", m = q(() => {
|
|
5044
5044
|
var v, A;
|
|
5045
|
-
return ((A = i[h]) == null ? void 0 : A.filter((v = a.value.filterGroups) != null && v.length ? (E) =>
|
|
5046
|
-
}),
|
|
5047
|
-
ie(
|
|
5048
|
-
|
|
5045
|
+
return ((A = i[h]) == null ? void 0 : A.filter((v = a.value.filterGroups) != null && v.length ? (E) => g.includes(E.group) : () => !0)) || [];
|
|
5046
|
+
}), b = $(m.value);
|
|
5047
|
+
ie(m, (v) => {
|
|
5048
|
+
b.value = v;
|
|
5049
5049
|
});
|
|
5050
5050
|
const T = pt(a.value.filterUrl || `/duckbill-data-query-server/table/column/${a.value.filterKey}`, a.value.filterMethod || "post"), S = Ce("transformFuzzy", {})[a.value.fieldName], _ = (v, A) => {
|
|
5051
|
-
var
|
|
5051
|
+
var y;
|
|
5052
5052
|
const E = a.value.filterKey || "label";
|
|
5053
|
-
return A[E] || console.warn(`not found key 【${E}】 in option`), ((
|
|
5053
|
+
return A[E] || console.warn(`not found key 【${E}】 in option`), ((y = A[E]) == null ? void 0 : y.indexOf(v.toString())) > -1;
|
|
5054
5054
|
}, M = q(() => {
|
|
5055
5055
|
switch (a.value.type) {
|
|
5056
5056
|
case Jr:
|
|
@@ -5064,24 +5064,24 @@ const [Vy] = ct("input-range"), qy = {
|
|
|
5064
5064
|
conditionKey: a.value.conditionKey || "params",
|
|
5065
5065
|
metaKey: a.value.metaKey
|
|
5066
5066
|
}
|
|
5067
|
-
}), E = await T(A),
|
|
5068
|
-
|
|
5067
|
+
}), E = await T(A), y = S ? S(E) : E;
|
|
5068
|
+
b.value = y;
|
|
5069
5069
|
}, 200);
|
|
5070
5070
|
case Zn:
|
|
5071
5071
|
return pr(async function(v) {
|
|
5072
5072
|
const {
|
|
5073
5073
|
category: A,
|
|
5074
5074
|
tab: E
|
|
5075
|
-
} = r.meta,
|
|
5075
|
+
} = r.meta, y = await T({
|
|
5076
5076
|
sliceNumber: "50",
|
|
5077
5077
|
category: A,
|
|
5078
5078
|
tab: E,
|
|
5079
5079
|
code: v
|
|
5080
5080
|
});
|
|
5081
|
-
a.value.fuzzyMatch ?
|
|
5081
|
+
a.value.fuzzyMatch ? b.value = y.data.map((w) => ({
|
|
5082
5082
|
value: w,
|
|
5083
5083
|
label: w
|
|
5084
|
-
})) :
|
|
5084
|
+
})) : b.value = y.data.map((w) => ({
|
|
5085
5085
|
value: w.id,
|
|
5086
5086
|
label: w.name
|
|
5087
5087
|
}));
|
|
@@ -5092,15 +5092,15 @@ const [Vy] = ct("input-range"), qy = {
|
|
|
5092
5092
|
}), O = q(() => {
|
|
5093
5093
|
switch (a.value.type) {
|
|
5094
5094
|
case "Cascader":
|
|
5095
|
-
return
|
|
5095
|
+
return m.value;
|
|
5096
5096
|
case "Select":
|
|
5097
|
-
return
|
|
5097
|
+
return m.value;
|
|
5098
5098
|
case Jr:
|
|
5099
|
-
return
|
|
5099
|
+
return b.value;
|
|
5100
5100
|
case Zn:
|
|
5101
|
-
return
|
|
5101
|
+
return b.value;
|
|
5102
5102
|
default:
|
|
5103
|
-
return
|
|
5103
|
+
return m.value;
|
|
5104
5104
|
}
|
|
5105
5105
|
});
|
|
5106
5106
|
return () => u ? je(u, {
|
|
@@ -5202,11 +5202,11 @@ const [Vy] = ct("input-range"), qy = {
|
|
|
5202
5202
|
setup(e, { emit: t, expose: n }) {
|
|
5203
5203
|
const { config: i, immediateQuery: s } = Ze(e), o = Ce("pageName", ""), u = q(
|
|
5204
5204
|
() => i.value.length > 6 * 3
|
|
5205
|
-
), l = $(!u.value), { formState: f, dispatchFormState: c } = zn(), { resetFields: p, validate: d, validateInfos:
|
|
5205
|
+
), l = $(!u.value), { formState: f, dispatchFormState: c } = zn(), { resetFields: p, validate: d, validateInfos: g } = eb(f[o]);
|
|
5206
5206
|
ie(
|
|
5207
5207
|
() => e.defaultQuery,
|
|
5208
5208
|
(T) => {
|
|
5209
|
-
|
|
5209
|
+
Ue(() => {
|
|
5210
5210
|
c(T, o), t("search");
|
|
5211
5211
|
});
|
|
5212
5212
|
},
|
|
@@ -5219,67 +5219,67 @@ const [Vy] = ct("input-range"), qy = {
|
|
|
5219
5219
|
d().then(() => e.current === 1 ? t("search") : t("update:current", 1)).catch((T) => {
|
|
5220
5220
|
console.log(T);
|
|
5221
5221
|
});
|
|
5222
|
-
},
|
|
5222
|
+
}, m = (T) => Array.isArray(T) ? T.filter((S) => ![void 0, null].includes(S)).length > 0 : !!T;
|
|
5223
5223
|
ie(l, () => t("changeExpand"));
|
|
5224
|
-
const
|
|
5224
|
+
const b = q(() => l.value || !u.value ? (6 - i.value.length % 6) * 4 : 24);
|
|
5225
5225
|
return n({ resetFields: p }), {
|
|
5226
5226
|
expand: l,
|
|
5227
5227
|
pageName: o,
|
|
5228
5228
|
formState: f,
|
|
5229
|
-
serachSpan:
|
|
5230
|
-
validateInfos:
|
|
5229
|
+
serachSpan: b,
|
|
5230
|
+
validateInfos: g,
|
|
5231
5231
|
showAvailiableTrigger: u,
|
|
5232
5232
|
AVAILIABLE_EXPAND_LINE: 3,
|
|
5233
5233
|
CONDITION_COUNT_PER_LINE: 6,
|
|
5234
5234
|
customMaterialsMap: Ka,
|
|
5235
5235
|
onSubmit: h,
|
|
5236
|
-
getItemActive:
|
|
5236
|
+
getItemActive: m
|
|
5237
5237
|
};
|
|
5238
5238
|
}
|
|
5239
5239
|
});
|
|
5240
5240
|
function nb(e, t, n, r, a, i) {
|
|
5241
|
-
const s = B("CustomConditionBuilder"), o = B("ConditionBuilder"), u = B("Item"), l = B("Col"), f = B("Button"), c = B("UpOutlined"), p = B("DownOutlined"), d = B("Space"),
|
|
5241
|
+
const s = B("CustomConditionBuilder"), o = B("ConditionBuilder"), u = B("Item"), l = B("Col"), f = B("Button"), c = B("UpOutlined"), p = B("DownOutlined"), d = B("Space"), g = B("Row"), h = B("Form");
|
|
5242
5242
|
return R(), V(h, {
|
|
5243
5243
|
class: "page-renderer-conditions",
|
|
5244
5244
|
"label-col": { span: 8 },
|
|
5245
5245
|
"wrapper-col": { span: 16 }
|
|
5246
5246
|
}, {
|
|
5247
5247
|
default: F(() => [
|
|
5248
|
-
Y(
|
|
5248
|
+
Y(g, { gutter: 24 }, {
|
|
5249
5249
|
default: F(() => [
|
|
5250
|
-
(R(!0), Z(ye, null,
|
|
5250
|
+
(R(!0), Z(ye, null, Be(e.config, (m, b) => {
|
|
5251
5251
|
var T;
|
|
5252
5252
|
return lr((R(), V(l, {
|
|
5253
|
-
key:
|
|
5254
|
-
span: ((T =
|
|
5253
|
+
key: m.fieldName,
|
|
5254
|
+
span: ((T = m.otherProps) == null ? void 0 : T.span) || 4,
|
|
5255
5255
|
class: "conditions-item-col"
|
|
5256
5256
|
}, {
|
|
5257
5257
|
default: F(() => {
|
|
5258
5258
|
var S, _;
|
|
5259
5259
|
return [
|
|
5260
|
-
Y(u, ke(e.validateInfos[
|
|
5260
|
+
Y(u, ke(e.validateInfos[m.fieldName], {
|
|
5261
5261
|
colon: !1,
|
|
5262
|
-
"label-col": (S =
|
|
5263
|
-
"wrapper-col": (_ =
|
|
5264
|
-
label:
|
|
5262
|
+
"label-col": (S = m.otherProps) == null ? void 0 : S.labelCol,
|
|
5263
|
+
"wrapper-col": (_ = m.otherProps) == null ? void 0 : _.wrapperCol,
|
|
5264
|
+
label: m.label,
|
|
5265
5265
|
class: {
|
|
5266
|
-
"form-item-with-small-fonts":
|
|
5267
|
-
[`form-item-words${
|
|
5268
|
-
"form-item-active": e.getItemActive(e.formState[e.pageName][
|
|
5266
|
+
"form-item-with-small-fonts": m.label.length > 4,
|
|
5267
|
+
[`form-item-words${m.label.length > 10 ? 10 : m.label.length}`]: !0,
|
|
5268
|
+
"form-item-active": e.getItemActive(e.formState[e.pageName][m.fieldName])
|
|
5269
5269
|
}
|
|
5270
5270
|
}), {
|
|
5271
5271
|
default: F(() => [
|
|
5272
|
-
e.customMaterialsMap[
|
|
5272
|
+
e.customMaterialsMap[m.type] ? (R(), V(s, {
|
|
5273
5273
|
key: 0,
|
|
5274
|
-
value: e.formState[e.pageName][
|
|
5275
|
-
"onUpdate:value": (M) => e.formState[e.pageName][
|
|
5276
|
-
materials:
|
|
5274
|
+
value: e.formState[e.pageName][m.fieldName],
|
|
5275
|
+
"onUpdate:value": (M) => e.formState[e.pageName][m.fieldName] = M,
|
|
5276
|
+
materials: m,
|
|
5277
5277
|
onPressEnter: e.onSubmit
|
|
5278
5278
|
}, null, 8, ["value", "onUpdate:value", "materials", "onPressEnter"])) : (R(), V(o, {
|
|
5279
5279
|
key: 1,
|
|
5280
|
-
value: e.formState[e.pageName][
|
|
5281
|
-
"onUpdate:value": (M) => e.formState[e.pageName][
|
|
5282
|
-
materials:
|
|
5280
|
+
value: e.formState[e.pageName][m.fieldName],
|
|
5281
|
+
"onUpdate:value": (M) => e.formState[e.pageName][m.fieldName] = M,
|
|
5282
|
+
materials: m,
|
|
5283
5283
|
onPressEnter: e.onSubmit
|
|
5284
5284
|
}, null, 8, ["value", "onUpdate:value", "materials", "onPressEnter"]))
|
|
5285
5285
|
]),
|
|
@@ -5289,7 +5289,7 @@ function nb(e, t, n, r, a, i) {
|
|
|
5289
5289
|
}),
|
|
5290
5290
|
_: 2
|
|
5291
5291
|
}, 1032, ["span"])), [
|
|
5292
|
-
[So, e.expand || !e.showAvailiableTrigger ||
|
|
5292
|
+
[So, e.expand || !e.showAvailiableTrigger || b < e.CONDITION_COUNT_PER_LINE]
|
|
5293
5293
|
]);
|
|
5294
5294
|
}), 128)),
|
|
5295
5295
|
Y(l, { span: e.serachSpan }, {
|
|
@@ -5309,7 +5309,7 @@ function nb(e, t, n, r, a, i) {
|
|
|
5309
5309
|
}, 8, ["onClick", "loading"]),
|
|
5310
5310
|
Y(f, {
|
|
5311
5311
|
size: "small",
|
|
5312
|
-
onClick: t[0] || (t[0] = (
|
|
5312
|
+
onClick: t[0] || (t[0] = (m) => e.$emit("resetSearch"))
|
|
5313
5313
|
}, {
|
|
5314
5314
|
default: F(() => [
|
|
5315
5315
|
we(ae(e.$t("reset") || "重置"), 1)
|
|
@@ -5319,7 +5319,7 @@ function nb(e, t, n, r, a, i) {
|
|
|
5319
5319
|
e.showAvailiableTrigger ? (R(), Z("a", {
|
|
5320
5320
|
key: 0,
|
|
5321
5321
|
style: { "font-size": "12px" },
|
|
5322
|
-
onClick: t[1] || (t[1] = (
|
|
5322
|
+
onClick: t[1] || (t[1] = (m) => e.expand = !e.expand)
|
|
5323
5323
|
}, [
|
|
5324
5324
|
e.expand ? (R(), Z(ye, { key: 0 }, [
|
|
5325
5325
|
Y(c),
|
|
@@ -5424,17 +5424,17 @@ const rb = /* @__PURE__ */ rt(tb, [["render", nb]]), jn = Ln(() => {
|
|
|
5424
5424
|
},
|
|
5425
5425
|
emits: ["buttonClick", "update:current", "update:pageSize", "customizeSetting", "refresh"],
|
|
5426
5426
|
setup(e, { emit: t }) {
|
|
5427
|
-
var A, E,
|
|
5427
|
+
var A, E, y, w;
|
|
5428
5428
|
const { t: n } = an(), r = {
|
|
5429
5429
|
COLUMN_SETTING: n("listSettings") || "列表设置"
|
|
5430
|
-
}, { current: a, pageSize: i, exportConfig: s, importConfig: o, pageSizeOptions: u } = Ze(e), l = $(!1), f = $(!1), c = Ce("pageName", ""), { selectedRows: p } = jn(), d = q(() => u.value || js),
|
|
5430
|
+
}, { current: a, pageSize: i, exportConfig: s, importConfig: o, pageSizeOptions: u } = Ze(e), l = $(!1), f = $(!1), c = Ce("pageName", ""), { selectedRows: p } = jn(), d = q(() => u.value || js), g = (C, k) => {
|
|
5431
5431
|
if (C.needSelectRows) {
|
|
5432
5432
|
if (!p[c].length) {
|
|
5433
|
-
|
|
5433
|
+
Pe.warn(n("pleaseSelectData") || "请选择数据");
|
|
5434
5434
|
return;
|
|
5435
5435
|
}
|
|
5436
5436
|
if (C.mode === "single" && p[c].length > 1) {
|
|
5437
|
-
|
|
5437
|
+
Pe.warn(n("onlyOneDataCanBeSelected") || "只能选择一条数据");
|
|
5438
5438
|
return;
|
|
5439
5439
|
}
|
|
5440
5440
|
}
|
|
@@ -5442,16 +5442,16 @@ const rb = /* @__PURE__ */ rt(tb, [["render", nb]]), jn = Ln(() => {
|
|
|
5442
5442
|
}, h = q({
|
|
5443
5443
|
get: () => a.value,
|
|
5444
5444
|
set: (C) => t("update:current", C)
|
|
5445
|
-
}),
|
|
5445
|
+
}), m = q({
|
|
5446
5446
|
get: () => i.value,
|
|
5447
5447
|
set: (C) => {
|
|
5448
5448
|
const k = Math.ceil(e.total / C);
|
|
5449
5449
|
h.value > k && (h.value = k), t("update:pageSize", C);
|
|
5450
5450
|
}
|
|
5451
|
-
}),
|
|
5451
|
+
}), b = Ce("paramsGuard", (C) => C), T = (A = s.value) != null && A.url ? pt((E = s.value) == null ? void 0 : E.url, "post", {
|
|
5452
5452
|
responseType: "blob",
|
|
5453
5453
|
...s.value.requestOptions
|
|
5454
|
-
}) : null, S = (w = (
|
|
5454
|
+
}) : null, S = (w = (y = o.value) == null ? void 0 : y.children) != null && w.length ? o.value.children.map((C) => pt(C.url, "post", {
|
|
5455
5455
|
...C.requestOptions
|
|
5456
5456
|
})) : [], _ = async () => {
|
|
5457
5457
|
var N;
|
|
@@ -5459,7 +5459,7 @@ const rb = /* @__PURE__ */ rt(tb, [["render", nb]]), jn = Ln(() => {
|
|
|
5459
5459
|
conditions: Re(C[c]),
|
|
5460
5460
|
apiConfig: s.value
|
|
5461
5461
|
}) : {};
|
|
5462
|
-
|
|
5462
|
+
b(k, c);
|
|
5463
5463
|
try {
|
|
5464
5464
|
l.value = !0;
|
|
5465
5465
|
const D = await T(k);
|
|
@@ -5472,7 +5472,7 @@ const rb = /* @__PURE__ */ rt(tb, [["render", nb]]), jn = Ln(() => {
|
|
|
5472
5472
|
const j = document.createElement("a"), W = window.URL.createObjectURL(new Blob([D]));
|
|
5473
5473
|
if (j.href = W, j.download = z, document.body.appendChild(j), j.click(), document.body.removeChild(j), window.URL.revokeObjectURL(W), s.value.needFeedback === !1)
|
|
5474
5474
|
return;
|
|
5475
|
-
|
|
5475
|
+
Pe.success(n("exportSuccess") || "导出成功");
|
|
5476
5476
|
} catch (D) {
|
|
5477
5477
|
console.warn("export error: ", D);
|
|
5478
5478
|
} finally {
|
|
@@ -5519,7 +5519,7 @@ const rb = /* @__PURE__ */ rt(tb, [["render", nb]]), jn = Ln(() => {
|
|
|
5519
5519
|
importLoading: f,
|
|
5520
5520
|
exportLoading: l,
|
|
5521
5521
|
computed_current: h,
|
|
5522
|
-
computed_pageSize:
|
|
5522
|
+
computed_pageSize: m,
|
|
5523
5523
|
paginationSizeOptions: d,
|
|
5524
5524
|
OPERATIONS_EXPORT_MAP: sb,
|
|
5525
5525
|
handleImport: (C, k) => {
|
|
@@ -5532,28 +5532,28 @@ const rb = /* @__PURE__ */ rt(tb, [["render", nb]]), jn = Ln(() => {
|
|
|
5532
5532
|
O(C, k);
|
|
5533
5533
|
return;
|
|
5534
5534
|
}
|
|
5535
|
-
|
|
5535
|
+
Pe.warn(`请确认ImportConfigItem.type是否正确: ${N}`);
|
|
5536
5536
|
},
|
|
5537
5537
|
handleApiConfigExport: _,
|
|
5538
|
-
handleButtonClick:
|
|
5538
|
+
handleButtonClick: g
|
|
5539
5539
|
};
|
|
5540
5540
|
}
|
|
5541
5541
|
});
|
|
5542
5542
|
const ub = { class: "page-renderer-buttons" }, cb = { class: "page-renderer-buttons-left" }, fb = { key: 2 }, db = { class: "page-renderer-setting-trigger" }, pb = { href: "javascript:;" };
|
|
5543
5543
|
function hb(e, t, n, r, a, i) {
|
|
5544
|
-
const s = B("aicon"), o = B("MenuItem"), u = B("Menu"), l = B("Space"), f = B("Button"), c = B("Dropdown"), p = B("DownOutlined"), d = B("Pagination"),
|
|
5544
|
+
const s = B("aicon"), o = B("MenuItem"), u = B("Menu"), l = B("Space"), f = B("Button"), c = B("Dropdown"), p = B("DownOutlined"), d = B("Pagination"), g = B("Select"), h = B("SettingOutlined"), m = Co("permission");
|
|
5545
5545
|
return R(), Z("div", ub, [
|
|
5546
5546
|
Fe("div", cb, [
|
|
5547
5547
|
Y(l, null, {
|
|
5548
5548
|
default: F(() => [
|
|
5549
|
-
(R(!0), Z(ye, null,
|
|
5550
|
-
key: `${
|
|
5551
|
-
onClick: (S) => e.handleButtonClick(
|
|
5549
|
+
(R(!0), Z(ye, null, Be(e.config, (b, T) => lr((R(), V(Zt(b.type), ke(b.otherProps, {
|
|
5550
|
+
key: `${b.type}${T}`,
|
|
5551
|
+
onClick: (S) => e.handleButtonClick(b, S)
|
|
5552
5552
|
}), To({
|
|
5553
5553
|
overlay: F(() => [
|
|
5554
5554
|
Y(u, null, {
|
|
5555
5555
|
default: F(() => [
|
|
5556
|
-
(R(!0), Z(ye, null,
|
|
5556
|
+
(R(!0), Z(ye, null, Be(b.sublist, (S) => (R(), V(o, {
|
|
5557
5557
|
key: S.action,
|
|
5558
5558
|
onClick: (_) => e.handleButtonClick(S, _)
|
|
5559
5559
|
}, {
|
|
@@ -5567,21 +5567,21 @@ function hb(e, t, n, r, a, i) {
|
|
|
5567
5567
|
}, 1024)
|
|
5568
5568
|
]),
|
|
5569
5569
|
default: F(() => [
|
|
5570
|
-
we(" " + ae(
|
|
5570
|
+
we(" " + ae(b.children) + " ", 1)
|
|
5571
5571
|
]),
|
|
5572
5572
|
_: 2
|
|
5573
5573
|
}, [
|
|
5574
|
-
|
|
5574
|
+
b.iconType ? {
|
|
5575
5575
|
name: "icon",
|
|
5576
5576
|
fn: F(() => [
|
|
5577
5577
|
Y(s, {
|
|
5578
|
-
type:
|
|
5578
|
+
type: b.iconType
|
|
5579
5579
|
}, null, 8, ["type"])
|
|
5580
5580
|
]),
|
|
5581
5581
|
key: "0"
|
|
5582
5582
|
} : void 0
|
|
5583
5583
|
]), 1040, ["onClick"])), [
|
|
5584
|
-
[
|
|
5584
|
+
[m, b.permissions]
|
|
5585
5585
|
])), 128))
|
|
5586
5586
|
]),
|
|
5587
5587
|
_: 1
|
|
@@ -5590,10 +5590,10 @@ function hb(e, t, n, r, a, i) {
|
|
|
5590
5590
|
Fe("div", null, [
|
|
5591
5591
|
Y(l, null, {
|
|
5592
5592
|
default: F(() => {
|
|
5593
|
-
var
|
|
5593
|
+
var b, T;
|
|
5594
5594
|
return [
|
|
5595
5595
|
e.hasApiConfig ? (R(), Z(ye, { key: 0 }, [
|
|
5596
|
-
(
|
|
5596
|
+
(b = e.importConfig) != null && b.children ? (R(), V(c, {
|
|
5597
5597
|
key: 0,
|
|
5598
5598
|
trigger: ["click"],
|
|
5599
5599
|
disabled: e.importLoading
|
|
@@ -5601,7 +5601,7 @@ function hb(e, t, n, r, a, i) {
|
|
|
5601
5601
|
overlay: F(() => [
|
|
5602
5602
|
Y(u, null, {
|
|
5603
5603
|
default: F(() => [
|
|
5604
|
-
(R(!0), Z(ye, null,
|
|
5604
|
+
(R(!0), Z(ye, null, Be(e.importConfig.children, (S, _) => (R(), V(o, {
|
|
5605
5605
|
key: _,
|
|
5606
5606
|
onClick: () => e.handleImport(S, _)
|
|
5607
5607
|
}, {
|
|
@@ -5649,7 +5649,7 @@ function hb(e, t, n, r, a, i) {
|
|
|
5649
5649
|
overlay: F(() => [
|
|
5650
5650
|
Y(u, null, {
|
|
5651
5651
|
default: F(() => [
|
|
5652
|
-
(R(!0), Z(ye, null,
|
|
5652
|
+
(R(!0), Z(ye, null, Be(e.importConfig.sublist, (S, _) => (R(), V(o, {
|
|
5653
5653
|
key: _,
|
|
5654
5654
|
onClick: () => e.handleImport(S, _)
|
|
5655
5655
|
}, {
|
|
@@ -5682,7 +5682,7 @@ function hb(e, t, n, r, a, i) {
|
|
|
5682
5682
|
onClick: t[1] || (t[1] = (S) => e.handleExport(S.key))
|
|
5683
5683
|
}, {
|
|
5684
5684
|
default: F(() => [
|
|
5685
|
-
(R(!0), Z(ye, null,
|
|
5685
|
+
(R(!0), Z(ye, null, Be(e.OPERATIONS_EXPORT_MAP, (S, _) => (R(), V(o, { key: _ }, {
|
|
5686
5686
|
default: F(() => [
|
|
5687
5687
|
we(ae(S), 1)
|
|
5688
5688
|
]),
|
|
@@ -5719,7 +5719,7 @@ function hb(e, t, n, r, a, i) {
|
|
|
5719
5719
|
simple: "",
|
|
5720
5720
|
total: e.total
|
|
5721
5721
|
}, null, 8, ["current", "pageSize", "total"]),
|
|
5722
|
-
Y(
|
|
5722
|
+
Y(g, {
|
|
5723
5723
|
value: e.computed_pageSize,
|
|
5724
5724
|
"onUpdate:value": t[4] || (t[4] = (S) => e.computed_pageSize = S),
|
|
5725
5725
|
size: "small",
|
|
@@ -5734,7 +5734,7 @@ function hb(e, t, n, r, a, i) {
|
|
|
5734
5734
|
onClick: t[5] || (t[5] = (S) => e.$emit("customizeSetting", S.key))
|
|
5735
5735
|
}, {
|
|
5736
5736
|
default: F(() => [
|
|
5737
|
-
(R(!0), Z(ye, null,
|
|
5737
|
+
(R(!0), Z(ye, null, Be(e.hasApiConfig ? e.API_CONFIG_SETTINGS_MAP : e.SETTINGS_MAP, (S, _) => (R(), V(o, { key: _ }, {
|
|
5738
5738
|
default: F(() => [
|
|
5739
5739
|
Y(h, { style: { "margin-right": "4px" } }),
|
|
5740
5740
|
Fe("a", pb, ae(S), 1)
|
|
@@ -5781,19 +5781,19 @@ const gb = /* @__PURE__ */ rt(lb, [["render", hb]]), mb = /* @__PURE__ */ be({
|
|
|
5781
5781
|
formState: i
|
|
5782
5782
|
} = zn(), s = Ce("pageName", ""), o = Ce("paramsGuard", (d) => d), l = Xe((() => {
|
|
5783
5783
|
const d = /\{\{(.+?)\}\}/g;
|
|
5784
|
-
let
|
|
5784
|
+
let g = {}, h = [];
|
|
5785
5785
|
for (; (h = d.exec(r)) !== null; )
|
|
5786
|
-
|
|
5787
|
-
return
|
|
5786
|
+
g[h[1].trim()] = " - ";
|
|
5787
|
+
return g;
|
|
5788
5788
|
})()), f = pt(n.value.url), c = async () => {
|
|
5789
5789
|
const d = Ba({
|
|
5790
5790
|
conditions: i[s],
|
|
5791
5791
|
apiConfig: n.value
|
|
5792
5792
|
});
|
|
5793
|
-
o(d, s), a.value = !0, f(d).then((
|
|
5793
|
+
o(d, s), a.value = !0, f(d).then((g) => {
|
|
5794
5794
|
Object.keys(l).forEach((h) => {
|
|
5795
|
-
const
|
|
5796
|
-
l[h] = hr(
|
|
5795
|
+
const m = kn(g, `${n.value.dataKey}.${h}`);
|
|
5796
|
+
l[h] = hr(m) ? " - " : m;
|
|
5797
5797
|
});
|
|
5798
5798
|
}).finally(() => a.value = !1);
|
|
5799
5799
|
}, p = {
|
|
@@ -5862,14 +5862,14 @@ const vb = Ln(() => {
|
|
|
5862
5862
|
const t = document.createElement("textarea");
|
|
5863
5863
|
t.value = e, document.body.appendChild(t), t.select(), t.setSelectionRange(0, 99999);
|
|
5864
5864
|
try {
|
|
5865
|
-
document.execCommand("copy"),
|
|
5865
|
+
document.execCommand("copy"), Pe.success("复制成功");
|
|
5866
5866
|
} catch (n) {
|
|
5867
|
-
|
|
5867
|
+
Pe.error("复制失败"), console.error("【@yzsf2e/render-core】execCommand 复制失败: ", n);
|
|
5868
5868
|
}
|
|
5869
5869
|
document.body.removeChild(t);
|
|
5870
5870
|
}, bb = (e) => {
|
|
5871
5871
|
navigator.clipboard.writeText(e).then(() => {
|
|
5872
|
-
|
|
5872
|
+
Pe.success("复制成功");
|
|
5873
5873
|
}).catch((t) => {
|
|
5874
5874
|
console.error("【@yzsf2e/render-core】复制失败: ", t), yb(e);
|
|
5875
5875
|
});
|
|
@@ -5972,7 +5972,7 @@ function Tb(e, t, n, r, a, i) {
|
|
|
5972
5972
|
return R(), Z("div", null, [
|
|
5973
5973
|
Y(s, null, {
|
|
5974
5974
|
default: F(() => [
|
|
5975
|
-
(R(!0), Z(ye, null,
|
|
5975
|
+
(R(!0), Z(ye, null, Be(e.imageList, (o, u) => (R(), Z("img", {
|
|
5976
5976
|
src: o,
|
|
5977
5977
|
key: u,
|
|
5978
5978
|
onClick: () => e.preview(u),
|
|
@@ -6082,13 +6082,13 @@ le.div = function(e) {
|
|
|
6082
6082
|
throw Error(Bs);
|
|
6083
6083
|
if (!r[0])
|
|
6084
6084
|
return e.s = i, e.c = [e.e = 0], e;
|
|
6085
|
-
var o, u, l, f, c, p = a.slice(), d = o = a.length,
|
|
6086
|
-
for (
|
|
6085
|
+
var o, u, l, f, c, p = a.slice(), d = o = a.length, g = r.length, h = r.slice(0, o), m = h.length, b = e, T = b.c = [], S = 0, _ = s + (b.e = t.e - e.e) + 1;
|
|
6086
|
+
for (b.s = i, i = _ < 0 ? 0 : _, p.unshift(0); m++ < o; )
|
|
6087
6087
|
h.push(0);
|
|
6088
6088
|
do {
|
|
6089
6089
|
for (l = 0; l < 10; l++) {
|
|
6090
|
-
if (o != (
|
|
6091
|
-
f = o >
|
|
6090
|
+
if (o != (m = h.length))
|
|
6091
|
+
f = o > m ? 1 : -1;
|
|
6092
6092
|
else
|
|
6093
6093
|
for (c = -1, f = 0; ++c < o; )
|
|
6094
6094
|
if (a[c] != h[c]) {
|
|
@@ -6096,22 +6096,22 @@ le.div = function(e) {
|
|
|
6096
6096
|
break;
|
|
6097
6097
|
}
|
|
6098
6098
|
if (f < 0) {
|
|
6099
|
-
for (u =
|
|
6100
|
-
if (h[--
|
|
6101
|
-
for (c =
|
|
6099
|
+
for (u = m == o ? a : p; m; ) {
|
|
6100
|
+
if (h[--m] < u[m]) {
|
|
6101
|
+
for (c = m; c && !h[--c]; )
|
|
6102
6102
|
h[c] = 9;
|
|
6103
|
-
--h[c], h[
|
|
6103
|
+
--h[c], h[m] += 10;
|
|
6104
6104
|
}
|
|
6105
|
-
h[
|
|
6105
|
+
h[m] -= u[m];
|
|
6106
6106
|
}
|
|
6107
6107
|
for (; !h[0]; )
|
|
6108
6108
|
h.shift();
|
|
6109
6109
|
} else
|
|
6110
6110
|
break;
|
|
6111
6111
|
}
|
|
6112
|
-
T[S++] = f ? l : ++l, h[0] && f ? h[
|
|
6113
|
-
} while ((d++ <
|
|
6114
|
-
return !T[0] && S != 1 && (T.shift(),
|
|
6112
|
+
T[S++] = f ? l : ++l, h[0] && f ? h[m] = r[d] || 0 : h = [r[d]];
|
|
6113
|
+
} while ((d++ < g || h[0] !== st) && i--);
|
|
6114
|
+
return !T[0] && S != 1 && (T.shift(), b.e--, _--), S > _ && zt(b, _, n.RM, h[0] !== st), b;
|
|
6115
6115
|
};
|
|
6116
6116
|
le.eq = function(e) {
|
|
6117
6117
|
return this.cmp(e) === 0;
|
|
@@ -6371,13 +6371,13 @@ const Mb = {
|
|
|
6371
6371
|
setup(e, { expose: t, emit: n }) {
|
|
6372
6372
|
var Wa;
|
|
6373
6373
|
const { t: r } = an(), a = async () => {
|
|
6374
|
-
await
|
|
6374
|
+
await Ue(), Tu(m, (P) => {
|
|
6375
6375
|
const U = P[0], { height: x } = U.contentRect;
|
|
6376
6376
|
o.value = x - 44 - (e.hasApiConfig ? 0 : 30);
|
|
6377
6377
|
});
|
|
6378
6378
|
};
|
|
6379
6379
|
Rt(a);
|
|
6380
|
-
const { enumerations: i } = zr(), { patchLocaleColumns: s } = vb(), o = $(0), u = "filter_", l = "_index", { config: f, conditions: c, hasApiConfig: p, rowKey: d, data:
|
|
6380
|
+
const { enumerations: i } = zr(), { patchLocaleColumns: s } = vb(), o = $(0), u = "filter_", l = "_index", { config: f, conditions: c, hasApiConfig: p, rowKey: d, data: g, total: h } = Ze(e), m = $(null), b = Ce("pageName", ""), T = Ce("tableDrop", (P) => {
|
|
6381
6381
|
}), S = Ce("emitHandler", () => {
|
|
6382
6382
|
}), _ = $(e.sort || {});
|
|
6383
6383
|
let M = !1;
|
|
@@ -6404,9 +6404,9 @@ const Mb = {
|
|
|
6404
6404
|
}
|
|
6405
6405
|
}
|
|
6406
6406
|
});
|
|
6407
|
-
const A = $([]), E = $([]),
|
|
6408
|
-
I[
|
|
6409
|
-
const z = q(() => D[
|
|
6407
|
+
const A = $([]), E = $([]), y = $([]), w = $([]), C = $({}), k = $([]), { selectedRows: N, selectedRowKeys: D, selectedErrorRowKeys: I } = jn();
|
|
6408
|
+
I[b] || (I[b] = []);
|
|
6409
|
+
const z = q(() => D[b].length > 0), L = q(() => {
|
|
6410
6410
|
if (p.value)
|
|
6411
6411
|
return Pi(c.value, "fieldName");
|
|
6412
6412
|
{
|
|
@@ -6431,10 +6431,10 @@ const Mb = {
|
|
|
6431
6431
|
record: x,
|
|
6432
6432
|
index: X
|
|
6433
6433
|
}) => ne(U) ? X + 1 : ul(P) || !U || re(U) ? P : ve(x, U) ? " " : P, ze = (P, U) => {
|
|
6434
|
-
D[
|
|
6435
|
-
},
|
|
6434
|
+
D[b] = P, N[b] = U;
|
|
6435
|
+
}, Ye = () => {
|
|
6436
6436
|
ze([], []);
|
|
6437
|
-
},
|
|
6437
|
+
}, We = $(
|
|
6438
6438
|
(Wa = e.tableProps) != null && Wa.expandedRowKeys ? [...e.tableProps.expandedRowKeys] : []
|
|
6439
6439
|
);
|
|
6440
6440
|
ie(
|
|
@@ -6443,7 +6443,7 @@ const Mb = {
|
|
|
6443
6443
|
return (P = e.tableProps) == null ? void 0 : P.expandedRowKeys;
|
|
6444
6444
|
},
|
|
6445
6445
|
(P) => {
|
|
6446
|
-
P && (
|
|
6446
|
+
P && (We.value = [...P]);
|
|
6447
6447
|
},
|
|
6448
6448
|
{ immediate: !0 }
|
|
6449
6449
|
);
|
|
@@ -6451,10 +6451,10 @@ const Mb = {
|
|
|
6451
6451
|
const U = window.getSelection();
|
|
6452
6452
|
if (U && (U == null ? void 0 : U.toString().length) > 0)
|
|
6453
6453
|
return;
|
|
6454
|
-
const x = [...D[
|
|
6455
|
-
x.indexOf(P[X]) >= 0 ? x.splice(x.indexOf(P[X]), 1) : x.push(P[X]), D[
|
|
6454
|
+
const x = [...D[b]], X = d.value;
|
|
6455
|
+
x.indexOf(P[X]) >= 0 ? x.splice(x.indexOf(P[X]), 1) : x.push(P[X]), D[b] = x, N[b] = oe.value.filter((G) => x.includes(G[X]));
|
|
6456
6456
|
}, ue = /* @__PURE__ */ new WeakMap();
|
|
6457
|
-
let
|
|
6457
|
+
let Ie = "", Ve = "";
|
|
6458
6458
|
const ft = (P, U) => ({
|
|
6459
6459
|
...e.draggable ? {
|
|
6460
6460
|
style: {
|
|
@@ -6467,7 +6467,7 @@ const Mb = {
|
|
|
6467
6467
|
},
|
|
6468
6468
|
// 开始拖拽
|
|
6469
6469
|
onDragstart: (x) => {
|
|
6470
|
-
(x || window.event).stopPropagation(),
|
|
6470
|
+
(x || window.event).stopPropagation(), Ie = P[e.rowKey];
|
|
6471
6471
|
},
|
|
6472
6472
|
// 拖动元素经过的元素
|
|
6473
6473
|
onDragover: (x) => {
|
|
@@ -6480,22 +6480,22 @@ const Mb = {
|
|
|
6480
6480
|
if (_e.value[U].disabled)
|
|
6481
6481
|
return;
|
|
6482
6482
|
const Ne = document.querySelectorAll(".ant-table-row.target");
|
|
6483
|
-
Ne.length && Ne[0].classList.remove("target"), G[U].classList.add("target"),
|
|
6483
|
+
Ne.length && Ne[0].classList.remove("target"), G[U].classList.add("target"), Ve = P[e.rowKey];
|
|
6484
6484
|
},
|
|
6485
6485
|
// 鼠标松开
|
|
6486
6486
|
onDrop: (x) => {
|
|
6487
6487
|
(x || window.event).stopPropagation();
|
|
6488
6488
|
const G = document.querySelectorAll(".ant-table-row.target");
|
|
6489
|
-
if (G.length && G[0].classList.remove("target"),
|
|
6489
|
+
if (G.length && G[0].classList.remove("target"), Ve === Ie)
|
|
6490
6490
|
return;
|
|
6491
6491
|
const Ne = _e.value.slice(), et = Ne.findIndex(
|
|
6492
|
-
(qe) => qe[e.rowKey] ===
|
|
6492
|
+
(qe) => qe[e.rowKey] === Ie
|
|
6493
6493
|
), Et = Ne[et];
|
|
6494
6494
|
Ne.splice(et, 1);
|
|
6495
6495
|
const Ct = Ne.findIndex(
|
|
6496
|
-
(qe) => qe[e.rowKey] ===
|
|
6496
|
+
(qe) => qe[e.rowKey] === Ve
|
|
6497
6497
|
);
|
|
6498
|
-
Ne.splice(Ct, 0, Et), _e.value = Ne, T({ pageName:
|
|
6498
|
+
Ne.splice(Ct, 0, Et), _e.value = Ne, T({ pageName: b, targetKey: Ve, sourceKey: Ie });
|
|
6499
6499
|
}
|
|
6500
6500
|
} : {},
|
|
6501
6501
|
onclick: () => {
|
|
@@ -6515,7 +6515,7 @@ const Mb = {
|
|
|
6515
6515
|
var x;
|
|
6516
6516
|
let P = o.value;
|
|
6517
6517
|
z.value && (P -= 31), j.value && (P -= 33);
|
|
6518
|
-
const U = (x =
|
|
6518
|
+
const U = (x = m.value) == null ? void 0 : x.querySelector(".ant-table-body");
|
|
6519
6519
|
return U && (U.style.minHeight = `${P}px`), P;
|
|
6520
6520
|
});
|
|
6521
6521
|
It(() => {
|
|
@@ -6554,7 +6554,7 @@ const Mb = {
|
|
|
6554
6554
|
filterable: el,
|
|
6555
6555
|
sortable: qa
|
|
6556
6556
|
} = P;
|
|
6557
|
-
Ne === "Link" && A.value.push(G), Ne === "HTML" && E.value.push(G), et === "slot" &&
|
|
6557
|
+
Ne === "Link" && A.value.push(G), Ne === "HTML" && E.value.push(G), et === "slot" && y.value.push(G), et === "img" && w.value.push(G), et === "map" && Ct && (C.value[G] = P);
|
|
6558
6558
|
const Ga = G !== "action" && Array.isArray(it), tl = Ga ? (
|
|
6559
6559
|
// 目前有表头分组配置时,不渲染表头筛选组件
|
|
6560
6560
|
it.map((Tt) => ({
|
|
@@ -6619,18 +6619,18 @@ const Mb = {
|
|
|
6619
6619
|
() => Kn(k.value).map(
|
|
6620
6620
|
(P) => P === l ? h.value.count : h.value[P]
|
|
6621
6621
|
)
|
|
6622
|
-
), { formState: un } = zn(), { validate: Br } = jb(un[
|
|
6622
|
+
), { formState: un } = zn(), { validate: Br } = jb(un[b]), Yn = () => {
|
|
6623
6623
|
Br().then(() => e.current === 1 ? n("search") : n("update:current", 1)).catch((P) => {
|
|
6624
6624
|
console.warn(P);
|
|
6625
6625
|
});
|
|
6626
6626
|
}, Kr = (P) => {
|
|
6627
|
-
L.value[P].type === "Input" ? $e() :
|
|
6627
|
+
L.value[P].type === "Input" ? $e() : Ue(Yn);
|
|
6628
6628
|
}, Ur = (P, U, x) => {
|
|
6629
6629
|
Array.isArray(x) || (x.columnKey && x.order ? _.value = { [x.columnKey]: Fb[x.order] } : _.value = {});
|
|
6630
6630
|
}, Yr = () => {
|
|
6631
6631
|
_.value = e.defaultSort;
|
|
6632
6632
|
}, K = q(() => f.value.filter((P) => P.locale)), te = q(() => Object.keys(C.value)), Ae = q(() => K.value.map((P) => P.columnKey)), oe = $([]), _e = $([]), Me = () => {
|
|
6633
|
-
_e.value = fs(oe.value, (P) => pg(un[
|
|
6633
|
+
_e.value = fs(oe.value, (P) => pg(un[b], (U, x) => {
|
|
6634
6634
|
var X, G;
|
|
6635
6635
|
return ["", void 0, null].includes(U) || Array.isArray(U) ? !0 : Object.hasOwn(P, x) ? $i(
|
|
6636
6636
|
(X = P[x]) == null ? void 0 : X.toString().toLocaleLowerCase(),
|
|
@@ -6646,8 +6646,8 @@ const Mb = {
|
|
|
6646
6646
|
P[`${X.action}Loading`] = !1;
|
|
6647
6647
|
}) : P[`${U.action}Loading`] = !1, P;
|
|
6648
6648
|
}, {});
|
|
6649
|
-
ie([
|
|
6650
|
-
const P = Array.isArray(
|
|
6649
|
+
ie([g], async () => {
|
|
6650
|
+
const P = Array.isArray(g.value) ? g.value.map((U) => ({
|
|
6651
6651
|
...U,
|
|
6652
6652
|
...te.value.reduce(
|
|
6653
6653
|
(x, X) => {
|
|
@@ -6673,7 +6673,7 @@ const Mb = {
|
|
|
6673
6673
|
),
|
|
6674
6674
|
[Jn]: Xe(_n(jt))
|
|
6675
6675
|
})) : [];
|
|
6676
|
-
await s(K.value, P), oe.value = P,
|
|
6676
|
+
await s(K.value, P), oe.value = P, We.value = [], Me();
|
|
6677
6677
|
});
|
|
6678
6678
|
const dt = (P, U) => {
|
|
6679
6679
|
U.width = P, U.children && U.children.length > 0 && (U.children[U.children.length - 1].width = P);
|
|
@@ -6698,7 +6698,7 @@ const Mb = {
|
|
|
6698
6698
|
return ll((P) => {
|
|
6699
6699
|
}), t({
|
|
6700
6700
|
clearSort: Yr,
|
|
6701
|
-
clearSelect:
|
|
6701
|
+
clearSelect: Ye,
|
|
6702
6702
|
toggleTableHeight: a
|
|
6703
6703
|
}), {
|
|
6704
6704
|
h: je,
|
|
@@ -6706,17 +6706,17 @@ const Mb = {
|
|
|
6706
6706
|
isNil: hr,
|
|
6707
6707
|
columns: k,
|
|
6708
6708
|
totalList: Un,
|
|
6709
|
-
pageName:
|
|
6709
|
+
pageName: b,
|
|
6710
6710
|
keywords: te,
|
|
6711
6711
|
localeKeywords: Ae,
|
|
6712
6712
|
computedY: xr,
|
|
6713
6713
|
dataSource: oe,
|
|
6714
6714
|
filteredDataSource: _e,
|
|
6715
6715
|
LOADING_SIGN: Jn,
|
|
6716
|
-
tableWrapper:
|
|
6716
|
+
tableWrapper: m,
|
|
6717
6717
|
linkCellKeys: A,
|
|
6718
6718
|
htmlCellKeys: E,
|
|
6719
|
-
slotCellKeys:
|
|
6719
|
+
slotCellKeys: y,
|
|
6720
6720
|
imgCellKeys: w,
|
|
6721
6721
|
tableCellSlots: W,
|
|
6722
6722
|
selectedRows: N,
|
|
@@ -6731,7 +6731,7 @@ const Mb = {
|
|
|
6731
6731
|
isHeaderFilterable: j,
|
|
6732
6732
|
FilterOutlined: Rl,
|
|
6733
6733
|
TABLE_ROW_CLASS_NAME: ab,
|
|
6734
|
-
localExpandedRowKeys:
|
|
6734
|
+
localExpandedRowKeys: We,
|
|
6735
6735
|
headerFilterSwitch: ee,
|
|
6736
6736
|
onSubmit: Yn,
|
|
6737
6737
|
onTableChange: Ur,
|
|
@@ -6763,7 +6763,7 @@ const Bb = {
|
|
|
6763
6763
|
}, Qb = /* @__PURE__ */ Fe("span", { class: "table-summary-cell-text" }, "总计", -1), Zb = { class: "table-summary-cell-text" };
|
|
6764
6764
|
function Jb(e, t, n, r, a, i) {
|
|
6765
6765
|
var O;
|
|
6766
|
-
const s = B("a-button"), o = B("a-tooltip"), u = B("CustomConditionBuilder"), l = B("ConditionBuilder"), f = B("a-input"), c = B("aicon"), p = B("LoadingOutlined"), d = B("Space"),
|
|
6766
|
+
const s = B("a-button"), o = B("a-tooltip"), u = B("CustomConditionBuilder"), l = B("ConditionBuilder"), f = B("a-input"), c = B("aicon"), p = B("LoadingOutlined"), d = B("Space"), g = B("TableImageCell"), h = B("TableCell"), m = B("TableCopyCell"), b = B("a-table-summary-cell"), T = B("a-table-summary-row"), S = B("a-table-summary"), _ = B("Table"), M = Co("permission");
|
|
6767
6767
|
return R(), Z("div", Bb, [
|
|
6768
6768
|
Y(_, {
|
|
6769
6769
|
bordered: "",
|
|
@@ -6847,10 +6847,10 @@ function Jb(e, t, n, r, a, i) {
|
|
|
6847
6847
|
]))
|
|
6848
6848
|
];
|
|
6849
6849
|
}),
|
|
6850
|
-
bodyCell: F(({ text: v, record: A, index: E, column:
|
|
6851
|
-
|
|
6850
|
+
bodyCell: F(({ text: v, record: A, index: E, column: y }) => [
|
|
6851
|
+
y.dataIndex === "action" ? (R(), V(d, { key: 0 }, {
|
|
6852
6852
|
default: F(() => [
|
|
6853
|
-
(R(!0), Z(ye, null,
|
|
6853
|
+
(R(!0), Z(ye, null, Be(y.childActions, (w) => (R(), Z(ye, {
|
|
6854
6854
|
key: w.action
|
|
6855
6855
|
}, [
|
|
6856
6856
|
w.show === void 0 || e.actionVisible(w.show, A) ? lr((R(), Z("div", Vb, [
|
|
@@ -6861,7 +6861,7 @@ function Jb(e, t, n, r, a, i) {
|
|
|
6861
6861
|
key: 0,
|
|
6862
6862
|
onClick: Eo(
|
|
6863
6863
|
(C) => {
|
|
6864
|
-
w.disabled && e.actionVisible(w.disabled, A) || e.handleLinkClick(A,
|
|
6864
|
+
w.disabled && e.actionVisible(w.disabled, A) || e.handleLinkClick(A, y, C, w.action);
|
|
6865
6865
|
},
|
|
6866
6866
|
["stop"]
|
|
6867
6867
|
),
|
|
@@ -6883,29 +6883,29 @@ function Jb(e, t, n, r, a, i) {
|
|
|
6883
6883
|
]),
|
|
6884
6884
|
_: 2
|
|
6885
6885
|
}, 1024)) : me("", !0),
|
|
6886
|
-
e.slotCellKeys.includes(
|
|
6887
|
-
e.tableCellSlots[
|
|
6886
|
+
e.slotCellKeys.includes(y.dataIndex) ? (R(), Z(ye, { key: 1 }, [
|
|
6887
|
+
e.tableCellSlots[y.dataIndex].component ? (R(), V(Zt(e.tableCellSlots[y.dataIndex].component), fn(ke({ key: 0 }, {
|
|
6888
6888
|
text: v,
|
|
6889
6889
|
row: A,
|
|
6890
6890
|
index: E,
|
|
6891
|
-
column:
|
|
6892
|
-
...e.tableCellSlots[
|
|
6891
|
+
column: y,
|
|
6892
|
+
...e.tableCellSlots[y.dataIndex].props
|
|
6893
6893
|
})), null, 16)) : me("", !0)
|
|
6894
|
-
], 64)) : e.imgCellKeys.includes(
|
|
6895
|
-
v ? (R(), V(
|
|
6894
|
+
], 64)) : e.imgCellKeys.includes(y.dataIndex) ? (R(), Z(ye, { key: 2 }, [
|
|
6895
|
+
v ? (R(), V(g, fn(ke({ key: 0 }, { image: v })), null, 16)) : me("", !0)
|
|
6896
6896
|
], 64)) : [...e.linkCellKeys, ...e.keywords, ...e.htmlCellKeys, ...e.localeKeywords].includes(
|
|
6897
|
-
|
|
6897
|
+
y.dataIndex
|
|
6898
6898
|
) ? (R(), V(h, fn(ke({ key: 3 }, {
|
|
6899
6899
|
row: A,
|
|
6900
|
-
copyable:
|
|
6901
|
-
column:
|
|
6902
|
-
loading: A[e.LOADING_SIGN][`${
|
|
6900
|
+
copyable: y.copyable,
|
|
6901
|
+
column: y,
|
|
6902
|
+
loading: A[e.LOADING_SIGN][`${y.action}Loading`],
|
|
6903
6903
|
keywords: e.keywords,
|
|
6904
6904
|
localeKeywords: e.localeKeywords,
|
|
6905
6905
|
linkCellKeys: e.linkCellKeys,
|
|
6906
6906
|
handleLinkClick: e.handleLinkClick
|
|
6907
|
-
})), null, 16)) :
|
|
6908
|
-
v ? (R(), V(
|
|
6907
|
+
})), null, 16)) : y.copyable ? (R(), Z(ye, { key: 4 }, [
|
|
6908
|
+
v ? (R(), V(m, fn(ke({ key: 0 }, { text: v })), null, 16)) : me("", !0)
|
|
6909
6909
|
], 64)) : me("", !0)
|
|
6910
6910
|
]),
|
|
6911
6911
|
summary: F(() => [
|
|
@@ -6913,13 +6913,13 @@ function Jb(e, t, n, r, a, i) {
|
|
|
6913
6913
|
default: F(() => [
|
|
6914
6914
|
lr(Y(T, { class: "table-summary-selection" }, {
|
|
6915
6915
|
default: F(() => [
|
|
6916
|
-
Y(
|
|
6916
|
+
Y(b, { index: 0 }, {
|
|
6917
6917
|
default: F(() => [
|
|
6918
6918
|
Fe("span", Gb, ae(e.$t("selected") || "选中"), 1)
|
|
6919
6919
|
]),
|
|
6920
6920
|
_: 1
|
|
6921
6921
|
}),
|
|
6922
|
-
(R(!0), Z(ye, null,
|
|
6922
|
+
(R(!0), Z(ye, null, Be(e.columns, (v, A) => (R(), V(b, {
|
|
6923
6923
|
key: v.key,
|
|
6924
6924
|
index: A + 1,
|
|
6925
6925
|
style: { "text-align": "center" }
|
|
@@ -6936,13 +6936,13 @@ function Jb(e, t, n, r, a, i) {
|
|
|
6936
6936
|
]),
|
|
6937
6937
|
e.hasApiConfig ? me("", !0) : (R(), V(T, { key: 0 }, {
|
|
6938
6938
|
default: F(() => [
|
|
6939
|
-
Y(
|
|
6939
|
+
Y(b, { index: 0 }, {
|
|
6940
6940
|
default: F(() => [
|
|
6941
6941
|
Qb
|
|
6942
6942
|
]),
|
|
6943
6943
|
_: 1
|
|
6944
6944
|
}),
|
|
6945
|
-
(R(!0), Z(ye, null,
|
|
6945
|
+
(R(!0), Z(ye, null, Be(e.totalList, (v, A) => (R(), V(b, {
|
|
6946
6946
|
key: A,
|
|
6947
6947
|
index: A + 1,
|
|
6948
6948
|
style: { "text-align": "center" }
|
|
@@ -6963,12 +6963,12 @@ function Jb(e, t, n, r, a, i) {
|
|
|
6963
6963
|
}, [
|
|
6964
6964
|
(O = e.tableProps) != null && O.expandedRowRender ? {
|
|
6965
6965
|
name: "expandedRowRender",
|
|
6966
|
-
fn: F(({ record: v, index: A, indent: E, expanded:
|
|
6966
|
+
fn: F(({ record: v, index: A, indent: E, expanded: y }) => [
|
|
6967
6967
|
(R(), V(Zt(e.tableProps.expandedRowRender.component), fn(cl({
|
|
6968
6968
|
row: v,
|
|
6969
6969
|
index: A,
|
|
6970
6970
|
indent: E,
|
|
6971
|
-
expanded:
|
|
6971
|
+
expanded: y,
|
|
6972
6972
|
...e.tableProps.expandedRowRender.props
|
|
6973
6973
|
})), null, 16))
|
|
6974
6974
|
]),
|
|
@@ -7061,7 +7061,7 @@ const nw = {
|
|
|
7061
7061
|
const O = Re(l.value), { dataSource: v } = f;
|
|
7062
7062
|
if (e.hasApiConfig && e.type === "COLUMN_SETTING") {
|
|
7063
7063
|
if (O.length < 5) {
|
|
7064
|
-
|
|
7064
|
+
Pe.warn(n("columnSettingModalHandlePrompt") || "显示列不能小于 5 项!");
|
|
7065
7065
|
return;
|
|
7066
7066
|
}
|
|
7067
7067
|
const w = v.map((C) => ({
|
|
@@ -7071,7 +7071,7 @@ const nw = {
|
|
|
7071
7071
|
o.value[s] = w, t("change");
|
|
7072
7072
|
return;
|
|
7073
7073
|
}
|
|
7074
|
-
const { category: A, tab: E } = r.meta,
|
|
7074
|
+
const { category: A, tab: E } = r.meta, y = O.map((w) => {
|
|
7075
7075
|
const C = {}, k = v.find((N) => N.columnKey === w);
|
|
7076
7076
|
if (C.entityId = k.entityId, C.columnKey = k.columnKey, e.type === "SORT_SETTING") {
|
|
7077
7077
|
const [N, D] = k.columnKey.split("@");
|
|
@@ -7081,7 +7081,7 @@ const nw = {
|
|
|
7081
7081
|
});
|
|
7082
7082
|
try {
|
|
7083
7083
|
u.value = !0, await tw(a, {
|
|
7084
|
-
[nw[e.type]]:
|
|
7084
|
+
[nw[e.type]]: y,
|
|
7085
7085
|
category: A,
|
|
7086
7086
|
label: E
|
|
7087
7087
|
}), t("change");
|
|
@@ -7090,100 +7090,100 @@ const nw = {
|
|
|
7090
7090
|
} finally {
|
|
7091
7091
|
u.value = !1;
|
|
7092
7092
|
}
|
|
7093
|
-
},
|
|
7093
|
+
}, g = () => i.value = !1, h = ({
|
|
7094
7094
|
disabled: O,
|
|
7095
7095
|
selectedKeys: v,
|
|
7096
7096
|
onItemSelectAll: A,
|
|
7097
7097
|
onItemSelect: E
|
|
7098
7098
|
}) => ({
|
|
7099
|
-
getCheckboxProps: (
|
|
7100
|
-
disabled: O ||
|
|
7099
|
+
getCheckboxProps: (y) => ({
|
|
7100
|
+
disabled: O || y.disabled
|
|
7101
7101
|
}),
|
|
7102
|
-
onSelectAll(
|
|
7102
|
+
onSelectAll(y, w) {
|
|
7103
7103
|
const C = w.filter((k) => !k.disabled).map(({ key: k }) => k);
|
|
7104
|
-
A(C,
|
|
7104
|
+
A(C, y);
|
|
7105
7105
|
},
|
|
7106
|
-
onSelect({ key:
|
|
7107
|
-
E(
|
|
7106
|
+
onSelect({ key: y }, w) {
|
|
7107
|
+
E(y, w);
|
|
7108
7108
|
},
|
|
7109
7109
|
selectedRowKeys: v
|
|
7110
7110
|
});
|
|
7111
|
-
let
|
|
7111
|
+
let m = "", b = "";
|
|
7112
7112
|
const T = (O, v, A, E) => ({
|
|
7113
7113
|
style: {
|
|
7114
7114
|
cursor: "move"
|
|
7115
7115
|
},
|
|
7116
7116
|
// 鼠标移入
|
|
7117
|
-
onMouseenter: (
|
|
7117
|
+
onMouseenter: (y) => {
|
|
7118
7118
|
var C;
|
|
7119
|
-
const w =
|
|
7119
|
+
const w = y || window.event;
|
|
7120
7120
|
O.key === "action" || (C = e.columns.find((k) => k.columnKey === O.key)) != null && C.fixed || (w.target.draggable = !0);
|
|
7121
7121
|
},
|
|
7122
7122
|
// 开始拖拽
|
|
7123
|
-
onDragstart: (
|
|
7124
|
-
(
|
|
7123
|
+
onDragstart: (y) => {
|
|
7124
|
+
(y || window.event).stopPropagation(), m = O.key, document.querySelectorAll(".drag-modal-wrapper .source-table .ant-table-row")[v].classList.add("source");
|
|
7125
7125
|
},
|
|
7126
7126
|
// 拖动元素经过的元素
|
|
7127
|
-
onDragover: (
|
|
7128
|
-
(
|
|
7127
|
+
onDragover: (y) => {
|
|
7128
|
+
(y || window.event).preventDefault();
|
|
7129
7129
|
},
|
|
7130
7130
|
// 拖动到达目标元素
|
|
7131
|
-
onDragenter: (
|
|
7132
|
-
(
|
|
7131
|
+
onDragenter: (y) => {
|
|
7132
|
+
(y || window.event).preventDefault();
|
|
7133
7133
|
const C = document.querySelectorAll(".drag-modal-wrapper .ant-table-row");
|
|
7134
7134
|
if (f.dataSource[v].disabled)
|
|
7135
7135
|
return;
|
|
7136
7136
|
const k = document.querySelectorAll(".ant-table-row.target");
|
|
7137
|
-
k.length && k[0].classList.remove("target"), C[v + (f.dataSource.length - l.value.length)].classList.add("target"),
|
|
7137
|
+
k.length && k[0].classList.remove("target"), C[v + (f.dataSource.length - l.value.length)].classList.add("target"), b = O.key;
|
|
7138
7138
|
},
|
|
7139
7139
|
// 鼠标松开
|
|
7140
|
-
onDrop: (
|
|
7141
|
-
(
|
|
7140
|
+
onDrop: (y) => {
|
|
7141
|
+
(y || window.event).stopPropagation();
|
|
7142
7142
|
const C = document.querySelectorAll(".ant-table-row.target");
|
|
7143
7143
|
C.length && C[0].classList.remove("target");
|
|
7144
7144
|
const k = document.querySelectorAll(".ant-table-row.source");
|
|
7145
|
-
if (k.length && k[0].classList.remove("source"),
|
|
7145
|
+
if (k.length && k[0].classList.remove("source"), b === m)
|
|
7146
7146
|
return;
|
|
7147
|
-
const N = f.dataSource.slice(), D = N.findIndex((L) => L.key ===
|
|
7147
|
+
const N = f.dataSource.slice(), D = N.findIndex((L) => L.key === m), I = N[D];
|
|
7148
7148
|
N.splice(D, 1);
|
|
7149
|
-
const z = N.findIndex((L) => L.key ===
|
|
7150
|
-
N.splice(z, 0, I),
|
|
7149
|
+
const z = N.findIndex((L) => L.key === b);
|
|
7150
|
+
N.splice(z, 0, I), f.dataSource = N, console.log("【TablePage】", f);
|
|
7151
7151
|
},
|
|
7152
7152
|
onClick: () => {
|
|
7153
|
-
const { key:
|
|
7154
|
-
w || E(
|
|
7153
|
+
const { key: y, disabled: w } = O;
|
|
7154
|
+
w || E(y, !A.includes(y));
|
|
7155
7155
|
},
|
|
7156
7156
|
ondblclick: () => {
|
|
7157
|
-
const { key:
|
|
7157
|
+
const { key: y, disabled: w } = O;
|
|
7158
7158
|
if (w)
|
|
7159
7159
|
return;
|
|
7160
|
-
const C = l.value.indexOf(
|
|
7161
|
-
C > -1 ? l.value.splice(C, 1) : l.value.push(
|
|
7160
|
+
const C = l.value.indexOf(y);
|
|
7161
|
+
C > -1 ? l.value.splice(C, 1) : l.value.push(y);
|
|
7162
7162
|
}
|
|
7163
7163
|
}), S = (O, v, A, E) => ({
|
|
7164
7164
|
onClick: () => {
|
|
7165
|
-
const { key:
|
|
7166
|
-
w || E(
|
|
7165
|
+
const { key: y, disabled: w } = O;
|
|
7166
|
+
w || E(y, !A.includes(y));
|
|
7167
7167
|
},
|
|
7168
7168
|
ondblclick: () => {
|
|
7169
|
-
const { key:
|
|
7169
|
+
const { key: y, disabled: w } = O;
|
|
7170
7170
|
if (w)
|
|
7171
7171
|
return;
|
|
7172
|
-
const C = l.value.indexOf(
|
|
7173
|
-
C > -1 ? l.value.splice(C, 1) : l.value.push(
|
|
7172
|
+
const C = l.value.indexOf(y);
|
|
7173
|
+
C > -1 ? l.value.splice(C, 1) : l.value.push(y);
|
|
7174
7174
|
}
|
|
7175
7175
|
}), _ = () => document.querySelector(".page-renderer-wrapper");
|
|
7176
7176
|
return ie(i, (O) => {
|
|
7177
|
-
O &&
|
|
7177
|
+
O && Ue(() => {
|
|
7178
7178
|
const v = document.querySelector(".ant-modal-root"), A = v == null ? void 0 : v.querySelector(".ant-modal-header"), E = v == null ? void 0 : v.querySelector(".ant-modal");
|
|
7179
7179
|
A.style.cursor = "move";
|
|
7180
|
-
const
|
|
7180
|
+
const y = E.currentStyle || window.getComputedStyle(E, null);
|
|
7181
7181
|
A.onmousedown = (w) => {
|
|
7182
7182
|
const C = w.clientX - A.offsetLeft, k = w.clientY - A.offsetTop;
|
|
7183
7183
|
let N, D;
|
|
7184
|
-
|
|
7185
|
-
(+
|
|
7186
|
-
(+
|
|
7184
|
+
y.left.includes("%") ? (N = +document.body.clientWidth * // eslint-disable-next-line
|
|
7185
|
+
(+y.left.replace(/\%/g, "") / 100), D = +document.body.clientHeight * // eslint-disable-next-line
|
|
7186
|
+
(+y.top.replace(/\%/g, "") / 100)) : (N = +y.left.replace(/\px/g, ""), D = +y.top.replace(/\px/g, "")), document.onmousemove = function(I) {
|
|
7187
7187
|
const z = I.clientX - C, L = I.clientY - k;
|
|
7188
7188
|
E.style.left = `${z + N}px`, E.style.top = `${L + D}px`;
|
|
7189
7189
|
}, document.onmouseup = function() {
|
|
@@ -7198,9 +7198,9 @@ const nw = {
|
|
|
7198
7198
|
toKeys: l,
|
|
7199
7199
|
tableColumn: c,
|
|
7200
7200
|
handleChange: (O, v, A) => {
|
|
7201
|
-
const E = O.map((
|
|
7201
|
+
const E = O.map((y) => y.split("@")[0]);
|
|
7202
7202
|
if (E.length !== Lg(E).length) {
|
|
7203
|
-
l.value = O.filter((
|
|
7203
|
+
l.value = O.filter((y) => !A.includes(y)), Pe.warn("同一字段不能同时设置升序和降序!");
|
|
7204
7204
|
return;
|
|
7205
7205
|
}
|
|
7206
7206
|
},
|
|
@@ -7208,7 +7208,7 @@ const nw = {
|
|
|
7208
7208
|
handleOk: d,
|
|
7209
7209
|
customRowRight: T,
|
|
7210
7210
|
customRowLeft: S,
|
|
7211
|
-
handleClose:
|
|
7211
|
+
handleClose: g,
|
|
7212
7212
|
getContainer: _,
|
|
7213
7213
|
getRowSelection: h
|
|
7214
7214
|
};
|
|
@@ -7276,9 +7276,9 @@ function iw(e, t, n, r, a, i) {
|
|
|
7276
7276
|
direction: c,
|
|
7277
7277
|
selectedKeys: p,
|
|
7278
7278
|
disabled: d,
|
|
7279
|
-
filteredItems:
|
|
7279
|
+
filteredItems: g,
|
|
7280
7280
|
onItemSelectAll: h,
|
|
7281
|
-
onItemSelect:
|
|
7281
|
+
onItemSelect: m
|
|
7282
7282
|
}) => [
|
|
7283
7283
|
Y(s, {
|
|
7284
7284
|
size: "small",
|
|
@@ -7287,15 +7287,15 @@ function iw(e, t, n, r, a, i) {
|
|
|
7287
7287
|
disabled: d,
|
|
7288
7288
|
selectedKeys: p,
|
|
7289
7289
|
onItemSelectAll: h,
|
|
7290
|
-
onItemSelect:
|
|
7290
|
+
onItemSelect: m
|
|
7291
7291
|
}),
|
|
7292
7292
|
"show-expand-column": !1,
|
|
7293
7293
|
columns: e.tableColumn,
|
|
7294
|
-
"data-source": c === "left" ?
|
|
7294
|
+
"data-source": c === "left" ? g.filter((b) => !e.toKeys.includes(b.key)) : g.filter((b) => e.toKeys.includes(b.key)),
|
|
7295
7295
|
pagination: !1,
|
|
7296
7296
|
scroll: { y: 300 },
|
|
7297
7297
|
style: va({ pointerEvents: d ? "none" : null }),
|
|
7298
|
-
"custom-row": (
|
|
7298
|
+
"custom-row": (b, T) => c === "left" ? e.customRowLeft(b, T, p, m) : e.customRowRight(b, T, p, m)
|
|
7299
7299
|
}, null, 8, ["class", "row-selection", "columns", "data-source", "style", "custom-row"])
|
|
7300
7300
|
]),
|
|
7301
7301
|
footer: F(({ direction: c }) => [
|
|
@@ -7337,40 +7337,40 @@ function Vs(e, t, n) {
|
|
|
7337
7337
|
if (typeof e != "function")
|
|
7338
7338
|
throw new TypeError("Expected a function");
|
|
7339
7339
|
t = +t || 0, Nn(n) && (f = !!n.leading, c = "maxWait" in n, i = c ? Math.max(+n.maxWait || 0, t) : i, p = "trailing" in n ? !!n.trailing : p);
|
|
7340
|
-
function
|
|
7340
|
+
function g(y) {
|
|
7341
7341
|
const w = r, C = a;
|
|
7342
|
-
return r = a = void 0, l =
|
|
7342
|
+
return r = a = void 0, l = y, s = e.apply(C, w), s;
|
|
7343
7343
|
}
|
|
7344
|
-
function h(
|
|
7345
|
-
return d ? (window.cancelAnimationFrame(o), window.requestAnimationFrame(
|
|
7344
|
+
function h(y, w) {
|
|
7345
|
+
return d ? (window.cancelAnimationFrame(o), window.requestAnimationFrame(y)) : setTimeout(y, w);
|
|
7346
7346
|
}
|
|
7347
|
-
function
|
|
7347
|
+
function m(y) {
|
|
7348
7348
|
if (d)
|
|
7349
|
-
return window.cancelAnimationFrame(
|
|
7350
|
-
clearTimeout(
|
|
7349
|
+
return window.cancelAnimationFrame(y);
|
|
7350
|
+
clearTimeout(y);
|
|
7351
7351
|
}
|
|
7352
|
-
function y
|
|
7353
|
-
return l =
|
|
7352
|
+
function b(y) {
|
|
7353
|
+
return l = y, o = h(_, t), f ? g(y) : s;
|
|
7354
7354
|
}
|
|
7355
|
-
function T(
|
|
7356
|
-
const w =
|
|
7355
|
+
function T(y) {
|
|
7356
|
+
const w = y - u, C = y - l, k = t - w;
|
|
7357
7357
|
return c ? Math.min(k, i - C) : k;
|
|
7358
7358
|
}
|
|
7359
|
-
function S(
|
|
7360
|
-
const w =
|
|
7359
|
+
function S(y) {
|
|
7360
|
+
const w = y - u, C = y - l;
|
|
7361
7361
|
return u === void 0 || w >= t || w < 0 || c && C >= i;
|
|
7362
7362
|
}
|
|
7363
7363
|
function _() {
|
|
7364
|
-
const
|
|
7365
|
-
if (S(
|
|
7366
|
-
return M(
|
|
7367
|
-
o = h(_, T(
|
|
7364
|
+
const y = Date.now();
|
|
7365
|
+
if (S(y))
|
|
7366
|
+
return M(y);
|
|
7367
|
+
o = h(_, T(y));
|
|
7368
7368
|
}
|
|
7369
|
-
function M(
|
|
7370
|
-
return o = void 0, p && r ?
|
|
7369
|
+
function M(y) {
|
|
7370
|
+
return o = void 0, p && r ? g(y) : (r = a = void 0, s);
|
|
7371
7371
|
}
|
|
7372
7372
|
function O() {
|
|
7373
|
-
o !== void 0 &&
|
|
7373
|
+
o !== void 0 && m(o), l = 0, r = u = a = o = void 0;
|
|
7374
7374
|
}
|
|
7375
7375
|
function v() {
|
|
7376
7376
|
return o === void 0 ? s : M(Date.now());
|
|
@@ -7379,14 +7379,14 @@ function Vs(e, t, n) {
|
|
|
7379
7379
|
return o !== void 0;
|
|
7380
7380
|
}
|
|
7381
7381
|
function E() {
|
|
7382
|
-
const
|
|
7382
|
+
const y = Date.now(), w = S(y);
|
|
7383
7383
|
for (var C = arguments.length, k = new Array(C), N = 0; N < C; N++)
|
|
7384
7384
|
k[N] = arguments[N];
|
|
7385
|
-
if (r = k, a = this, u =
|
|
7385
|
+
if (r = k, a = this, u = y, w) {
|
|
7386
7386
|
if (o === void 0)
|
|
7387
|
-
return
|
|
7387
|
+
return b(u);
|
|
7388
7388
|
if (c)
|
|
7389
|
-
return o = h(_, t),
|
|
7389
|
+
return o = h(_, t), g(u);
|
|
7390
7390
|
}
|
|
7391
7391
|
return o === void 0 && (o = h(_, t)), s;
|
|
7392
7392
|
}
|
|
@@ -7435,9 +7435,9 @@ var mw = wt((e, t) => {
|
|
|
7435
7435
|
Bn(u.value) || (s.value = Vs((c) => c(), u.value, o.value), e.context.runAsync = function() {
|
|
7436
7436
|
for (var c = arguments.length, p = new Array(c), d = 0; d < c; d++)
|
|
7437
7437
|
p[d] = arguments[d];
|
|
7438
|
-
return new Promise((
|
|
7439
|
-
i.value ? (i.value = !1, l.value(...p).then(
|
|
7440
|
-
l.value(...p).then(
|
|
7438
|
+
return new Promise((g, h) => {
|
|
7439
|
+
i.value ? (i.value = !1, l.value(...p).then(g).catch(h)) : s.value(() => {
|
|
7440
|
+
l.value(...p).then(g).catch(h);
|
|
7441
7441
|
});
|
|
7442
7442
|
});
|
|
7443
7443
|
}, f(() => {
|
|
@@ -7462,12 +7462,12 @@ var mw = wt((e, t) => {
|
|
|
7462
7462
|
}, f = q(() => {
|
|
7463
7463
|
if (o.value)
|
|
7464
7464
|
return o.value;
|
|
7465
|
-
const d = 1e3,
|
|
7466
|
-
return d *
|
|
7465
|
+
const d = 1e3, g = 1, h = 9, m = Math.floor(Math.random() * 2 ** Math.min(i.value, h) + g);
|
|
7466
|
+
return d * m;
|
|
7467
7467
|
}), c = () => {
|
|
7468
7468
|
let d;
|
|
7469
|
-
const
|
|
7470
|
-
return (
|
|
7469
|
+
const g = s.value === -1, h = i.value < s.value;
|
|
7470
|
+
return (g || h) && (g || (i.value += 1), d = setTimeout(() => {
|
|
7471
7471
|
u = !0, e.context.refresh();
|
|
7472
7472
|
}, f.value)), () => d && clearTimeout(d);
|
|
7473
7473
|
}, p = () => {
|
|
@@ -7562,7 +7562,7 @@ const Sw = (e, t) => (n) => {
|
|
|
7562
7562
|
onError: o,
|
|
7563
7563
|
onBefore: u,
|
|
7564
7564
|
onAfter: l
|
|
7565
|
-
} = t, f = $((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1), c = mn((a = n == null ? void 0 : n.data) !== null && a !== void 0 ? a : i), p = mn(n == null ? void 0 : n.error), d = $(n == null ? void 0 : n.params),
|
|
7565
|
+
} = t, f = $((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1), c = mn((a = n == null ? void 0 : n.data) !== null && a !== void 0 ? a : i), p = mn(n == null ? void 0 : n.error), d = $(n == null ? void 0 : n.params), g = $([]), h = mn("pending"), m = {}, b = Sw({
|
|
7566
7566
|
status: h,
|
|
7567
7567
|
loading: f,
|
|
7568
7568
|
data: c,
|
|
@@ -7572,22 +7572,22 @@ const Sw = (e, t) => (n) => {
|
|
|
7572
7572
|
for (var M = arguments.length, O = new Array(M > 1 ? M - 1 : 0), v = 1; v < M; v++)
|
|
7573
7573
|
O[v - 1] = arguments[v];
|
|
7574
7574
|
if (_ === "onQuery") {
|
|
7575
|
-
const A =
|
|
7575
|
+
const A = g.value.map((E) => E.onQuery).filter(Boolean);
|
|
7576
7576
|
return {
|
|
7577
7577
|
servicePromise: Ew(A, O[0])()
|
|
7578
7578
|
};
|
|
7579
7579
|
} else {
|
|
7580
|
-
const A =
|
|
7581
|
-
var
|
|
7582
|
-
return (
|
|
7580
|
+
const A = g.value.map((E) => {
|
|
7581
|
+
var y;
|
|
7582
|
+
return (y = E[_]) === null || y === void 0 ? void 0 : y.call(E, ...O);
|
|
7583
7583
|
});
|
|
7584
7584
|
return Object.assign({}, ...A);
|
|
7585
7585
|
}
|
|
7586
7586
|
}, S = $(0);
|
|
7587
|
-
return
|
|
7587
|
+
return m.runAsync = async function() {
|
|
7588
7588
|
for (var _ = arguments.length, M = new Array(_), O = 0; O < _; O++)
|
|
7589
7589
|
M[O] = arguments[O];
|
|
7590
|
-
|
|
7590
|
+
b({
|
|
7591
7591
|
loading: !0,
|
|
7592
7592
|
params: M,
|
|
7593
7593
|
status: "pending"
|
|
@@ -7597,45 +7597,45 @@ const Sw = (e, t) => (n) => {
|
|
|
7597
7597
|
breakResult: E = ea()
|
|
7598
7598
|
} = T("onBefore", M);
|
|
7599
7599
|
if (A)
|
|
7600
|
-
return
|
|
7600
|
+
return b({
|
|
7601
7601
|
status: "settled"
|
|
7602
7602
|
}), E;
|
|
7603
7603
|
u == null || u(M);
|
|
7604
7604
|
try {
|
|
7605
|
-
const
|
|
7605
|
+
const y = () => new Promise((k) => k(e(...d.value)));
|
|
7606
7606
|
let {
|
|
7607
7607
|
servicePromise: w
|
|
7608
|
-
} = T("onQuery",
|
|
7609
|
-
w || (w =
|
|
7608
|
+
} = T("onQuery", y);
|
|
7609
|
+
w || (w = y());
|
|
7610
7610
|
const C = await w;
|
|
7611
|
-
return v !== S.value ? ea() : (
|
|
7611
|
+
return v !== S.value ? ea() : (b({
|
|
7612
7612
|
data: C,
|
|
7613
7613
|
loading: !1,
|
|
7614
7614
|
error: void 0,
|
|
7615
7615
|
status: "settled"
|
|
7616
7616
|
}), T("onSuccess", C, M), s == null || s(C, M), v === S.value && T("onAfter", M, C, void 0), l == null || l(M), C);
|
|
7617
|
-
} catch (
|
|
7617
|
+
} catch (y) {
|
|
7618
7618
|
if (v !== S.value)
|
|
7619
7619
|
return ea();
|
|
7620
|
-
throw
|
|
7620
|
+
throw b({
|
|
7621
7621
|
loading: !1,
|
|
7622
|
-
error:
|
|
7622
|
+
error: y,
|
|
7623
7623
|
status: "settled"
|
|
7624
|
-
}), T("onError",
|
|
7624
|
+
}), T("onError", y, M), o == null || o(y, M), v === S.value && T("onAfter", M, void 0, y), l == null || l(M), y;
|
|
7625
7625
|
}
|
|
7626
|
-
},
|
|
7627
|
-
|
|
7626
|
+
}, m.run = function() {
|
|
7627
|
+
m.runAsync(...arguments).catch((_) => {
|
|
7628
7628
|
o || console.error(_);
|
|
7629
7629
|
});
|
|
7630
|
-
},
|
|
7631
|
-
S.value += 1,
|
|
7630
|
+
}, m.cancel = () => {
|
|
7631
|
+
S.value += 1, b({
|
|
7632
7632
|
loading: !1
|
|
7633
7633
|
}), T("onCancel");
|
|
7634
|
-
},
|
|
7635
|
-
|
|
7636
|
-
},
|
|
7634
|
+
}, m.refresh = () => {
|
|
7635
|
+
m.run(...d.value || []);
|
|
7636
|
+
}, m.refreshAsync = () => m.runAsync(...d.value || []), m.mutate = (_) => {
|
|
7637
7637
|
const M = Ua(_) ? _(c.value) : _, O = dw(M);
|
|
7638
|
-
|
|
7638
|
+
b({
|
|
7639
7639
|
data: O
|
|
7640
7640
|
}), T("onMutate", O);
|
|
7641
7641
|
}, {
|
|
@@ -7644,8 +7644,8 @@ const Sw = (e, t) => (n) => {
|
|
|
7644
7644
|
data: c,
|
|
7645
7645
|
error: p,
|
|
7646
7646
|
params: d,
|
|
7647
|
-
plugins:
|
|
7648
|
-
context:
|
|
7647
|
+
plugins: g,
|
|
7648
|
+
context: m
|
|
7649
7649
|
};
|
|
7650
7650
|
};
|
|
7651
7651
|
function Tw(e) {
|
|
@@ -7700,19 +7700,19 @@ var Pw = wt((e, t) => {
|
|
|
7700
7700
|
const o = Ua(n) ? n : () => n, u = $(() => {
|
|
7701
7701
|
});
|
|
7702
7702
|
let l;
|
|
7703
|
-
const f = (
|
|
7704
|
-
s ? s(
|
|
7705
|
-
}, p = (
|
|
7706
|
-
const T = o(
|
|
7703
|
+
const f = (b) => i ? i(b) : pw(b), c = (b, T, S) => {
|
|
7704
|
+
s ? s(b, S) : hw(b, T, S), Aw(b, S.data);
|
|
7705
|
+
}, p = (b) => a === -1 || b + a > (/* @__PURE__ */ new Date()).getTime(), d = (b, T) => Object.prototype.hasOwnProperty.call(b, T), g = (b) => {
|
|
7706
|
+
const T = o(b);
|
|
7707
7707
|
return $w(T, (S) => {
|
|
7708
7708
|
e.data.value = S;
|
|
7709
7709
|
});
|
|
7710
|
-
}, h = o(),
|
|
7711
|
-
return
|
|
7710
|
+
}, h = o(), m = f(h);
|
|
7711
|
+
return m && d(m, "data") && (e.data.value = m.data, e.params.value = m.params), h && (u.value = g()), Dn(() => {
|
|
7712
7712
|
u.value();
|
|
7713
7713
|
}), {
|
|
7714
|
-
onBefore(
|
|
7715
|
-
const T = o(
|
|
7714
|
+
onBefore(b) {
|
|
7715
|
+
const T = o(b), S = f(T);
|
|
7716
7716
|
if (!S || !d(S, "data"))
|
|
7717
7717
|
return {};
|
|
7718
7718
|
if (p(S.time))
|
|
@@ -7722,26 +7722,26 @@ var Pw = wt((e, t) => {
|
|
|
7722
7722
|
};
|
|
7723
7723
|
e.data.value = S.data;
|
|
7724
7724
|
},
|
|
7725
|
-
onQuery(
|
|
7725
|
+
onQuery(b) {
|
|
7726
7726
|
const T = e.params.value, S = o(T);
|
|
7727
7727
|
let _ = Ow(S);
|
|
7728
|
-
return _ && _ !== l ? () => _ : (_ =
|
|
7728
|
+
return _ && _ !== l ? () => _ : (_ = b(), l = _, _w(S, _), () => _);
|
|
7729
7729
|
},
|
|
7730
|
-
onSuccess(
|
|
7730
|
+
onSuccess(b, T) {
|
|
7731
7731
|
const S = o(T);
|
|
7732
7732
|
S && (u.value(), c(S, r, {
|
|
7733
|
-
data:
|
|
7733
|
+
data: b,
|
|
7734
7734
|
params: T,
|
|
7735
7735
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
7736
|
-
}), u.value =
|
|
7736
|
+
}), u.value = g(T));
|
|
7737
7737
|
},
|
|
7738
|
-
onMutate(
|
|
7738
|
+
onMutate(b) {
|
|
7739
7739
|
const T = o(e.params.value);
|
|
7740
7740
|
T && (u.value(), c(T, r, {
|
|
7741
|
-
data:
|
|
7741
|
+
data: b,
|
|
7742
7742
|
params: e.params.value,
|
|
7743
7743
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
7744
|
-
}), u.value =
|
|
7744
|
+
}), u.value = g(e.params.value));
|
|
7745
7745
|
}
|
|
7746
7746
|
};
|
|
7747
7747
|
});
|
|
@@ -7791,8 +7791,8 @@ var Nw = wt((e, t) => {
|
|
|
7791
7791
|
return ta() - o <= i.value && u.cancel(), Promise.reject(d);
|
|
7792
7792
|
}
|
|
7793
7793
|
}, p = Promise.allSettled([c(), u]).then((d) => {
|
|
7794
|
-
const
|
|
7795
|
-
return
|
|
7794
|
+
const g = d[0];
|
|
7795
|
+
return g.status === "fulfilled" ? g.value : Promise.reject(g.reason);
|
|
7796
7796
|
});
|
|
7797
7797
|
return () => p;
|
|
7798
7798
|
},
|
|
@@ -7845,21 +7845,21 @@ var Dw = wt((e, t) => {
|
|
|
7845
7845
|
), d = (h) => {
|
|
7846
7846
|
if (e.error.value && l.value !== 0)
|
|
7847
7847
|
return;
|
|
7848
|
-
let
|
|
7848
|
+
let m;
|
|
7849
7849
|
if (!Bn(u.value) && u.value >= 0)
|
|
7850
7850
|
if (p())
|
|
7851
|
-
|
|
7851
|
+
m = setTimeout(h, u.value);
|
|
7852
7852
|
else {
|
|
7853
7853
|
o.value = !0;
|
|
7854
7854
|
return;
|
|
7855
7855
|
}
|
|
7856
|
-
return () =>
|
|
7857
|
-
},
|
|
7856
|
+
return () => m && clearTimeout(m);
|
|
7857
|
+
}, g = () => {
|
|
7858
7858
|
o.value && p() && (e.context.refresh(), o.value = !1);
|
|
7859
7859
|
};
|
|
7860
7860
|
return ie(u, () => {
|
|
7861
7861
|
s.value && (s.value(), s.value = d(() => e.context.refresh()));
|
|
7862
|
-
}), r || c(wr("VISIBLE_LISTENER",
|
|
7862
|
+
}), r || c(wr("VISIBLE_LISTENER", g)), a || c(wr("RECONNECT_LISTENER", g)), Dn(() => {
|
|
7863
7863
|
f.forEach((h) => h());
|
|
7864
7864
|
}), {
|
|
7865
7865
|
onBefore() {
|
|
@@ -7929,18 +7929,18 @@ function yo(e) {
|
|
|
7929
7929
|
data: c,
|
|
7930
7930
|
params: p,
|
|
7931
7931
|
run: d,
|
|
7932
|
-
...
|
|
7932
|
+
...g
|
|
7933
7933
|
} = Mw(e, f), h = (v) => {
|
|
7934
7934
|
const [A, ...E] = p.value || [], w = [{
|
|
7935
7935
|
...A,
|
|
7936
7936
|
...v
|
|
7937
7937
|
}, ...E];
|
|
7938
7938
|
d(...w);
|
|
7939
|
-
},
|
|
7939
|
+
}, m = (v) => {
|
|
7940
7940
|
h({
|
|
7941
7941
|
[s]: v
|
|
7942
7942
|
});
|
|
7943
|
-
},
|
|
7943
|
+
}, b = (v) => {
|
|
7944
7944
|
h({
|
|
7945
7945
|
[o]: v
|
|
7946
7946
|
});
|
|
@@ -7958,7 +7958,7 @@ function yo(e) {
|
|
|
7958
7958
|
);
|
|
7959
7959
|
},
|
|
7960
7960
|
set: (v) => {
|
|
7961
|
-
|
|
7961
|
+
m(v);
|
|
7962
7962
|
}
|
|
7963
7963
|
}), M = q({
|
|
7964
7964
|
get: () => {
|
|
@@ -7969,7 +7969,7 @@ function yo(e) {
|
|
|
7969
7969
|
);
|
|
7970
7970
|
},
|
|
7971
7971
|
set: (v) => {
|
|
7972
|
-
|
|
7972
|
+
b(v);
|
|
7973
7973
|
}
|
|
7974
7974
|
}), O = q(() => mo(c.value, l, Math.ceil(S.value / M.value)));
|
|
7975
7975
|
return {
|
|
@@ -7980,10 +7980,10 @@ function yo(e) {
|
|
|
7980
7980
|
total: S,
|
|
7981
7981
|
totalPage: O,
|
|
7982
7982
|
run: d,
|
|
7983
|
-
changeCurrent:
|
|
7984
|
-
changePageSize:
|
|
7983
|
+
changeCurrent: m,
|
|
7984
|
+
changePageSize: b,
|
|
7985
7985
|
changePagination: T,
|
|
7986
|
-
...
|
|
7986
|
+
...g
|
|
7987
7987
|
};
|
|
7988
7988
|
}
|
|
7989
7989
|
const bo = {
|
|
@@ -8011,9 +8011,9 @@ const bo = {
|
|
|
8011
8011
|
}
|
|
8012
8012
|
},
|
|
8013
8013
|
setup(e, { expose: t }) {
|
|
8014
|
-
const n = kr(), { page: r } = Ze(e), { apiConfig: a, buttons: i, data: s, page_size_options: o, sort: u } = r.value, l = $(r.value.total), f = $(a == null ? void 0 : a.summary), c = $(s || []), p = $(u), d = $(!1),
|
|
8014
|
+
const n = kr(), { page: r } = Ze(e), { apiConfig: a, buttons: i, data: s, page_size_options: o, sort: u } = r.value, l = $(r.value.total), f = $(a == null ? void 0 : a.summary), c = $(s || []), p = $(u), d = $(!1), g = $(!1), h = $([]), m = $([]), b = $(), T = $(), S = $(), _ = {
|
|
8015
8015
|
导入: T,
|
|
8016
|
-
导出:
|
|
8016
|
+
导出: b
|
|
8017
8017
|
}, M = q(() => ({
|
|
8018
8018
|
COLUMN_SETTING: r.value.fieldShowConfigList,
|
|
8019
8019
|
FILTER_SETTING: r.value.fieldFilterConfigList,
|
|
@@ -8023,7 +8023,7 @@ const bo = {
|
|
|
8023
8023
|
// eslint-disable-next-line
|
|
8024
8024
|
(K, te) => K
|
|
8025
8025
|
), A = Ce("reloadPage", () => {
|
|
8026
|
-
}), { patchEnumerations: E, patchStaticEnumerations:
|
|
8026
|
+
}), { patchEnumerations: E, patchStaticEnumerations: y } = zr(), w = $(null), C = $(null), k = $(null), N = Lo(xs, {}), D = $(r.value.columns), I = Xe({
|
|
8027
8027
|
type: "COLUMN_SETTING",
|
|
8028
8028
|
title: "",
|
|
8029
8029
|
columns: [],
|
|
@@ -8044,7 +8044,7 @@ const bo = {
|
|
|
8044
8044
|
// 手动模式
|
|
8045
8045
|
loadingKeep: 100,
|
|
8046
8046
|
onBefore(te) {
|
|
8047
|
-
te.forEach((Ae) =>
|
|
8047
|
+
te.forEach((Ae) => We(Ae, r.value.name));
|
|
8048
8048
|
},
|
|
8049
8049
|
onSuccess(te) {
|
|
8050
8050
|
l.value.count = kn(te, a.list.totalKey), c.value = v(te, e.page.name);
|
|
@@ -8062,10 +8062,10 @@ const bo = {
|
|
|
8062
8062
|
totalKey: "data.page.total.count"
|
|
8063
8063
|
},
|
|
8064
8064
|
onBefore(te) {
|
|
8065
|
-
te.forEach((Ae) =>
|
|
8065
|
+
te.forEach((Ae) => We(Ae, r.value.name));
|
|
8066
8066
|
},
|
|
8067
8067
|
onSuccess(te) {
|
|
8068
|
-
l.value = te.data.page.total, c.value = te.data.page.data,
|
|
8068
|
+
l.value = te.data.page.total, c.value = te.data.page.data, y(te.data.page.enumerations);
|
|
8069
8069
|
}
|
|
8070
8070
|
}), S.value = pt(
|
|
8071
8071
|
`/duckbill-data-query-server/data/export/${n.meta.category}`,
|
|
@@ -8078,7 +8078,7 @@ const bo = {
|
|
|
8078
8078
|
})(), It(() => {
|
|
8079
8079
|
i.forEach((K) => {
|
|
8080
8080
|
const te = _[K.children];
|
|
8081
|
-
te ? te.value = K : K.columnAction ?
|
|
8081
|
+
te ? te.value = K : K.columnAction ? m.value.push(K) : h.value.push(K);
|
|
8082
8082
|
});
|
|
8083
8083
|
});
|
|
8084
8084
|
const { initFormState: ee } = zn(), ne = ee(
|
|
@@ -8090,14 +8090,14 @@ const bo = {
|
|
|
8090
8090
|
o ? o[0].value : js[0].value
|
|
8091
8091
|
), ve = $(1), { selectedRows: Oe, selectedRowKeys: ze } = jn();
|
|
8092
8092
|
Oe[e.page.name] && console.warn(`【@yzsf2e/render-core】请检查页面名 ${e.page.name} 是否重复!`);
|
|
8093
|
-
const
|
|
8093
|
+
const Ye = () => {
|
|
8094
8094
|
Oe[e.page.name] = [], ze[e.page.name] = [];
|
|
8095
8095
|
};
|
|
8096
|
-
c.value &&
|
|
8097
|
-
const
|
|
8096
|
+
c.value && Ye();
|
|
8097
|
+
const We = Ce("paramsGuard", (K) => K), Je = [
|
|
8098
8098
|
...r.value.conditions.map((K) => K.fieldName),
|
|
8099
8099
|
...Object.keys(r.value.defaultQuery)
|
|
8100
|
-
], ue = (K, te) => !hr(K) && K !== "" && Je.includes(te),
|
|
8100
|
+
], ue = (K, te) => !hr(K) && K !== "" && Je.includes(te), Ie = () => {
|
|
8101
8101
|
if (a) {
|
|
8102
8102
|
const K = Yy({
|
|
8103
8103
|
conditions: hn({ ...Re(ne) }, ue),
|
|
@@ -8118,12 +8118,12 @@ const bo = {
|
|
|
8118
8118
|
filters: hn({ ...Re(ne) }, ue)
|
|
8119
8119
|
});
|
|
8120
8120
|
}
|
|
8121
|
-
|
|
8122
|
-
},
|
|
8121
|
+
Ye(), Un();
|
|
8122
|
+
}, Ve = async (K) => {
|
|
8123
8123
|
let te;
|
|
8124
8124
|
if (K === "SELECTED") {
|
|
8125
8125
|
if (ze[e.page.name] && ze[e.page.name].length === 0) {
|
|
8126
|
-
|
|
8126
|
+
Pe.warn("至少选中一条数据!");
|
|
8127
8127
|
return;
|
|
8128
8128
|
}
|
|
8129
8129
|
te = ze[e.page.name];
|
|
@@ -8175,15 +8175,15 @@ const bo = {
|
|
|
8175
8175
|
const Me = z.value.indexOf(oe.columnKey), $e = z.value.indexOf(_e.columnKey);
|
|
8176
8176
|
return Me - $e;
|
|
8177
8177
|
});
|
|
8178
|
-
|
|
8178
|
+
m.value.length > 0 && K.unshift({
|
|
8179
8179
|
title: "操作",
|
|
8180
8180
|
align: "center",
|
|
8181
8181
|
columnKey: "action",
|
|
8182
|
-
children:
|
|
8182
|
+
children: m.value.map((oe) => ({
|
|
8183
8183
|
text: oe.children,
|
|
8184
8184
|
action: oe.action
|
|
8185
8185
|
})),
|
|
8186
|
-
width:
|
|
8186
|
+
width: m.value.reduce((oe, _e) => oe + Number(_e.columnActionWidth || 50), 0)
|
|
8187
8187
|
});
|
|
8188
8188
|
let te = K;
|
|
8189
8189
|
const Ae = N.value[e.page.name];
|
|
@@ -8203,11 +8203,11 @@ const bo = {
|
|
|
8203
8203
|
});
|
|
8204
8204
|
const { getEnumData: Ur } = Er();
|
|
8205
8205
|
Rt(async () => {
|
|
8206
|
-
|
|
8206
|
+
y(e.page.enumerations), await E(e.page.enumapi, Ur), g.value = !0, Ue().then(() => {
|
|
8207
8207
|
Un();
|
|
8208
8208
|
});
|
|
8209
8209
|
}), a ? ie([ve, re], () => {
|
|
8210
|
-
|
|
8210
|
+
Ie();
|
|
8211
8211
|
}) : ie([ve, re, p], ([K, te, Ae]) => {
|
|
8212
8212
|
const { category: oe, tab: _e } = n.meta;
|
|
8213
8213
|
O.value.run({
|
|
@@ -8256,14 +8256,14 @@ const bo = {
|
|
|
8256
8256
|
}, []);
|
|
8257
8257
|
I.columns = $g(te, ["disabled"], ["asc"]), I.type = K, I.title = ma[K], I.visible = !0;
|
|
8258
8258
|
};
|
|
8259
|
-
return t({ run:
|
|
8259
|
+
return t({ run: Ie, resetSearch: ft, clearSelect: xr }), {
|
|
8260
8260
|
apiConfig: a,
|
|
8261
8261
|
tableData: c,
|
|
8262
8262
|
rowKey: j,
|
|
8263
8263
|
paginationQuery: O,
|
|
8264
|
-
loaded:
|
|
8264
|
+
loaded: g,
|
|
8265
8265
|
buttonsConfig: h,
|
|
8266
|
-
exportConfig:
|
|
8266
|
+
exportConfig: b,
|
|
8267
8267
|
importConfig: T,
|
|
8268
8268
|
summary: f,
|
|
8269
8269
|
current: ve,
|
|
@@ -8276,8 +8276,8 @@ const bo = {
|
|
|
8276
8276
|
sortedColumns: L,
|
|
8277
8277
|
columnSettingState: I,
|
|
8278
8278
|
columnSettingVisible: d,
|
|
8279
|
-
handleSearch:
|
|
8280
|
-
handleExport:
|
|
8279
|
+
handleSearch: Ie,
|
|
8280
|
+
handleExport: Ve,
|
|
8281
8281
|
resetSearch: ft,
|
|
8282
8282
|
handleEmitAction: Br,
|
|
8283
8283
|
columnSettingChange: Yn,
|
|
@@ -8383,18 +8383,18 @@ const Qs = /* @__PURE__ */ rt(kw, [["render", Fw]]), zw = be({
|
|
|
8383
8383
|
const i = (d) => {
|
|
8384
8384
|
n("update:activePageName", d), l(
|
|
8385
8385
|
d,
|
|
8386
|
-
e.pages.findIndex((
|
|
8386
|
+
e.pages.findIndex((g) => g.name == d)
|
|
8387
8387
|
);
|
|
8388
|
-
}, s = {}, o = $({}), u = (d,
|
|
8389
|
-
d !== null && (o.value[
|
|
8390
|
-
}, l = (d,
|
|
8391
|
-
var
|
|
8392
|
-
const h = (
|
|
8388
|
+
}, s = {}, o = $({}), u = (d, g) => {
|
|
8389
|
+
d !== null && (o.value[g] = d, s[g] = () => o.value[g].run());
|
|
8390
|
+
}, l = (d, g) => {
|
|
8391
|
+
var m;
|
|
8392
|
+
const h = (m = e.customEvent) == null ? void 0 : m[e.tabClickAction];
|
|
8393
8393
|
if (h)
|
|
8394
|
-
return h({ name: d, index:
|
|
8394
|
+
return h({ name: d, index: g });
|
|
8395
8395
|
if (a)
|
|
8396
|
-
return a(e.tabClickAction, { name: d, index:
|
|
8397
|
-
e.tabClickAction &&
|
|
8396
|
+
return a(e.tabClickAction, { name: d, index: g });
|
|
8397
|
+
e.tabClickAction && Pe.warn("没有监听 tab 切换的事件处理函数");
|
|
8398
8398
|
};
|
|
8399
8399
|
return t({ run: (d) => {
|
|
8400
8400
|
o.value[d] && s[d]();
|
|
@@ -8416,7 +8416,7 @@ function jw(e, t, n, r, a, i) {
|
|
|
8416
8416
|
onChange: e.activeChange
|
|
8417
8417
|
}, {
|
|
8418
8418
|
default: F(() => [
|
|
8419
|
-
(R(!0), Z(ye, null,
|
|
8419
|
+
(R(!0), Z(ye, null, Be(e.pages, (l) => (R(), V(o, {
|
|
8420
8420
|
key: l.name,
|
|
8421
8421
|
tab: l.title
|
|
8422
8422
|
}, {
|
|
@@ -8499,8 +8499,8 @@ const xw = /* @__PURE__ */ rt(zw, [["render", jw]]), Bw = (e) => ({
|
|
|
8499
8499
|
},
|
|
8500
8500
|
emits: ["table-drop"],
|
|
8501
8501
|
setup(e, { emit: t, expose: n }) {
|
|
8502
|
-
var
|
|
8503
|
-
const r = kr(), a = $(null), i = $(null), s = $(""), o = $(null), u = $(null), l = $([]), f = $(), c = { title: "", component: null }, { selectedErrorRowKeys: p } = jn(), d = mn(c),
|
|
8502
|
+
var y;
|
|
8503
|
+
const r = kr(), a = $(null), i = $(null), s = $(""), o = $(null), u = $(null), l = $([]), f = $(), c = { title: "", component: null }, { selectedErrorRowKeys: p } = jn(), d = mn(c), g = $(!!e.options), h = $(wo(e.options));
|
|
8504
8504
|
ie(
|
|
8505
8505
|
() => e.options,
|
|
8506
8506
|
(w) => {
|
|
@@ -8509,10 +8509,10 @@ const xw = /* @__PURE__ */ rt(zw, [["render", jw]]), Bw = (e) => ({
|
|
|
8509
8509
|
), ie(
|
|
8510
8510
|
() => h.value,
|
|
8511
8511
|
(w) => {
|
|
8512
|
-
|
|
8512
|
+
g.value = !!w;
|
|
8513
8513
|
}
|
|
8514
8514
|
);
|
|
8515
|
-
const
|
|
8515
|
+
const m = $(!1), b = Ce(
|
|
8516
8516
|
"actionGuard",
|
|
8517
8517
|
null
|
|
8518
8518
|
);
|
|
@@ -8533,13 +8533,13 @@ const xw = /* @__PURE__ */ rt(zw, [["render", jw]]), Bw = (e) => ({
|
|
|
8533
8533
|
const S = pt(
|
|
8534
8534
|
`/duckbill-data-query-server/table/search/${r.meta.category}`
|
|
8535
8535
|
), _ = () => {
|
|
8536
|
-
|
|
8537
|
-
|
|
8536
|
+
g.value = !1, Ue(() => {
|
|
8537
|
+
g.value = !0;
|
|
8538
8538
|
});
|
|
8539
8539
|
}, M = async () => {
|
|
8540
8540
|
const { category: w, tab: C } = r.meta;
|
|
8541
8541
|
if (!e.options && w && C) {
|
|
8542
|
-
|
|
8542
|
+
m.value = !0;
|
|
8543
8543
|
try {
|
|
8544
8544
|
const k = await S({
|
|
8545
8545
|
category: w,
|
|
@@ -8552,16 +8552,16 @@ const xw = /* @__PURE__ */ rt(zw, [["render", jw]]), Bw = (e) => ({
|
|
|
8552
8552
|
});
|
|
8553
8553
|
h.value = k.data;
|
|
8554
8554
|
} catch {
|
|
8555
|
-
|
|
8555
|
+
Pe.error("页面配置请求失败!");
|
|
8556
8556
|
} finally {
|
|
8557
|
-
|
|
8557
|
+
m.value = !1;
|
|
8558
8558
|
}
|
|
8559
8559
|
}
|
|
8560
8560
|
}, O = (w, C) => {
|
|
8561
8561
|
var k;
|
|
8562
8562
|
(k = u.value) == null || k.open(w, C);
|
|
8563
8563
|
};
|
|
8564
|
-
_t("tableDrop", (w) => t("table-drop", w)), _t("materials", (
|
|
8564
|
+
_t("tableDrop", (w) => t("table-drop", w)), _t("materials", (y = e.config) == null ? void 0 : y.materials), _t("previewMediaModalOpen", O), _t("tableCellSlots", e.tableCellSlots || {}), _t("reloadPage", _), _t(
|
|
8565
8565
|
"emitHandler",
|
|
8566
8566
|
(w, C, k) => {
|
|
8567
8567
|
var D, I, z;
|
|
@@ -8569,7 +8569,7 @@ const xw = /* @__PURE__ */ rt(zw, [["render", jw]]), Bw = (e) => ({
|
|
|
8569
8569
|
if (e.form === void 0 || !e.form[w]) {
|
|
8570
8570
|
const L = (D = e.customEvent) == null ? void 0 : D[w];
|
|
8571
8571
|
if (!L)
|
|
8572
|
-
return
|
|
8572
|
+
return b ? b(w, N) : Pe.warn("没有找到自定义事件处理函数"), k == null ? void 0 : k();
|
|
8573
8573
|
try {
|
|
8574
8574
|
L(N, (j) => {
|
|
8575
8575
|
var ee;
|
|
@@ -8584,7 +8584,7 @@ const xw = /* @__PURE__ */ rt(zw, [["render", jw]]), Bw = (e) => ({
|
|
|
8584
8584
|
}, 100);
|
|
8585
8585
|
});
|
|
8586
8586
|
} catch (j) {
|
|
8587
|
-
((I = j.message) == null ? void 0 : I.indexOf("finally")) > -1 ?
|
|
8587
|
+
((I = j.message) == null ? void 0 : I.indexOf("finally")) > -1 ? Pe.warn("自定义事件处理函数必须返回一个Promise") : Pe.warn(j.message);
|
|
8588
8588
|
}
|
|
8589
8589
|
} else
|
|
8590
8590
|
(((z = e.customEvent) == null ? void 0 : z[w]) || (() => Promise.resolve()))(N, (j) => {
|
|
@@ -8625,7 +8625,7 @@ const xw = /* @__PURE__ */ rt(zw, [["render", jw]]), Bw = (e) => ({
|
|
|
8625
8625
|
}[h.value.type];
|
|
8626
8626
|
} }), {
|
|
8627
8627
|
run: v,
|
|
8628
|
-
loaded:
|
|
8628
|
+
loaded: g,
|
|
8629
8629
|
rows: l,
|
|
8630
8630
|
tabs: i,
|
|
8631
8631
|
table: a,
|