@yzsf2e/render-core 1.0.2-alpha.66 → 1.0.2-alpha.67
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 +274 -274
- package/dist/render-core.umd.js +3 -3
- package/package.json +1 -1
package/dist/render-core.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import * as tl from "@ant-design/icons-vue";
|
|
|
4
4
|
import { CloseOutlined as nl, ShrinkOutlined as rl, ArrowsAltOutlined as il, HolderOutlined as al, DownOutlined as ao, UpOutlined as ol, SettingOutlined as sl, CopyOutlined as ll, LoadingOutlined as oo, FilterOutlined as ul } from "@ant-design/icons-vue";
|
|
5
5
|
import { useRouter as cl } from "vue-router";
|
|
6
6
|
/*!
|
|
7
|
-
* @yzsf2e/render-core v0.0.2-alpha.25 Tue Jul 16 2024
|
|
7
|
+
* @yzsf2e/render-core v0.0.2-alpha.25 Tue Jul 16 2024 19:54:34 GMT+0800 (中国标准时间)
|
|
8
8
|
* (c) 2023 @yzsf2e.
|
|
9
9
|
*/
|
|
10
10
|
const fl = Object.assign;
|
|
@@ -63,8 +63,8 @@ const dl = /-(\w)/g, hl = (e) => e.replace(dl, (t, n) => n.toUpperCase()), Sn =
|
|
|
63
63
|
t("change", d), t("update:value", d);
|
|
64
64
|
}, o = (d) => {
|
|
65
65
|
t("openChange", d);
|
|
66
|
-
}, u = (d,
|
|
67
|
-
t("openChange", d,
|
|
66
|
+
}, u = (d, p) => {
|
|
67
|
+
t("openChange", d, p);
|
|
68
68
|
};
|
|
69
69
|
n({ blur: () => {
|
|
70
70
|
var d;
|
|
@@ -211,14 +211,14 @@ function nn(...e) {
|
|
|
211
211
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
212
212
|
const a = [], s = () => {
|
|
213
213
|
a.forEach((f) => f()), a.length = 0;
|
|
214
|
-
}, o = (f, c, d,
|
|
214
|
+
}, o = (f, c, d, p) => (f.addEventListener(c, d, p), () => f.removeEventListener(c, d, p)), u = ce(
|
|
215
215
|
() => [Lr(t), Le(i)],
|
|
216
216
|
([f, c]) => {
|
|
217
217
|
if (s(), !f)
|
|
218
218
|
return;
|
|
219
219
|
const d = Tl(c) ? { ...c } : c;
|
|
220
220
|
a.push(
|
|
221
|
-
...n.flatMap((
|
|
221
|
+
...n.flatMap((p) => r.map((w) => o(f, p, w, d)))
|
|
222
222
|
);
|
|
223
223
|
},
|
|
224
224
|
{ immediate: !0, flush: "post" }
|
|
@@ -295,7 +295,7 @@ function zl(e, t, n, r = {}) {
|
|
|
295
295
|
shallow: f,
|
|
296
296
|
window: c = sn,
|
|
297
297
|
eventFilter: d,
|
|
298
|
-
onError:
|
|
298
|
+
onError: p = (O) => {
|
|
299
299
|
console.error(O);
|
|
300
300
|
},
|
|
301
301
|
initOnMounted: w
|
|
@@ -307,11 +307,11 @@ function zl(e, t, n, r = {}) {
|
|
|
307
307
|
return (O = sn) == null ? void 0 : O.localStorage;
|
|
308
308
|
})();
|
|
309
309
|
} catch (O) {
|
|
310
|
-
|
|
310
|
+
p(O);
|
|
311
311
|
}
|
|
312
312
|
if (!n)
|
|
313
313
|
return h;
|
|
314
|
-
const b = Le(t), E = Fl(b), T = (i = r.serializer) != null ? i : jl[E], { pause:
|
|
314
|
+
const b = Le(t), E = Fl(b), T = (i = r.serializer) != null ? i : jl[E], { pause: g, resume: S } = Pl(
|
|
315
315
|
h,
|
|
316
316
|
() => _(h.value),
|
|
317
317
|
{ flush: a, deep: s, eventFilter: d }
|
|
@@ -335,7 +335,7 @@ function zl(e, t, n, r = {}) {
|
|
|
335
335
|
})));
|
|
336
336
|
}
|
|
337
337
|
} catch (m) {
|
|
338
|
-
|
|
338
|
+
p(m);
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
function y(O) {
|
|
@@ -358,11 +358,11 @@ function zl(e, t, n, r = {}) {
|
|
|
358
358
|
return;
|
|
359
359
|
}
|
|
360
360
|
if (!(O && O.key !== e)) {
|
|
361
|
-
|
|
361
|
+
g();
|
|
362
362
|
try {
|
|
363
363
|
(O == null ? void 0 : O.newValue) !== T.write(h.value) && (h.value = y(O));
|
|
364
364
|
} catch (m) {
|
|
365
|
-
|
|
365
|
+
p(m);
|
|
366
366
|
} finally {
|
|
367
367
|
O ? We(S) : S();
|
|
368
368
|
}
|
|
@@ -382,12 +382,12 @@ function Bl(e, t = {}) {
|
|
|
382
382
|
onStart: f,
|
|
383
383
|
initialValue: c,
|
|
384
384
|
axis: d = "both",
|
|
385
|
-
draggingElement:
|
|
385
|
+
draggingElement: p = sn,
|
|
386
386
|
containerElement: w,
|
|
387
387
|
handle: h = e
|
|
388
388
|
} = t, b = D(
|
|
389
389
|
(n = Le(c)) != null ? n : { x: 0, y: 0 }
|
|
390
|
-
), E = D(), T = (v) => i ? i.includes(v.pointerType) : !0,
|
|
390
|
+
), E = D(), T = (v) => i ? i.includes(v.pointerType) : !0, g = (v) => {
|
|
391
391
|
Le(a) && v.preventDefault(), Le(s) && v.stopPropagation();
|
|
392
392
|
}, S = (v) => {
|
|
393
393
|
var C;
|
|
@@ -397,7 +397,7 @@ function Bl(e, t = {}) {
|
|
|
397
397
|
x: v.clientX - (O ? P.left - m.left : P.left),
|
|
398
398
|
y: v.clientY - (O ? P.top - m.top : P.top)
|
|
399
399
|
};
|
|
400
|
-
(f == null ? void 0 : f(U, v)) !== !1 && (E.value = U,
|
|
400
|
+
(f == null ? void 0 : f(U, v)) !== !1 && (E.value = U, g(v));
|
|
401
401
|
}, _ = (v) => {
|
|
402
402
|
var C;
|
|
403
403
|
if (!T(v) || !E.value)
|
|
@@ -407,13 +407,13 @@ function Bl(e, t = {}) {
|
|
|
407
407
|
(d === "x" || d === "both") && (U = v.clientX - E.value.x, O && (U = Math.min(Math.max(0, U), m.width - P.width))), (d === "y" || d === "both") && (Q = v.clientY - E.value.y, O && (Q = Math.min(Math.max(0, Q), m.height - P.height))), b.value = {
|
|
408
408
|
x: U,
|
|
409
409
|
y: Q
|
|
410
|
-
}, u == null || u(b.value, v),
|
|
410
|
+
}, u == null || u(b.value, v), g(v);
|
|
411
411
|
}, y = (v) => {
|
|
412
|
-
T(v) && E.value && (E.value = void 0, l == null || l(b.value, v),
|
|
412
|
+
T(v) && E.value && (E.value = void 0, l == null || l(b.value, v), g(v));
|
|
413
413
|
};
|
|
414
414
|
if (uo) {
|
|
415
415
|
const v = { capture: (r = t.capture) != null ? r : !0 };
|
|
416
|
-
nn(h, "pointerdown", S, v), nn(
|
|
416
|
+
nn(h, "pointerdown", S, v), nn(p, "pointermove", _, v), nn(p, "pointerup", y, v);
|
|
417
417
|
}
|
|
418
418
|
return {
|
|
419
419
|
...Il(b),
|
|
@@ -456,14 +456,14 @@ function fo(e, t, n, r = {}) {
|
|
|
456
456
|
deep: f = !1,
|
|
457
457
|
defaultValue: c,
|
|
458
458
|
shouldEmit: d
|
|
459
|
-
} = r,
|
|
459
|
+
} = r, p = Vt(), w = n || (p == null ? void 0 : p.emit) || ((i = p == null ? void 0 : p.$emit) == null ? void 0 : i.bind(p)) || ((s = (a = p == null ? void 0 : p.proxy) == null ? void 0 : a.$emit) == null ? void 0 : s.bind(p == null ? void 0 : p.proxy));
|
|
460
460
|
let h = l;
|
|
461
461
|
t || (t = "modelValue"), h = h || `update:${t.toString()}`;
|
|
462
|
-
const b = (
|
|
463
|
-
d ? d(
|
|
462
|
+
const b = (g) => o ? typeof o == "function" ? o(g) : Ml(g) : g, E = () => Sl(e[t]) ? b(e[t]) : c, T = (g) => {
|
|
463
|
+
d ? d(g) && w(h, g) : w(h, g);
|
|
464
464
|
};
|
|
465
465
|
if (u) {
|
|
466
|
-
const
|
|
466
|
+
const g = E(), S = D(g);
|
|
467
467
|
let _ = !1;
|
|
468
468
|
return ce(
|
|
469
469
|
() => e[t],
|
|
@@ -482,8 +482,8 @@ function fo(e, t, n, r = {}) {
|
|
|
482
482
|
get() {
|
|
483
483
|
return E();
|
|
484
484
|
},
|
|
485
|
-
set(
|
|
486
|
-
T(
|
|
485
|
+
set(g) {
|
|
486
|
+
T(g);
|
|
487
487
|
}
|
|
488
488
|
});
|
|
489
489
|
}
|
|
@@ -527,10 +527,10 @@ const [Ul] = wn("drag-drawer"), Yl = Ee({
|
|
|
527
527
|
handleClose: s,
|
|
528
528
|
toggleFullScreen: f,
|
|
529
529
|
handleMouseDown: (d) => {
|
|
530
|
-
const
|
|
530
|
+
const p = d.clientX, w = i.value, h = (u == null ? void 0 : u.clientWidth) || document.body.clientWidth;
|
|
531
531
|
document.body.classList.add("disable-select-in-dragging"), window.onmousemove = function(b) {
|
|
532
|
-
const T = b.clientX -
|
|
533
|
-
i.value = Math.min(
|
|
532
|
+
const T = b.clientX - p, g = typeof w == "number" ? w - T : window.innerWidth - b.x;
|
|
533
|
+
i.value = Math.min(g < l ? l : g, h);
|
|
534
534
|
}, window.onmouseup = () => {
|
|
535
535
|
window.onmousemove = null, document.body.classList.remove("disable-select-in-dragging");
|
|
536
536
|
};
|
|
@@ -631,10 +631,10 @@ const Hl = /* @__PURE__ */ qe(Yl, [["render", Wl]]), Gl = Sn(Hl), [ql] = wn("pag
|
|
|
631
631
|
const { form: r } = Ge(e), i = D(!1), a = D(!1), s = D(null), o = He({
|
|
632
632
|
showOk: !0
|
|
633
633
|
}), u = async () => {
|
|
634
|
-
var d,
|
|
634
|
+
var d, p;
|
|
635
635
|
a.value = !0;
|
|
636
636
|
const c = ((d = s.value) == null ? void 0 : d.finish) || (() => Promise.resolve({ success: !0 }));
|
|
637
|
-
(
|
|
637
|
+
(p = s.value) != null && p.finish || console.warn("form组件没有提供finish方法"), c().then((w) => {
|
|
638
638
|
const { needFeedback: h = !0, needRefresh: b = !0, successMsg: E = "操作成功" } = r.value;
|
|
639
639
|
a.value = !1, w && w.success && (h && Ie.success(E), f(), b && n("refresh"));
|
|
640
640
|
}).catch((w) => {
|
|
@@ -647,15 +647,15 @@ const Hl = /* @__PURE__ */ qe(Yl, [["render", Wl]]), Gl = Sn(Hl), [ql] = wn("pag
|
|
|
647
647
|
};
|
|
648
648
|
ce(i, (c) => {
|
|
649
649
|
c && We(() => {
|
|
650
|
-
const d = document.querySelector(".ant-modal-root"),
|
|
651
|
-
|
|
650
|
+
const d = document.querySelector(".ant-modal-root"), p = d == null ? void 0 : d.querySelector(".ant-modal-header"), w = d == null ? void 0 : d.querySelector(".ant-modal");
|
|
651
|
+
p.style.cursor = "move";
|
|
652
652
|
const h = w.currentStyle || window.getComputedStyle(w, null);
|
|
653
|
-
|
|
654
|
-
const E = b.clientX -
|
|
655
|
-
let
|
|
656
|
-
h.left.includes("%") ? (
|
|
653
|
+
p.onmousedown = (b) => {
|
|
654
|
+
const E = b.clientX - p.offsetLeft, T = b.clientY - p.offsetTop;
|
|
655
|
+
let g, S;
|
|
656
|
+
h.left.includes("%") ? (g = +document.body.clientWidth * (+h.left.replace(/%/g, "") / 100), S = +document.body.clientHeight * (+h.top.replace(/%/g, "") / 100)) : (g = +h.left.replace(/\px/g, ""), S = +h.top.replace(/\px/g, "")), document.onmousemove = function(_) {
|
|
657
657
|
const y = _.clientX - E, v = _.clientY - T;
|
|
658
|
-
w.style.left = `${y +
|
|
658
|
+
w.style.left = `${y + g}px`, w.style.top = `${v + S}px`;
|
|
659
659
|
}, document.onmouseup = function() {
|
|
660
660
|
document.onmousemove = null, document.onmouseup = null;
|
|
661
661
|
};
|
|
@@ -1299,9 +1299,9 @@ var Tu = {
|
|
|
1299
1299
|
var u = s.src, l = s.alt || wu(u), f = t.getImageURL(s);
|
|
1300
1300
|
if (u || f) {
|
|
1301
1301
|
var c = document.createElement("li"), d = document.createElement("img");
|
|
1302
|
-
oe(r.inheritedAttributes, function(
|
|
1303
|
-
var w = s.getAttribute(
|
|
1304
|
-
w !== null && d.setAttribute(
|
|
1302
|
+
oe(r.inheritedAttributes, function(p) {
|
|
1303
|
+
var w = s.getAttribute(p);
|
|
1304
|
+
w !== null && d.setAttribute(p, w);
|
|
1305
1305
|
}), r.navbar && (d.src = u || f), d.alt = l, d.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(d), i.appendChild(c), a.push(c);
|
|
1306
1306
|
}
|
|
1307
1307
|
}), this.items = a, oe(a, function(s) {
|
|
@@ -1345,9 +1345,9 @@ var Tu = {
|
|
|
1345
1345
|
f.onload = null;
|
|
1346
1346
|
}
|
|
1347
1347
|
}, f = vo(i, r, function(c, d) {
|
|
1348
|
-
var
|
|
1349
|
-
n.imageInitializing = !1, u *
|
|
1350
|
-
var E = (o - h) / 2, T = (u - b) / 2,
|
|
1348
|
+
var p = c / d, w = Math.max(0, Math.min(1, r.initialCoverage)), h = o, b = u;
|
|
1349
|
+
n.imageInitializing = !1, u * p > o ? b = o / p : h = u * p, w = he(w) ? w : 0.9, h = Math.min(h * w, c), b = Math.min(b * w, d);
|
|
1350
|
+
var E = (o - h) / 2, T = (u - b) / 2, g = {
|
|
1351
1351
|
left: E,
|
|
1352
1352
|
top: T,
|
|
1353
1353
|
x: E,
|
|
@@ -1356,11 +1356,11 @@ var Tu = {
|
|
|
1356
1356
|
height: b,
|
|
1357
1357
|
oldRatio: 1,
|
|
1358
1358
|
ratio: h / c,
|
|
1359
|
-
aspectRatio:
|
|
1359
|
+
aspectRatio: p,
|
|
1360
1360
|
naturalWidth: c,
|
|
1361
1361
|
naturalHeight: d
|
|
1362
|
-
}, S = xe({},
|
|
1363
|
-
r.rotatable && (
|
|
1362
|
+
}, S = xe({}, g);
|
|
1363
|
+
r.rotatable && (g.rotate = l.rotate || 0, S.rotate = 0), r.scalable && (g.scaleX = l.scaleX || 1, g.scaleY = l.scaleY || 1, S.scaleX = 1, S.scaleY = 1), n.imageData = g, n.initialImageData = S, t && t();
|
|
1364
1364
|
});
|
|
1365
1365
|
},
|
|
1366
1366
|
renderImage: function(t) {
|
|
@@ -1677,15 +1677,15 @@ var Tu = {
|
|
|
1677
1677
|
return this;
|
|
1678
1678
|
var d = this.items[this.index];
|
|
1679
1679
|
d && (J(d, Rn), d.removeAttribute("aria-selected")), W(o, Rn), o.setAttribute("aria-selected", !0), i.focus && o.focus(), this.image = c, this.viewed = !1, this.index = n, this.imageData = {}, W(c, rn), i.loading && W(s, xt), s.innerHTML = "", s.appendChild(c), this.renderList(), a.innerHTML = "";
|
|
1680
|
-
var
|
|
1680
|
+
var p = function() {
|
|
1681
1681
|
var E = t.imageData, T = Array.isArray(i.title) ? i.title[1] : i.title;
|
|
1682
1682
|
a.innerHTML = vu(re(T) ? T.call(t, c, E) : "".concat(f, " (").concat(E.naturalWidth, " × ").concat(E.naturalHeight, ")"));
|
|
1683
1683
|
}, w, h;
|
|
1684
|
-
return G(r, ln,
|
|
1684
|
+
return G(r, ln, p, {
|
|
1685
1685
|
once: !0
|
|
1686
1686
|
}), this.viewing = {
|
|
1687
1687
|
abort: function() {
|
|
1688
|
-
ie(r, ln,
|
|
1688
|
+
ie(r, ln, p), c.complete ? t.imageRendering ? t.imageRendering.abort() : t.imageInitializing && t.imageInitializing.abort() : (c.src = "", ie(c, Be, w), t.timeout && clearTimeout(t.timeout));
|
|
1689
1689
|
}
|
|
1690
1690
|
}, c.complete ? this.load() : (G(c, Be, w = function() {
|
|
1691
1691
|
ie(c, vt, h), t.load();
|
|
@@ -1879,7 +1879,7 @@ var Tu = {
|
|
|
1879
1879
|
* @returns {Viewer} this
|
|
1880
1880
|
*/
|
|
1881
1881
|
zoomTo: function(t) {
|
|
1882
|
-
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, o = this.element, u = this.options, l = this.pointers, f = this.imageData, c = f.x, d = f.y,
|
|
1882
|
+
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, o = this.element, u = this.options, l = this.pointers, f = this.imageData, c = f.x, d = f.y, p = f.width, w = f.height, h = f.naturalWidth, b = f.naturalHeight;
|
|
1883
1883
|
if (t = Math.max(0, t), he(t) && this.viewed && !this.played && (s || u.zoomable)) {
|
|
1884
1884
|
if (!s) {
|
|
1885
1885
|
var E = Math.max(0.01, u.minZoomRatio), T = Math.min(100, u.maxZoomRatio);
|
|
@@ -1896,7 +1896,7 @@ var Tu = {
|
|
|
1896
1896
|
t > 0.99 && t < 1.01 && (t = 1);
|
|
1897
1897
|
break;
|
|
1898
1898
|
}
|
|
1899
|
-
var
|
|
1899
|
+
var g = h * t, S = b * t, _ = g - p, y = S - w, v = f.ratio;
|
|
1900
1900
|
if (re(u.zoom) && G(o, Qi, u.zoom, {
|
|
1901
1901
|
once: !0
|
|
1902
1902
|
}), ve(o, Qi, {
|
|
@@ -1910,10 +1910,10 @@ var Tu = {
|
|
|
1910
1910
|
pageX: a.pageX,
|
|
1911
1911
|
pageY: a.pageY
|
|
1912
1912
|
};
|
|
1913
|
-
f.x -= _ * ((O.pageX - C.left - c) /
|
|
1913
|
+
f.x -= _ * ((O.pageX - C.left - c) / p), f.y -= y * ((O.pageY - C.top - d) / w);
|
|
1914
1914
|
} else
|
|
1915
|
-
Rt(i) && he(i.x) && he(i.y) ? (f.x -= _ * ((i.x - c) /
|
|
1916
|
-
f.left = f.x, f.top = f.y, f.width =
|
|
1915
|
+
Rt(i) && he(i.x) && he(i.y) ? (f.x -= _ * ((i.x - c) / p), f.y -= y * ((i.y - d) / w)) : (f.x -= _ / 2, f.y -= y / 2);
|
|
1916
|
+
f.left = f.x, f.top = f.y, f.width = g, f.height = S, f.oldRatio = v, f.ratio = t, this.renderImage(function() {
|
|
1917
1917
|
n.zooming = !1, re(u.zoomed) && G(o, Zi, u.zoomed, {
|
|
1918
1918
|
once: !0
|
|
1919
1919
|
}), ve(o, Zi, {
|
|
@@ -1942,9 +1942,9 @@ var Tu = {
|
|
|
1942
1942
|
}), ve(r, Ji) === !1)
|
|
1943
1943
|
return this;
|
|
1944
1944
|
var a = this.player, s = this.loadImage.bind(this), o = [], u = 0, l = 0;
|
|
1945
|
-
if (this.played = !0, this.onLoadWhenPlay = s, n && this.requestFullscreen(n), W(a, At), oe(this.items, function(d,
|
|
1945
|
+
if (this.played = !0, this.onLoadWhenPlay = s, n && this.requestFullscreen(n), W(a, At), oe(this.items, function(d, p) {
|
|
1946
1946
|
var w = d.querySelector("img"), h = document.createElement("img");
|
|
1947
|
-
h.src = Mt(w, "originalUrl"), h.alt = w.getAttribute("alt"), h.referrerPolicy = w.referrerPolicy, u += 1, W(h, Kn), cn(h, pe, i.transition), It(d, Rn) && (W(h, je), l =
|
|
1947
|
+
h.src = Mt(w, "originalUrl"), h.alt = w.getAttribute("alt"), h.referrerPolicy = w.referrerPolicy, u += 1, W(h, Kn), cn(h, pe, i.transition), It(d, Rn) && (W(h, je), l = p), o.push(h), G(h, Be, s, {
|
|
1948
1948
|
once: !0
|
|
1949
1949
|
}), a.appendChild(h);
|
|
1950
1950
|
}), he(i.interval) && i.interval > 0) {
|
|
@@ -2216,14 +2216,14 @@ var Tu = {
|
|
|
2216
2216
|
var n = this.element, r = this.options, i = n.parentNode, a = document.createElement("div");
|
|
2217
2217
|
a.innerHTML = iu;
|
|
2218
2218
|
var s = a.querySelector(".".concat(Z, "-container")), o = s.querySelector(".".concat(Z, "-title")), u = s.querySelector(".".concat(Z, "-toolbar")), l = s.querySelector(".".concat(Z, "-navbar")), f = s.querySelector(".".concat(Z, "-button")), c = s.querySelector(".".concat(Z, "-canvas"));
|
|
2219
|
-
if (this.parent = i, this.viewer = s, this.title = o, this.toolbar = u, this.navbar = l, this.button = f, this.canvas = c, this.footer = s.querySelector(".".concat(Z, "-footer")), this.tooltipBox = s.querySelector(".".concat(Z, "-tooltip")), this.player = s.querySelector(".".concat(Z, "-player")), this.list = s.querySelector(".".concat(Z, "-list")), s.id = "".concat(Z).concat(this.id), o.id = "".concat(Z, "Title").concat(this.id), W(o, r.title ? Ln(Array.isArray(r.title) ? r.title[0] : r.title) : gt), W(l, r.navbar ? Ln(r.navbar) : gt), cn(f, gt, !r.button), r.keyboard && f.setAttribute("tabindex", 0), r.backdrop && (W(s, "".concat(Z, "-backdrop")), !r.inline && r.backdrop !== "static" && jr(c, Gn, "hide")), un(r.className) && r.className && r.className.split(Jr).forEach(function(
|
|
2220
|
-
W(s,
|
|
2219
|
+
if (this.parent = i, this.viewer = s, this.title = o, this.toolbar = u, this.navbar = l, this.button = f, this.canvas = c, this.footer = s.querySelector(".".concat(Z, "-footer")), this.tooltipBox = s.querySelector(".".concat(Z, "-tooltip")), this.player = s.querySelector(".".concat(Z, "-player")), this.list = s.querySelector(".".concat(Z, "-list")), s.id = "".concat(Z).concat(this.id), o.id = "".concat(Z, "Title").concat(this.id), W(o, r.title ? Ln(Array.isArray(r.title) ? r.title[0] : r.title) : gt), W(l, r.navbar ? Ln(r.navbar) : gt), cn(f, gt, !r.button), r.keyboard && f.setAttribute("tabindex", 0), r.backdrop && (W(s, "".concat(Z, "-backdrop")), !r.inline && r.backdrop !== "static" && jr(c, Gn, "hide")), un(r.className) && r.className && r.className.split(Jr).forEach(function(g) {
|
|
2220
|
+
W(s, g);
|
|
2221
2221
|
}), r.toolbar) {
|
|
2222
|
-
var d = document.createElement("ul"),
|
|
2223
|
-
|
|
2224
|
-
var _ =
|
|
2222
|
+
var d = document.createElement("ul"), p = Rt(r.toolbar), w = Mn.slice(0, 3), h = Mn.slice(7, 9), b = Mn.slice(9);
|
|
2223
|
+
p || W(u, Ln(r.toolbar)), oe(p ? r.toolbar : Mn, function(g, S) {
|
|
2224
|
+
var _ = p && Rt(g), y = p ? ei(S) : g, v = _ && !Nt(g.show) ? g.show : g;
|
|
2225
2225
|
if (!(!v || !r.zoomable && w.indexOf(y) !== -1 || !r.rotatable && h.indexOf(y) !== -1 || !r.scalable && b.indexOf(y) !== -1)) {
|
|
2226
|
-
var C = _ && !Nt(
|
|
2226
|
+
var C = _ && !Nt(g.size) ? g.size : g, O = _ && !Nt(g.click) ? g.click : g, m = document.createElement("li");
|
|
2227
2227
|
r.keyboard && m.setAttribute("tabindex", 0), m.setAttribute("role", "button"), W(m, "".concat(Z, "-").concat(y)), re(O) || jr(m, Gn, y), he(v) && W(m, Ln(v)), ["small", "large"].indexOf(C) !== -1 ? W(m, "".concat(Z, "-").concat(C)) : y === "play" && W(m, "".concat(Z, "-large")), re(O) && G(m, Bt, O), d.appendChild(m);
|
|
2228
2228
|
}
|
|
2229
2229
|
}), u.appendChild(d);
|
|
@@ -2231,8 +2231,8 @@ var Tu = {
|
|
|
2231
2231
|
W(u, gt);
|
|
2232
2232
|
if (!r.rotatable) {
|
|
2233
2233
|
var E = u.querySelectorAll('li[class*="rotate"]');
|
|
2234
|
-
W(E, rn), oe(E, function(
|
|
2235
|
-
u.appendChild(
|
|
2234
|
+
W(E, rn), oe(E, function(g) {
|
|
2235
|
+
u.appendChild(g);
|
|
2236
2236
|
});
|
|
2237
2237
|
}
|
|
2238
2238
|
if (r.inline)
|
|
@@ -2681,18 +2681,18 @@ const Ff = /* @__PURE__ */ Lf(Mf, [["render", xf]]), jf = { style: { height: "80
|
|
|
2681
2681
|
}
|
|
2682
2682
|
}, i = D(!1), a = D([]), s = D(0), o = (v) => {
|
|
2683
2683
|
n.value = v, v.view(s.value);
|
|
2684
|
-
}, u = D(null), { x: l, y: f, isDragging: c } = Bl(u), d = D(0),
|
|
2684
|
+
}, u = D(null), { x: l, y: f, isDragging: c } = Bl(u), d = D(0), p = D(0), w = D(!1), h = D(0), b = D(0), E = D(0), T = D(0), g = D({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
2685
2685
|
ce([l, f], () => {
|
|
2686
2686
|
if (!w.value) {
|
|
2687
|
-
d.value = l.value,
|
|
2687
|
+
d.value = l.value, p.value = f.value;
|
|
2688
2688
|
const v = document.body.getBoundingClientRect(), C = u.value.getBoundingClientRect();
|
|
2689
|
-
|
|
2689
|
+
g.value.right = v.width - C.width, g.value.bottom = v.height - C.height, E.value = h.value, T.value = b.value;
|
|
2690
2690
|
}
|
|
2691
2691
|
w.value = !0;
|
|
2692
2692
|
}), ce(c, () => {
|
|
2693
2693
|
c || (w.value = !1);
|
|
2694
2694
|
}), yt(() => {
|
|
2695
|
-
w.value && (h.value = E.value + Math.min(Math.max(
|
|
2695
|
+
w.value && (h.value = E.value + Math.min(Math.max(g.value.left, l.value), g.value.right) - d.value, b.value = T.value + Math.min(Math.max(g.value.top, f.value), g.value.bottom) - p.value);
|
|
2696
2696
|
});
|
|
2697
2697
|
const S = H(() => ({
|
|
2698
2698
|
transform: `translate(${h.value}px, ${b.value}px)`
|
|
@@ -2766,15 +2766,15 @@ var Lo = { exports: {} };
|
|
|
2766
2766
|
(function(n, r) {
|
|
2767
2767
|
e.exports = r();
|
|
2768
2768
|
})(Yf, function() {
|
|
2769
|
-
var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", s = "second", o = "minute", u = "hour", l = "day", f = "week", c = "month", d = "quarter",
|
|
2769
|
+
var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", s = "second", o = "minute", u = "hour", l = "day", f = "week", c = "month", d = "quarter", p = "year", w = "date", h = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|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(F) {
|
|
2770
2770
|
var L = ["th", "st", "nd", "rd"], I = F % 100;
|
|
2771
2771
|
return "[" + F + (L[(I - 20) % 10] || L[I] || L[0]) + "]";
|
|
2772
|
-
} },
|
|
2772
|
+
} }, g = function(F, L, I) {
|
|
2773
2773
|
var N = String(F);
|
|
2774
2774
|
return !N || N.length >= L ? F : "" + Array(L + 1 - N.length).join(I) + F;
|
|
2775
|
-
}, S = { s:
|
|
2775
|
+
}, S = { s: g, z: function(F) {
|
|
2776
2776
|
var L = -F.utcOffset(), I = Math.abs(L), N = Math.floor(I / 60), M = I % 60;
|
|
2777
|
-
return (L <= 0 ? "+" : "-") +
|
|
2777
|
+
return (L <= 0 ? "+" : "-") + g(N, 2, "0") + ":" + g(M, 2, "0");
|
|
2778
2778
|
}, m: function F(L, I) {
|
|
2779
2779
|
if (L.date() < I.date())
|
|
2780
2780
|
return -F(I, L);
|
|
@@ -2783,7 +2783,7 @@ var Lo = { exports: {} };
|
|
|
2783
2783
|
}, a: function(F) {
|
|
2784
2784
|
return F < 0 ? Math.ceil(F) || 0 : Math.floor(F);
|
|
2785
2785
|
}, p: function(F) {
|
|
2786
|
-
return { M: c, y:
|
|
2786
|
+
return { M: c, y: p, w: f, d: l, D: w, h: u, m: o, s, ms: a, Q: d }[F] || String(F || "").toLowerCase().replace(/s$/, "");
|
|
2787
2787
|
}, u: function(F) {
|
|
2788
2788
|
return F === void 0;
|
|
2789
2789
|
} }, _ = "en", y = {};
|
|
@@ -2865,7 +2865,7 @@ var Lo = { exports: {} };
|
|
|
2865
2865
|
return P.w(M.toDate()[Ne].apply(M.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), M);
|
|
2866
2866
|
}, ne = this.$W, fe = this.$M, me = this.$D, De = "set" + (this.$u ? "UTC" : "");
|
|
2867
2867
|
switch (Y) {
|
|
2868
|
-
case
|
|
2868
|
+
case p:
|
|
2869
2869
|
return K ? ee(1, 0) : ee(31, 11);
|
|
2870
2870
|
case c:
|
|
2871
2871
|
return K ? ee(1, fe) : ee(0, fe + 1);
|
|
@@ -2887,8 +2887,8 @@ var Lo = { exports: {} };
|
|
|
2887
2887
|
}, L.endOf = function(I) {
|
|
2888
2888
|
return this.startOf(I, !1);
|
|
2889
2889
|
}, L.$set = function(I, N) {
|
|
2890
|
-
var M, K = P.p(I), Y = "set" + (this.$u ? "UTC" : ""), ee = (M = {}, M[l] = Y + "Date", M[w] = Y + "Date", M[c] = Y + "Month", M[
|
|
2891
|
-
if (K === c || K ===
|
|
2890
|
+
var M, K = P.p(I), Y = "set" + (this.$u ? "UTC" : ""), ee = (M = {}, M[l] = Y + "Date", M[w] = Y + "Date", M[c] = Y + "Month", M[p] = Y + "FullYear", M[u] = Y + "Hours", M[o] = Y + "Minutes", M[s] = Y + "Seconds", M[a] = Y + "Milliseconds", M)[K], se = K === l ? this.$D + (N - this.$W) : N;
|
|
2891
|
+
if (K === c || K === p) {
|
|
2892
2892
|
var ne = this.clone().set(w, 1);
|
|
2893
2893
|
ne.$d[ee](se), ne.init(), this.$d = ne.set(w, Math.min(this.$D, ne.daysInMonth())).$d;
|
|
2894
2894
|
} else
|
|
@@ -2907,8 +2907,8 @@ var Lo = { exports: {} };
|
|
|
2907
2907
|
};
|
|
2908
2908
|
if (Y === c)
|
|
2909
2909
|
return this.set(c, this.$M + I);
|
|
2910
|
-
if (Y ===
|
|
2911
|
-
return this.set(
|
|
2910
|
+
if (Y === p)
|
|
2911
|
+
return this.set(p, this.$y + I);
|
|
2912
2912
|
if (Y === l)
|
|
2913
2913
|
return ee(1);
|
|
2914
2914
|
if (Y === f)
|
|
@@ -2991,7 +2991,7 @@ var Lo = { exports: {} };
|
|
|
2991
2991
|
return P.m(Y, se);
|
|
2992
2992
|
};
|
|
2993
2993
|
switch (ee) {
|
|
2994
|
-
case
|
|
2994
|
+
case p:
|
|
2995
2995
|
K = me() / 12;
|
|
2996
2996
|
break;
|
|
2997
2997
|
case c:
|
|
@@ -3040,7 +3040,7 @@ var Lo = { exports: {} };
|
|
|
3040
3040
|
return this.$d.toUTCString();
|
|
3041
3041
|
}, F;
|
|
3042
3042
|
}(), Q = U.prototype;
|
|
3043
|
-
return m.prototype = Q, [["$ms", a], ["$s", s], ["$m", o], ["$H", u], ["$W", l], ["$M", c], ["$y",
|
|
3043
|
+
return m.prototype = Q, [["$ms", a], ["$s", s], ["$m", o], ["$H", u], ["$W", l], ["$M", c], ["$y", p], ["$D", w]].forEach(function(F) {
|
|
3044
3044
|
Q[F[1]] = function(L) {
|
|
3045
3045
|
return this.$g(L, F[0], F[1]);
|
|
3046
3046
|
};
|
|
@@ -3794,9 +3794,9 @@ function Yn(e, t, n, r, i, a) {
|
|
|
3794
3794
|
}
|
|
3795
3795
|
}
|
|
3796
3796
|
a || (a = new Je());
|
|
3797
|
-
var
|
|
3798
|
-
if (
|
|
3799
|
-
return
|
|
3797
|
+
var p = a.get(e);
|
|
3798
|
+
if (p)
|
|
3799
|
+
return p;
|
|
3800
3800
|
a.set(e, s), Bg(e) ? e.forEach(function(b) {
|
|
3801
3801
|
s.add(Yn(b, t, n, b, e, a));
|
|
3802
3802
|
}) : xg(e) && e.forEach(function(b, E) {
|
|
@@ -3842,7 +3842,7 @@ function ls(e, t, n, r, i, a) {
|
|
|
3842
3842
|
var l = a.get(e), f = a.get(t);
|
|
3843
3843
|
if (l && f)
|
|
3844
3844
|
return l == t && f == e;
|
|
3845
|
-
var c = -1, d = !0,
|
|
3845
|
+
var c = -1, d = !0, p = n & Sm ? new pn() : void 0;
|
|
3846
3846
|
for (a.set(e, t), a.set(t, e); ++c < o; ) {
|
|
3847
3847
|
var w = e[c], h = t[c];
|
|
3848
3848
|
if (r)
|
|
@@ -3853,10 +3853,10 @@ function ls(e, t, n, r, i, a) {
|
|
|
3853
3853
|
d = !1;
|
|
3854
3854
|
break;
|
|
3855
3855
|
}
|
|
3856
|
-
if (
|
|
3856
|
+
if (p) {
|
|
3857
3857
|
if (!bm(t, function(E, T) {
|
|
3858
|
-
if (!ss(
|
|
3859
|
-
return
|
|
3858
|
+
if (!ss(p, T) && (w === E || i(w, E, n, r, a)))
|
|
3859
|
+
return p.push(T);
|
|
3860
3860
|
})) {
|
|
3861
3861
|
d = !1;
|
|
3862
3862
|
break;
|
|
@@ -3926,17 +3926,17 @@ function zm(e, t, n, r, i, a) {
|
|
|
3926
3926
|
if (!(s ? d in t : jm.call(t, d)))
|
|
3927
3927
|
return !1;
|
|
3928
3928
|
}
|
|
3929
|
-
var
|
|
3930
|
-
if (
|
|
3931
|
-
return
|
|
3929
|
+
var p = a.get(e), w = a.get(t);
|
|
3930
|
+
if (p && w)
|
|
3931
|
+
return p == t && w == e;
|
|
3932
3932
|
var h = !0;
|
|
3933
3933
|
a.set(e, t), a.set(t, e);
|
|
3934
3934
|
for (var b = s; ++c < u; ) {
|
|
3935
3935
|
d = o[c];
|
|
3936
3936
|
var E = e[d], T = t[d];
|
|
3937
3937
|
if (r)
|
|
3938
|
-
var
|
|
3939
|
-
if (!(
|
|
3938
|
+
var g = s ? r(T, E, d, t, e, a) : r(E, T, d, e, t, a);
|
|
3939
|
+
if (!(g === void 0 ? E === T || i(E, T, n, r, a) : g)) {
|
|
3940
3940
|
h = !1;
|
|
3941
3941
|
break;
|
|
3942
3942
|
}
|
|
@@ -3961,9 +3961,9 @@ function Um(e, t, n, r, i, a) {
|
|
|
3961
3961
|
if (d && !f)
|
|
3962
3962
|
return a || (a = new Je()), s || Ho(e) ? ls(e, t, n, r, i, a) : km(e, t, u, n, r, i, a);
|
|
3963
3963
|
if (!(n & Bm)) {
|
|
3964
|
-
var
|
|
3965
|
-
if (
|
|
3966
|
-
var h =
|
|
3964
|
+
var p = f && xa.call(e, "__wrapped__"), w = c && xa.call(t, "__wrapped__");
|
|
3965
|
+
if (p || w) {
|
|
3966
|
+
var h = p ? e.value() : e, b = w ? t.value() : t;
|
|
3967
3967
|
return a || (a = new Je()), i(h, b, n, r, a);
|
|
3968
3968
|
}
|
|
3969
3969
|
}
|
|
@@ -4114,12 +4114,12 @@ function Fa(e, t, n) {
|
|
|
4114
4114
|
if (typeof e != "function")
|
|
4115
4115
|
throw new TypeError(pv);
|
|
4116
4116
|
t = zr(t) || 0, Ue(n) && (f = !!n.leading, c = "maxWait" in n, a = c ? gv(zr(n.maxWait) || 0, t) : a, d = "trailing" in n ? !!n.trailing : d);
|
|
4117
|
-
function
|
|
4117
|
+
function p(y) {
|
|
4118
4118
|
var v = r, C = i;
|
|
4119
4119
|
return r = i = void 0, l = y, s = e.apply(C, v), s;
|
|
4120
4120
|
}
|
|
4121
4121
|
function w(y) {
|
|
4122
|
-
return l = y, o = setTimeout(E, t), f ?
|
|
4122
|
+
return l = y, o = setTimeout(E, t), f ? p(y) : s;
|
|
4123
4123
|
}
|
|
4124
4124
|
function h(y) {
|
|
4125
4125
|
var v = y - u, C = y - l, O = t - v;
|
|
@@ -4136,9 +4136,9 @@ function Fa(e, t, n) {
|
|
|
4136
4136
|
o = setTimeout(E, h(y));
|
|
4137
4137
|
}
|
|
4138
4138
|
function T(y) {
|
|
4139
|
-
return o = void 0, d && r ?
|
|
4139
|
+
return o = void 0, d && r ? p(y) : (r = i = void 0, s);
|
|
4140
4140
|
}
|
|
4141
|
-
function
|
|
4141
|
+
function g() {
|
|
4142
4142
|
o !== void 0 && clearTimeout(o), l = 0, r = u = i = o = void 0;
|
|
4143
4143
|
}
|
|
4144
4144
|
function S() {
|
|
@@ -4150,11 +4150,11 @@ function Fa(e, t, n) {
|
|
|
4150
4150
|
if (o === void 0)
|
|
4151
4151
|
return w(u);
|
|
4152
4152
|
if (c)
|
|
4153
|
-
return clearTimeout(o), o = setTimeout(E, t),
|
|
4153
|
+
return clearTimeout(o), o = setTimeout(E, t), p(u);
|
|
4154
4154
|
}
|
|
4155
4155
|
return o === void 0 && (o = setTimeout(E, t)), s;
|
|
4156
4156
|
}
|
|
4157
|
-
return _.cancel =
|
|
4157
|
+
return _.cancel = g, _.flush = S, _;
|
|
4158
4158
|
}
|
|
4159
4159
|
function vv(e, t, n) {
|
|
4160
4160
|
for (var r = -1, i = e == null ? 0 : e.length; ++r < i; )
|
|
@@ -4402,25 +4402,25 @@ const yr = Xr(() => {
|
|
|
4402
4402
|
});
|
|
4403
4403
|
(await Promise.allSettled(a)).forEach((o, u) => {
|
|
4404
4404
|
if (o.status === "fulfilled") {
|
|
4405
|
-
const { value: l } = o, { labelKey: f, valueKey: c, childrenKey: d, dataType:
|
|
4405
|
+
const { value: l } = o, { labelKey: f, valueKey: c, childrenKey: d, dataType: p, dataKey: w, groupKey: h } = r[i[u]];
|
|
4406
4406
|
if (l.success) {
|
|
4407
4407
|
const b = pr(l, w || "data"), E = (T) => {
|
|
4408
|
-
Object.prototype.toString.call(T) === "[object Array]" ?
|
|
4408
|
+
Object.prototype.toString.call(T) === "[object Array]" ? p === "Cascader" ? e[i[u]] = T.map((g) => Wr(g, {
|
|
4409
4409
|
[c || "value"]: "value",
|
|
4410
4410
|
[f || "label"]: "label",
|
|
4411
4411
|
[d || "children"]: "children"
|
|
4412
4412
|
})) : e[i[u]] = [
|
|
4413
4413
|
...ze(e[i[u]] || []),
|
|
4414
|
-
...T.map((
|
|
4415
|
-
let S =
|
|
4416
|
-
return Ua.test(f) && (S = f.replace(Ua, (_, y) =>
|
|
4417
|
-
...h ? { group:
|
|
4414
|
+
...T.map((g) => {
|
|
4415
|
+
let S = g[f];
|
|
4416
|
+
return Ua.test(f) && (S = f.replace(Ua, (_, y) => g[y])), {
|
|
4417
|
+
...h ? { group: g[h] } : {},
|
|
4418
4418
|
label: S,
|
|
4419
|
-
value:
|
|
4419
|
+
value: g[c]
|
|
4420
4420
|
};
|
|
4421
4421
|
})
|
|
4422
|
-
] : Object.prototype.toString.call(T) === "[object Object]" && Object.keys(T).forEach((
|
|
4423
|
-
E(T[
|
|
4422
|
+
] : Object.prototype.toString.call(T) === "[object Object]" && Object.keys(T).forEach((g) => {
|
|
4423
|
+
E(T[g]);
|
|
4424
4424
|
});
|
|
4425
4425
|
};
|
|
4426
4426
|
E(b);
|
|
@@ -4466,10 +4466,10 @@ const yr = Xr(() => {
|
|
|
4466
4466
|
return console.warn("Failed to parse style:", C), _;
|
|
4467
4467
|
}
|
|
4468
4468
|
}
|
|
4469
|
-
const c = f(l), d = r.value.filterGroups || [],
|
|
4469
|
+
const c = f(l), d = r.value.filterGroups || [], p = r.value.refEnum || "", w = H(
|
|
4470
4470
|
() => {
|
|
4471
4471
|
var _, y;
|
|
4472
|
-
return ((y = i[
|
|
4472
|
+
return ((y = i[p]) == null ? void 0 : y.filter(
|
|
4473
4473
|
(_ = r.value.filterGroups) != null && _.length ? (v) => d.includes(v.group) : () => !0
|
|
4474
4474
|
)) || [];
|
|
4475
4475
|
}
|
|
@@ -4480,7 +4480,7 @@ const yr = Xr(() => {
|
|
|
4480
4480
|
var C;
|
|
4481
4481
|
const v = r.value.filterKey || "label";
|
|
4482
4482
|
return y[v] || console.warn(`not found key 【${v}】 in option`), ((C = y[v]) == null ? void 0 : C.indexOf(_.toString())) > -1;
|
|
4483
|
-
},
|
|
4483
|
+
}, g = H(() => {
|
|
4484
4484
|
switch (r.value.type) {
|
|
4485
4485
|
case Pr:
|
|
4486
4486
|
return Fa(async function(_) {
|
|
@@ -4532,7 +4532,7 @@ const yr = Xr(() => {
|
|
|
4532
4532
|
{ notFoundContent: Fn === r.value.type ? null : !0 },
|
|
4533
4533
|
Pv
|
|
4534
4534
|
),
|
|
4535
|
-
onSearch:
|
|
4535
|
+
onSearch: g.value,
|
|
4536
4536
|
// for selection components
|
|
4537
4537
|
options: S.value,
|
|
4538
4538
|
// all other props
|
|
@@ -4594,7 +4594,7 @@ const yr = Xr(() => {
|
|
|
4594
4594
|
setup(e, { emit: t, expose: n }) {
|
|
4595
4595
|
const { config: a, immediateQuery: s } = Ge(e), o = Se("pageName", ""), u = H(
|
|
4596
4596
|
() => a.value.length > 6 * 3
|
|
4597
|
-
), l = D(!u.value), { formState: f, dispatchFormState: c } = Cn(), { resetFields: d, validate:
|
|
4597
|
+
), l = D(!u.value), { formState: f, dispatchFormState: c } = Cn(), { resetFields: d, validate: p, validateInfos: w } = Xv(f[o]);
|
|
4598
4598
|
ce(
|
|
4599
4599
|
() => e.defaultQuery,
|
|
4600
4600
|
(T) => {
|
|
@@ -4606,7 +4606,7 @@ const yr = Xr(() => {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
);
|
|
4608
4608
|
const h = () => {
|
|
4609
|
-
|
|
4609
|
+
p().then(() => e.current === 1 ? t("search") : t("update:current", 1)).catch((T) => {
|
|
4610
4610
|
console.log(T);
|
|
4611
4611
|
});
|
|
4612
4612
|
}, b = (T) => T.label.slice(0, 10);
|
|
@@ -4627,14 +4627,14 @@ const yr = Xr(() => {
|
|
|
4627
4627
|
}
|
|
4628
4628
|
});
|
|
4629
4629
|
function Zv(e, t, n, r, i, a) {
|
|
4630
|
-
const s = z("ConditionBuilder"), o = z("Item"), u = z("Col"), l = z("Button"), f = z("UpOutlined"), c = z("DownOutlined"), d = z("Space"),
|
|
4630
|
+
const s = z("ConditionBuilder"), o = z("Item"), u = z("Col"), l = z("Button"), f = z("UpOutlined"), c = z("DownOutlined"), d = z("Space"), p = z("Row"), w = z("Form");
|
|
4631
4631
|
return R(), q(w, {
|
|
4632
4632
|
class: "page-renderer-conditions",
|
|
4633
4633
|
"label-col": { span: 8 },
|
|
4634
4634
|
"wrapper-col": { span: 16 }
|
|
4635
4635
|
}, {
|
|
4636
4636
|
default: k(() => [
|
|
4637
|
-
V(
|
|
4637
|
+
V(p, { gutter: 24 }, {
|
|
4638
4638
|
default: k(() => [
|
|
4639
4639
|
(R(!0), X(de, null, ke(e.config, (h, b) => {
|
|
4640
4640
|
var E;
|
|
@@ -4644,12 +4644,12 @@ function Zv(e, t, n, r, i, a) {
|
|
|
4644
4644
|
class: "conditions-item-col"
|
|
4645
4645
|
}, {
|
|
4646
4646
|
default: k(() => {
|
|
4647
|
-
var T,
|
|
4647
|
+
var T, g;
|
|
4648
4648
|
return [
|
|
4649
4649
|
V(o, rt(e.validateInfos[h.fieldName], {
|
|
4650
4650
|
colon: !1,
|
|
4651
4651
|
"label-col": (T = h.otherProps) == null ? void 0 : T.labelCol,
|
|
4652
|
-
"wrapper-col": (
|
|
4652
|
+
"wrapper-col": (g = h.otherProps) == null ? void 0 : g.wrapperCol,
|
|
4653
4653
|
label: e.getItemLabel(h),
|
|
4654
4654
|
class: {
|
|
4655
4655
|
"form-item-with-small-fonts": e.getItemLabel(h).length > 4,
|
|
@@ -4818,14 +4818,14 @@ const Jv = /* @__PURE__ */ qe(Qv, [["render", Zv]]), On = Xr(() => {
|
|
|
4818
4818
|
}
|
|
4819
4819
|
}
|
|
4820
4820
|
t("buttonClick", m.action, P);
|
|
4821
|
-
},
|
|
4821
|
+
}, p = H({
|
|
4822
4822
|
get: () => n.value,
|
|
4823
4823
|
set: (m) => t("update:current", m)
|
|
4824
4824
|
}), w = H({
|
|
4825
4825
|
get: () => r.value,
|
|
4826
4826
|
set: (m) => {
|
|
4827
4827
|
const P = Math.ceil(e.total / m);
|
|
4828
|
-
|
|
4828
|
+
p.value > P && (p.value = P), t("update:pageSize", m);
|
|
4829
4829
|
}
|
|
4830
4830
|
}), h = Se("paramsGuard", (m) => m), b = (y = i.value) != null && y.url ? it((v = i.value) == null ? void 0 : v.url, "post", {
|
|
4831
4831
|
responseType: "blob",
|
|
@@ -4857,7 +4857,7 @@ const Jv = /* @__PURE__ */ qe(Qv, [["render", Zv]]), On = Xr(() => {
|
|
|
4857
4857
|
} finally {
|
|
4858
4858
|
o.value = !1;
|
|
4859
4859
|
}
|
|
4860
|
-
},
|
|
4860
|
+
}, g = ({ url: m, type: P }) => {
|
|
4861
4861
|
switch (P) {
|
|
4862
4862
|
case "TEMPLATE_LOCAL":
|
|
4863
4863
|
window.open(m);
|
|
@@ -4896,14 +4896,14 @@ const Jv = /* @__PURE__ */ qe(Qv, [["render", Zv]]), On = Xr(() => {
|
|
|
4896
4896
|
SETTINGS_MAP: gs,
|
|
4897
4897
|
importLoading: u,
|
|
4898
4898
|
exportLoading: o,
|
|
4899
|
-
computed_current:
|
|
4899
|
+
computed_current: p,
|
|
4900
4900
|
computed_pageSize: w,
|
|
4901
4901
|
paginationSizeOptions: c,
|
|
4902
4902
|
OPERATIONS_EXPORT_MAP: ny,
|
|
4903
4903
|
handleImport: (m, P) => {
|
|
4904
4904
|
const { type: U } = m;
|
|
4905
4905
|
if (["TEMPLATE_LOCAL"].includes(U)) {
|
|
4906
|
-
|
|
4906
|
+
g(m);
|
|
4907
4907
|
return;
|
|
4908
4908
|
}
|
|
4909
4909
|
if (["IMPORT"].includes(U)) {
|
|
@@ -4919,24 +4919,24 @@ const Jv = /* @__PURE__ */ qe(Qv, [["render", Zv]]), On = Xr(() => {
|
|
|
4919
4919
|
});
|
|
4920
4920
|
const iy = { class: "page-renderer-buttons" }, ay = { class: "page-renderer-buttons-left" }, oy = { key: 2 }, sy = { class: "page-renderer-setting-trigger" }, ly = { href: "javascript:;" };
|
|
4921
4921
|
function uy(e, t, n, r, i, a) {
|
|
4922
|
-
const s = z("aicon"), o = z("MenuItem"), u = z("Menu"), l = z("Space"), f = z("Button"), c = z("Dropdown"), d = z("DownOutlined"),
|
|
4922
|
+
const s = z("aicon"), o = z("MenuItem"), u = z("Menu"), l = z("Space"), f = z("Button"), c = z("Dropdown"), d = z("DownOutlined"), p = z("Pagination"), w = z("Select"), h = z("SettingOutlined"), b = ks("permission");
|
|
4923
4923
|
return R(), X("div", iy, [
|
|
4924
4924
|
Pe("div", ay, [
|
|
4925
4925
|
V(l, null, {
|
|
4926
4926
|
default: k(() => [
|
|
4927
4927
|
(R(!0), X(de, null, ke(e.config, (E, T) => Gr((R(), q(zt(E.type), rt(E.otherProps, {
|
|
4928
4928
|
key: `${E.type}${T}`,
|
|
4929
|
-
onClick: (
|
|
4929
|
+
onClick: (g) => e.handleButtonClick(E, g)
|
|
4930
4930
|
}), no({
|
|
4931
4931
|
overlay: k(() => [
|
|
4932
4932
|
V(u, null, {
|
|
4933
4933
|
default: k(() => [
|
|
4934
|
-
(R(!0), X(de, null, ke(E.sublist, (
|
|
4935
|
-
key:
|
|
4936
|
-
onClick: (S) => e.handleButtonClick(
|
|
4934
|
+
(R(!0), X(de, null, ke(E.sublist, (g) => (R(), q(o, {
|
|
4935
|
+
key: g.action,
|
|
4936
|
+
onClick: (S) => e.handleButtonClick(g, S)
|
|
4937
4937
|
}, {
|
|
4938
4938
|
default: k(() => [
|
|
4939
|
-
be(ye(
|
|
4939
|
+
be(ye(g.children), 1)
|
|
4940
4940
|
]),
|
|
4941
4941
|
_: 2
|
|
4942
4942
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -4979,12 +4979,12 @@ function uy(e, t, n, r, i, a) {
|
|
|
4979
4979
|
overlay: k(() => [
|
|
4980
4980
|
V(u, null, {
|
|
4981
4981
|
default: k(() => [
|
|
4982
|
-
(R(!0), X(de, null, ke(e.importConfig.children, (
|
|
4982
|
+
(R(!0), X(de, null, ke(e.importConfig.children, (g, S) => (R(), q(o, {
|
|
4983
4983
|
key: S,
|
|
4984
|
-
onClick: () => e.handleImport(
|
|
4984
|
+
onClick: () => e.handleImport(g, S)
|
|
4985
4985
|
}, {
|
|
4986
4986
|
default: k(() => [
|
|
4987
|
-
be(ye(
|
|
4987
|
+
be(ye(g.title), 1)
|
|
4988
4988
|
]),
|
|
4989
4989
|
_: 2
|
|
4990
4990
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5027,12 +5027,12 @@ function uy(e, t, n, r, i, a) {
|
|
|
5027
5027
|
overlay: k(() => [
|
|
5028
5028
|
V(u, null, {
|
|
5029
5029
|
default: k(() => [
|
|
5030
|
-
(R(!0), X(de, null, ke(e.importConfig.sublist, (
|
|
5030
|
+
(R(!0), X(de, null, ke(e.importConfig.sublist, (g, S) => (R(), q(o, {
|
|
5031
5031
|
key: S,
|
|
5032
|
-
onClick: () => e.handleImport(
|
|
5032
|
+
onClick: () => e.handleImport(g, S)
|
|
5033
5033
|
}, {
|
|
5034
5034
|
default: k(() => [
|
|
5035
|
-
be(ye(
|
|
5035
|
+
be(ye(g.title), 1)
|
|
5036
5036
|
]),
|
|
5037
5037
|
_: 2
|
|
5038
5038
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5057,12 +5057,12 @@ function uy(e, t, n, r, i, a) {
|
|
|
5057
5057
|
e.exportConfig ? (R(), q(c, { key: 1 }, {
|
|
5058
5058
|
overlay: k(() => [
|
|
5059
5059
|
V(u, {
|
|
5060
|
-
onClick: t[1] || (t[1] = (
|
|
5060
|
+
onClick: t[1] || (t[1] = (g) => e.handleExport(g.key))
|
|
5061
5061
|
}, {
|
|
5062
5062
|
default: k(() => [
|
|
5063
|
-
(R(!0), X(de, null, ke(e.OPERATIONS_EXPORT_MAP, (
|
|
5063
|
+
(R(!0), X(de, null, ke(e.OPERATIONS_EXPORT_MAP, (g, S) => (R(), q(o, { key: S }, {
|
|
5064
5064
|
default: k(() => [
|
|
5065
|
-
be(ye(
|
|
5065
|
+
be(ye(g), 1)
|
|
5066
5066
|
]),
|
|
5067
5067
|
_: 2
|
|
5068
5068
|
}, 1024))), 128))
|
|
@@ -5087,19 +5087,19 @@ function uy(e, t, n, r, i, a) {
|
|
|
5087
5087
|
})) : ge("", !0)
|
|
5088
5088
|
], 64)),
|
|
5089
5089
|
e.hasApiConfig ? (R(), X("div", oy, "共 " + ye(e.total) + " 条", 1)) : ge("", !0),
|
|
5090
|
-
V(
|
|
5090
|
+
V(p, {
|
|
5091
5091
|
class: "operations-pagination-simple",
|
|
5092
5092
|
current: e.computed_current,
|
|
5093
|
-
"onUpdate:current": t[2] || (t[2] = (
|
|
5093
|
+
"onUpdate:current": t[2] || (t[2] = (g) => e.computed_current = g),
|
|
5094
5094
|
pageSize: e.computed_pageSize,
|
|
5095
|
-
"onUpdate:pageSize": t[3] || (t[3] = (
|
|
5095
|
+
"onUpdate:pageSize": t[3] || (t[3] = (g) => e.computed_pageSize = g),
|
|
5096
5096
|
size: "small",
|
|
5097
5097
|
simple: "",
|
|
5098
5098
|
total: e.total
|
|
5099
5099
|
}, null, 8, ["current", "pageSize", "total"]),
|
|
5100
5100
|
V(w, {
|
|
5101
5101
|
value: e.computed_pageSize,
|
|
5102
|
-
"onUpdate:value": t[4] || (t[4] = (
|
|
5102
|
+
"onUpdate:value": t[4] || (t[4] = (g) => e.computed_pageSize = g),
|
|
5103
5103
|
size: "small",
|
|
5104
5104
|
options: e.paginationSizeOptions
|
|
5105
5105
|
}, null, 8, ["value", "options"]),
|
|
@@ -5110,13 +5110,13 @@ function uy(e, t, n, r, i, a) {
|
|
|
5110
5110
|
}, {
|
|
5111
5111
|
overlay: k(() => [
|
|
5112
5112
|
V(u, {
|
|
5113
|
-
onClick: t[5] || (t[5] = (
|
|
5113
|
+
onClick: t[5] || (t[5] = (g) => e.$emit("customizeSetting", g.key))
|
|
5114
5114
|
}, {
|
|
5115
5115
|
default: k(() => [
|
|
5116
|
-
(R(!0), X(de, null, ke(e.SETTINGS_MAP, (
|
|
5116
|
+
(R(!0), X(de, null, ke(e.SETTINGS_MAP, (g, S) => (R(), q(o, { key: S }, {
|
|
5117
5117
|
default: k(() => [
|
|
5118
5118
|
V(h, { style: { "margin-right": "4px" } }),
|
|
5119
|
-
Pe("a", ly, ye(
|
|
5119
|
+
Pe("a", ly, ye(g), 1)
|
|
5120
5120
|
]),
|
|
5121
5121
|
_: 2
|
|
5122
5122
|
}, 1024))), 128))
|
|
@@ -5150,18 +5150,18 @@ const cy = /* @__PURE__ */ qe(ry, [["render", uy]]), fy = Ee({
|
|
|
5150
5150
|
}
|
|
5151
5151
|
},
|
|
5152
5152
|
setup(e, { expose: t }) {
|
|
5153
|
-
const { config: n } = Ge(e), { template: r } = n.value, i = D(!1), { formState: a } = Cn(), s = Se("pageName", ""), o = Se("paramsGuard", (
|
|
5154
|
-
const
|
|
5153
|
+
const { config: n } = Ge(e), { template: r } = n.value, i = D(!1), { formState: a } = Cn(), s = Se("pageName", ""), o = Se("paramsGuard", (p) => p), l = He((() => {
|
|
5154
|
+
const p = /\{\{(.+?)\}\}/g;
|
|
5155
5155
|
let w = {}, h = [];
|
|
5156
|
-
for (; (h =
|
|
5156
|
+
for (; (h = p.exec(r)) !== null; )
|
|
5157
5157
|
w[h[1].trim()] = " - ";
|
|
5158
5158
|
return w;
|
|
5159
5159
|
})()), f = it(n.value.url), c = async () => {
|
|
5160
|
-
const
|
|
5160
|
+
const p = vi({
|
|
5161
5161
|
conditions: a[s],
|
|
5162
5162
|
apiConfig: n.value
|
|
5163
5163
|
});
|
|
5164
|
-
o(
|
|
5164
|
+
o(p, s), i.value = !0, f(p).then((w) => {
|
|
5165
5165
|
Object.keys(l).forEach((h) => {
|
|
5166
5166
|
const b = pr(w, `${n.value.dataKey}.${h}`);
|
|
5167
5167
|
l[h] = gn(b) ? " - " : b;
|
|
@@ -5391,7 +5391,7 @@ te.div = function(e) {
|
|
|
5391
5391
|
throw Error(ms);
|
|
5392
5392
|
if (!r[0])
|
|
5393
5393
|
return e.s = a, e.c = [e.e = 0], e;
|
|
5394
|
-
var o, u, l, f, c, d = i.slice(),
|
|
5394
|
+
var o, u, l, f, c, d = i.slice(), p = o = i.length, w = r.length, h = r.slice(0, o), b = h.length, E = e, T = E.c = [], g = 0, S = s + (E.e = t.e - e.e) + 1;
|
|
5395
5395
|
for (E.s = a, a = S < 0 ? 0 : S, d.unshift(0); b++ < o; )
|
|
5396
5396
|
h.push(0);
|
|
5397
5397
|
do {
|
|
@@ -5418,9 +5418,9 @@ te.div = function(e) {
|
|
|
5418
5418
|
} else
|
|
5419
5419
|
break;
|
|
5420
5420
|
}
|
|
5421
|
-
T[
|
|
5422
|
-
} while ((
|
|
5423
|
-
return !T[0] &&
|
|
5421
|
+
T[g++] = f ? l : ++l, h[0] && f ? h[b] = r[p] || 0 : h = [r[p]];
|
|
5422
|
+
} while ((p++ < w || h[0] !== et) && a--);
|
|
5423
|
+
return !T[0] && g != 1 && (T.shift(), E.e--, S--), g > S && _t(E, S, n.RM, h[0] !== et), E;
|
|
5424
5424
|
};
|
|
5425
5425
|
te.eq = function(e) {
|
|
5426
5426
|
return this.cmp(e) === 0;
|
|
@@ -5667,8 +5667,8 @@ const $y = {
|
|
|
5667
5667
|
});
|
|
5668
5668
|
};
|
|
5669
5669
|
St(r);
|
|
5670
|
-
const { enumerations: i } = yr(), a = D(0), s = "filter_", o = "_index", { config: u, conditions: l, hasApiConfig: f, rowKey: c, data: d, total:
|
|
5671
|
-
}), E = D(), T = D([]),
|
|
5670
|
+
const { enumerations: i } = yr(), a = D(0), s = "filter_", o = "_index", { config: u, conditions: l, hasApiConfig: f, rowKey: c, data: d, total: p } = Ge(e), w = D(null), h = Se("pageName", ""), b = Se("emitHandler", () => {
|
|
5671
|
+
}), E = D(), T = D([]), g = D([]), S = D([]), _ = D([]), y = D({}), v = D([]), { selectedRows: C, selectedRowKeys: O, selectedErrorRowKeys: m } = On();
|
|
5672
5672
|
m[h] || (m[h] = []);
|
|
5673
5673
|
const P = H(() => O[h].length > 0), U = H(() => {
|
|
5674
5674
|
if (f.value)
|
|
@@ -5763,7 +5763,7 @@ const $y = {
|
|
|
5763
5763
|
filterable: Ps,
|
|
5764
5764
|
sortable: Si
|
|
5765
5765
|
} = A;
|
|
5766
|
-
Te === "Link" && T.value.push(j), Te === "HTML" &&
|
|
5766
|
+
Te === "Link" && T.value.push(j), Te === "HTML" && g.value.push(j), $e === "slot" && S.value.push(j), $e === "img" && _.value.push(j), $e === "map" && ft && (y.value[j] = A);
|
|
5767
5767
|
const Ei = j !== "action" && Array.isArray(Fe), Is = Ei ? (
|
|
5768
5768
|
// 目前有表头分组配置时,不渲染表头筛选组件
|
|
5769
5769
|
Fe.map((ht) => ({
|
|
@@ -5826,7 +5826,7 @@ const $y = {
|
|
|
5826
5826
|
}
|
|
5827
5827
|
const De = H(
|
|
5828
5828
|
() => me(v.value).map(
|
|
5829
|
-
(x) => x === o ?
|
|
5829
|
+
(x) => x === o ? p.value.count : p.value[x]
|
|
5830
5830
|
)
|
|
5831
5831
|
), { formState: Oe } = Cn(), { validate: Qe } = Dy(Oe[h]), Ne = () => {
|
|
5832
5832
|
Qe().then(() => e.current === 1 ? n("search") : n("update:current", 1)).catch((x) => {
|
|
@@ -5913,7 +5913,7 @@ const $y = {
|
|
|
5913
5913
|
LOADING_SIGN: jn,
|
|
5914
5914
|
tableWrapper: w,
|
|
5915
5915
|
linkCellKeys: T,
|
|
5916
|
-
htmlCellKeys:
|
|
5916
|
+
htmlCellKeys: g,
|
|
5917
5917
|
slotCellKeys: S,
|
|
5918
5918
|
imgCellKeys: _,
|
|
5919
5919
|
tableCellSlots: F,
|
|
@@ -5958,8 +5958,8 @@ const Ry = {
|
|
|
5958
5958
|
class: "table-summary-cell-text"
|
|
5959
5959
|
}, Ky = /* @__PURE__ */ Pe("span", { class: "table-summary-cell-text" }, "总计", -1), Uy = { class: "table-summary-cell-text" };
|
|
5960
5960
|
function Yy(e, t, n, r, i, a) {
|
|
5961
|
-
var
|
|
5962
|
-
const s = z("a-button"), o = z("a-tooltip"), u = z("ConditionBuilder"), l = z("a-input"), f = z("LoadingOutlined"), c = z("Space"), d = z("TableImageCell"),
|
|
5961
|
+
var g;
|
|
5962
|
+
const s = z("a-button"), o = z("a-tooltip"), u = z("ConditionBuilder"), l = z("a-input"), f = z("LoadingOutlined"), c = z("Space"), d = z("TableImageCell"), p = z("TableCell"), w = z("TableCopyCell"), h = z("a-table-summary-cell"), b = z("a-table-summary-row"), E = z("a-table-summary"), T = z("Table");
|
|
5963
5963
|
return R(), X("div", Ry, [
|
|
5964
5964
|
V(T, {
|
|
5965
5965
|
bordered: "",
|
|
@@ -6072,7 +6072,7 @@ function Yy(e, t, n, r, i, a) {
|
|
|
6072
6072
|
})), null, 16)) : ge("", !0)
|
|
6073
6073
|
], 64)) : e.imgCellKeys.includes(v.dataIndex) ? (R(), X(de, { key: 2 }, [
|
|
6074
6074
|
S ? (R(), q(d, $t(rt({ key: 0 }, { image: S })), null, 16)) : ge("", !0)
|
|
6075
|
-
], 64)) : [...e.linkCellKeys, ...e.keywords, ...e.htmlCellKeys].includes(v.dataIndex) ? (R(), q(
|
|
6075
|
+
], 64)) : [...e.linkCellKeys, ...e.keywords, ...e.htmlCellKeys].includes(v.dataIndex) ? (R(), q(p, $t(rt({ key: 3 }, {
|
|
6076
6076
|
row: _,
|
|
6077
6077
|
copyable: v.copyable,
|
|
6078
6078
|
column: v,
|
|
@@ -6137,7 +6137,7 @@ function Yy(e, t, n, r, i, a) {
|
|
|
6137
6137
|
]),
|
|
6138
6138
|
_: 2
|
|
6139
6139
|
}, [
|
|
6140
|
-
(
|
|
6140
|
+
(g = e.tableProps) != null && g.expandedRowRender ? {
|
|
6141
6141
|
name: "expandedRowRender",
|
|
6142
6142
|
fn: k(({ record: S, index: _, indent: y, expanded: v }) => [
|
|
6143
6143
|
(R(), q(zt(e.tableProps.expandedRowRender.component), $t(js({
|
|
@@ -6191,10 +6191,10 @@ const Hy = {
|
|
|
6191
6191
|
setup(e, { emit: t }) {
|
|
6192
6192
|
const n = vr(), r = yi(), i = fo(e, "visible", t), a = D(!1), s = D([]), o = He({ dataSource: [] });
|
|
6193
6193
|
ce(i, (T) => {
|
|
6194
|
-
T ? o.dataSource = gi(ze(e.columns)).map((
|
|
6195
|
-
...
|
|
6196
|
-
disabled:
|
|
6197
|
-
key:
|
|
6194
|
+
T ? o.dataSource = gi(ze(e.columns)).map((g) => (g.show !== !1 && s.value.push(g.columnKey), {
|
|
6195
|
+
...g,
|
|
6196
|
+
disabled: g.columnKey === "action" || g.fixed !== void 0 || g.disabled,
|
|
6197
|
+
key: g.columnKey,
|
|
6198
6198
|
rowExpandable: !1
|
|
6199
6199
|
})) : (s.value = [], o.dataSource = []);
|
|
6200
6200
|
});
|
|
@@ -6204,8 +6204,8 @@ const Hy = {
|
|
|
6204
6204
|
dataIndex: "title"
|
|
6205
6205
|
}
|
|
6206
6206
|
], l = async () => {
|
|
6207
|
-
const T = ze(s.value), { dataSource:
|
|
6208
|
-
const C = {}, O =
|
|
6207
|
+
const T = ze(s.value), { dataSource: g } = o, { category: S, tab: _ } = n.meta, y = T.map((v) => {
|
|
6208
|
+
const C = {}, O = g.find((m) => m.columnKey === v);
|
|
6209
6209
|
if (C.entityId = O.entityId, C.columnKey = O.columnKey, e.type === "SORT_SETTING") {
|
|
6210
6210
|
const [m, P] = O.columnKey.split("@");
|
|
6211
6211
|
C.columnKey = m, C.sort = P;
|
|
@@ -6225,7 +6225,7 @@ const Hy = {
|
|
|
6225
6225
|
}
|
|
6226
6226
|
}, f = () => i.value = !1, c = ({
|
|
6227
6227
|
disabled: T,
|
|
6228
|
-
selectedKeys:
|
|
6228
|
+
selectedKeys: g,
|
|
6229
6229
|
onItemSelectAll: S,
|
|
6230
6230
|
onItemSelect: _
|
|
6231
6231
|
}) => ({
|
|
@@ -6239,10 +6239,10 @@ const Hy = {
|
|
|
6239
6239
|
onSelect({ key: y }, v) {
|
|
6240
6240
|
_(y, v);
|
|
6241
6241
|
},
|
|
6242
|
-
selectedRowKeys:
|
|
6242
|
+
selectedRowKeys: g
|
|
6243
6243
|
});
|
|
6244
|
-
let d = "",
|
|
6245
|
-
const w = (T,
|
|
6244
|
+
let d = "", p = "";
|
|
6245
|
+
const w = (T, g, S, _) => ({
|
|
6246
6246
|
style: {
|
|
6247
6247
|
cursor: "move"
|
|
6248
6248
|
},
|
|
@@ -6254,7 +6254,7 @@ const Hy = {
|
|
|
6254
6254
|
},
|
|
6255
6255
|
// 开始拖拽
|
|
6256
6256
|
onDragstart: (y) => {
|
|
6257
|
-
(y || window.event).stopPropagation(), d = T.key, document.querySelectorAll(".drag-modal-wrapper .source-table .ant-table-row")[
|
|
6257
|
+
(y || window.event).stopPropagation(), d = T.key, document.querySelectorAll(".drag-modal-wrapper .source-table .ant-table-row")[g].classList.add("source");
|
|
6258
6258
|
},
|
|
6259
6259
|
// 拖动元素经过的元素
|
|
6260
6260
|
onDragover: (y) => {
|
|
@@ -6264,10 +6264,10 @@ const Hy = {
|
|
|
6264
6264
|
onDragenter: (y) => {
|
|
6265
6265
|
(y || window.event).preventDefault();
|
|
6266
6266
|
const C = document.querySelectorAll(".drag-modal-wrapper .ant-table-row");
|
|
6267
|
-
if (o.dataSource[
|
|
6267
|
+
if (o.dataSource[g].disabled)
|
|
6268
6268
|
return;
|
|
6269
6269
|
const O = document.querySelectorAll(".ant-table-row.target");
|
|
6270
|
-
O.length && O[0].classList.remove("target"), C[
|
|
6270
|
+
O.length && O[0].classList.remove("target"), C[g + (o.dataSource.length - s.value.length)].classList.add("target"), p = T.key;
|
|
6271
6271
|
},
|
|
6272
6272
|
// 鼠标松开
|
|
6273
6273
|
onDrop: (y) => {
|
|
@@ -6275,11 +6275,11 @@ const Hy = {
|
|
|
6275
6275
|
const C = document.querySelectorAll(".ant-table-row.target");
|
|
6276
6276
|
C.length && C[0].classList.remove("target");
|
|
6277
6277
|
const O = document.querySelectorAll(".ant-table-row.source");
|
|
6278
|
-
if (O.length && O[0].classList.remove("source"),
|
|
6278
|
+
if (O.length && O[0].classList.remove("source"), p === d)
|
|
6279
6279
|
return;
|
|
6280
6280
|
const m = o.dataSource.slice(), P = m.findIndex((F) => F.key === d), U = m[P];
|
|
6281
6281
|
m.splice(P, 1);
|
|
6282
|
-
const Q = m.findIndex((F) => F.key ===
|
|
6282
|
+
const Q = m.findIndex((F) => F.key === p);
|
|
6283
6283
|
m.splice(Q, 0, U), Object.assign(o, { dataSource: m });
|
|
6284
6284
|
},
|
|
6285
6285
|
onClick: () => {
|
|
@@ -6293,7 +6293,7 @@ const Hy = {
|
|
|
6293
6293
|
const C = s.value.indexOf(y);
|
|
6294
6294
|
C > -1 ? s.value.splice(C, 1) : s.value.push(y);
|
|
6295
6295
|
}
|
|
6296
|
-
}), h = (T,
|
|
6296
|
+
}), h = (T, g, S, _) => ({
|
|
6297
6297
|
onClick: () => {
|
|
6298
6298
|
const { key: y, disabled: v } = T;
|
|
6299
6299
|
v || _(y, !S.includes(y));
|
|
@@ -6308,7 +6308,7 @@ const Hy = {
|
|
|
6308
6308
|
}), b = () => document.querySelector(".page-renderer-wrapper");
|
|
6309
6309
|
return ce(i, (T) => {
|
|
6310
6310
|
T && We(() => {
|
|
6311
|
-
const
|
|
6311
|
+
const g = document.querySelector(".ant-modal-root"), S = g == null ? void 0 : g.querySelector(".ant-modal-header"), _ = g == null ? void 0 : g.querySelector(".ant-modal");
|
|
6312
6312
|
S.style.cursor = "move";
|
|
6313
6313
|
const y = _.currentStyle || window.getComputedStyle(_, null);
|
|
6314
6314
|
S.onmousedown = (v) => {
|
|
@@ -6330,7 +6330,7 @@ const Hy = {
|
|
|
6330
6330
|
state: o,
|
|
6331
6331
|
toKeys: s,
|
|
6332
6332
|
tableColumn: u,
|
|
6333
|
-
handleChange: (T,
|
|
6333
|
+
handleChange: (T, g, S) => {
|
|
6334
6334
|
const _ = T.map((y) => y.split("@")[0]);
|
|
6335
6335
|
if (_.length !== Kv(_).length) {
|
|
6336
6336
|
s.value = T.filter((y) => !S.includes(y)), Ie.warn("同一字段不能同时设置升序和降序!");
|
|
@@ -6389,15 +6389,15 @@ function qy(e, t, n, r, i, a) {
|
|
|
6389
6389
|
"row-key": (c) => c.key,
|
|
6390
6390
|
style: { "justify-content": "center" },
|
|
6391
6391
|
"filter-option": (c, d) => {
|
|
6392
|
-
var
|
|
6393
|
-
return ((
|
|
6392
|
+
var p;
|
|
6393
|
+
return ((p = d.title) == null ? void 0 : p.indexOf(c)) !== -1;
|
|
6394
6394
|
},
|
|
6395
6395
|
onChange: e.handleChange
|
|
6396
6396
|
}, {
|
|
6397
6397
|
children: k(({
|
|
6398
6398
|
direction: c,
|
|
6399
6399
|
selectedKeys: d,
|
|
6400
|
-
disabled:
|
|
6400
|
+
disabled: p,
|
|
6401
6401
|
onItemSelectAll: w,
|
|
6402
6402
|
onItemSelect: h
|
|
6403
6403
|
}) => [
|
|
@@ -6405,7 +6405,7 @@ function qy(e, t, n, r, i, a) {
|
|
|
6405
6405
|
size: "small",
|
|
6406
6406
|
class: zs(c === "right" ? "source-table" : ""),
|
|
6407
6407
|
"row-selection": e.getRowSelection({
|
|
6408
|
-
disabled:
|
|
6408
|
+
disabled: p,
|
|
6409
6409
|
selectedKeys: d,
|
|
6410
6410
|
onItemSelectAll: w,
|
|
6411
6411
|
onItemSelect: h
|
|
@@ -6415,7 +6415,7 @@ function qy(e, t, n, r, i, a) {
|
|
|
6415
6415
|
"data-source": c === "left" ? e.state.dataSource.filter((b) => !e.toKeys.includes(b.key)) : e.state.dataSource.filter((b) => e.toKeys.includes(b.key)),
|
|
6416
6416
|
pagination: !1,
|
|
6417
6417
|
scroll: { y: 300 },
|
|
6418
|
-
style: Hr({ pointerEvents:
|
|
6418
|
+
style: Hr({ pointerEvents: p ? "none" : null }),
|
|
6419
6419
|
"custom-row": (b, E) => c === "left" ? e.customRowLeft(b, E, d, h) : e.customRowRight(b, E, d, h)
|
|
6420
6420
|
}, null, 8, ["class", "row-selection", "columns", "data-source", "style", "custom-row"])
|
|
6421
6421
|
]),
|
|
@@ -6451,7 +6451,7 @@ const Xy = /* @__PURE__ */ qe(Gy, [["render", qy]]), Qy = {}, ys = Symbol("GLOBA
|
|
|
6451
6451
|
};
|
|
6452
6452
|
function Ss(e, t, n) {
|
|
6453
6453
|
let r, i, a, s, o, u, l = 0, f = !1, c = !1, d = !0;
|
|
6454
|
-
const
|
|
6454
|
+
const p = !t && t !== 0 && typeof window.requestAnimationFrame == "function";
|
|
6455
6455
|
if (typeof e != "function")
|
|
6456
6456
|
throw new TypeError("Expected a function");
|
|
6457
6457
|
t = +t || 0, mn(n) && (f = !!n.leading, c = "maxWait" in n, a = c ? Math.max(+n.maxWait || 0, t) : a, d = "trailing" in n ? !!n.trailing : d);
|
|
@@ -6460,10 +6460,10 @@ function Ss(e, t, n) {
|
|
|
6460
6460
|
return r = i = void 0, l = m, s = e.apply(U, P), s;
|
|
6461
6461
|
}
|
|
6462
6462
|
function h(m, P) {
|
|
6463
|
-
return
|
|
6463
|
+
return p ? (window.cancelAnimationFrame(o), window.requestAnimationFrame(m)) : setTimeout(m, P);
|
|
6464
6464
|
}
|
|
6465
6465
|
function b(m) {
|
|
6466
|
-
if (
|
|
6466
|
+
if (p)
|
|
6467
6467
|
return window.cancelAnimationFrame(m);
|
|
6468
6468
|
clearTimeout(m);
|
|
6469
6469
|
}
|
|
@@ -6474,13 +6474,13 @@ function Ss(e, t, n) {
|
|
|
6474
6474
|
const P = m - u, U = m - l, Q = t - P;
|
|
6475
6475
|
return c ? Math.min(Q, a - U) : Q;
|
|
6476
6476
|
}
|
|
6477
|
-
function
|
|
6477
|
+
function g(m) {
|
|
6478
6478
|
const P = m - u, U = m - l;
|
|
6479
6479
|
return u === void 0 || P >= t || P < 0 || c && U >= a;
|
|
6480
6480
|
}
|
|
6481
6481
|
function S() {
|
|
6482
6482
|
const m = Date.now();
|
|
6483
|
-
if (
|
|
6483
|
+
if (g(m))
|
|
6484
6484
|
return _(m);
|
|
6485
6485
|
o = h(S, T(m));
|
|
6486
6486
|
}
|
|
@@ -6497,7 +6497,7 @@ function Ss(e, t, n) {
|
|
|
6497
6497
|
return o !== void 0;
|
|
6498
6498
|
}
|
|
6499
6499
|
function O() {
|
|
6500
|
-
const m = Date.now(), P =
|
|
6500
|
+
const m = Date.now(), P = g(m);
|
|
6501
6501
|
for (var U = arguments.length, Q = new Array(U), F = 0; F < U; F++)
|
|
6502
6502
|
Q[F] = arguments[F];
|
|
6503
6503
|
if (r = Q, i = this, u = m, P) {
|
|
@@ -6551,8 +6551,8 @@ var ob = ut((e, t) => {
|
|
|
6551
6551
|
const a = D(!1), s = D(), o = H(() => r), u = H(() => nt(n)), l = D(e.context.runAsync);
|
|
6552
6552
|
return i || (a.value = !0), yt((f) => {
|
|
6553
6553
|
An(u.value) || (s.value = Ss((c) => c(), u.value, o.value), e.context.runAsync = function() {
|
|
6554
|
-
for (var c = arguments.length, d = new Array(c),
|
|
6555
|
-
d[
|
|
6554
|
+
for (var c = arguments.length, d = new Array(c), p = 0; p < c; p++)
|
|
6555
|
+
d[p] = arguments[p];
|
|
6556
6556
|
return new Promise((w, h) => {
|
|
6557
6557
|
a.value ? (a.value = !1, l.value(...d).then(w).catch(h)) : s.value(() => {
|
|
6558
6558
|
l.value(...d).then(w).catch(h);
|
|
@@ -6580,14 +6580,14 @@ var ob = ut((e, t) => {
|
|
|
6580
6580
|
}, f = H(() => {
|
|
6581
6581
|
if (o.value)
|
|
6582
6582
|
return o.value;
|
|
6583
|
-
const
|
|
6584
|
-
return
|
|
6583
|
+
const p = 1e3, w = 1, h = 9, b = Math.floor(Math.random() * 2 ** Math.min(a.value, h) + w);
|
|
6584
|
+
return p * b;
|
|
6585
6585
|
}), c = () => {
|
|
6586
|
-
let
|
|
6586
|
+
let p;
|
|
6587
6587
|
const w = s.value === -1, h = a.value < s.value;
|
|
6588
|
-
return (w || h) && (w || (a.value += 1),
|
|
6588
|
+
return (w || h) && (w || (a.value += 1), p = setTimeout(() => {
|
|
6589
6589
|
u = !0, e.context.refresh();
|
|
6590
|
-
}, f.value)), () =>
|
|
6590
|
+
}, f.value)), () => p && clearTimeout(p);
|
|
6591
6591
|
}, d = () => {
|
|
6592
6592
|
i.value && i.value();
|
|
6593
6593
|
};
|
|
@@ -6647,9 +6647,9 @@ var ob = ut((e, t) => {
|
|
|
6647
6647
|
i.value = ab((l) => l(), a.value, s.value), e.context.runAsync = function() {
|
|
6648
6648
|
for (var l = arguments.length, f = new Array(l), c = 0; c < l; c++)
|
|
6649
6649
|
f[c] = arguments[c];
|
|
6650
|
-
return new Promise((d,
|
|
6650
|
+
return new Promise((d, p) => {
|
|
6651
6651
|
i.value(() => {
|
|
6652
|
-
o.value(...f).then(d).catch(
|
|
6652
|
+
o.value(...f).then(d).catch(p);
|
|
6653
6653
|
});
|
|
6654
6654
|
});
|
|
6655
6655
|
}, u(() => {
|
|
@@ -6680,12 +6680,12 @@ const fb = (e, t) => (n) => {
|
|
|
6680
6680
|
onError: o,
|
|
6681
6681
|
onBefore: u,
|
|
6682
6682
|
onAfter: l
|
|
6683
|
-
} = t, f = D((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1), c = tn((i = n == null ? void 0 : n.data) !== null && i !== void 0 ? i : a), d = tn(n == null ? void 0 : n.error),
|
|
6683
|
+
} = t, f = D((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1), c = tn((i = n == null ? void 0 : n.data) !== null && i !== void 0 ? i : a), d = tn(n == null ? void 0 : n.error), p = D(n == null ? void 0 : n.params), w = D([]), h = tn("pending"), b = {}, E = fb({
|
|
6684
6684
|
status: h,
|
|
6685
6685
|
loading: f,
|
|
6686
6686
|
data: c,
|
|
6687
6687
|
error: d,
|
|
6688
|
-
params:
|
|
6688
|
+
params: p
|
|
6689
6689
|
}, []), T = function(S) {
|
|
6690
6690
|
for (var _ = arguments.length, y = new Array(_ > 1 ? _ - 1 : 0), v = 1; v < _; v++)
|
|
6691
6691
|
y[v - 1] = arguments[v];
|
|
@@ -6701,7 +6701,7 @@ const fb = (e, t) => (n) => {
|
|
|
6701
6701
|
});
|
|
6702
6702
|
return Object.assign({}, ...C);
|
|
6703
6703
|
}
|
|
6704
|
-
},
|
|
6704
|
+
}, g = D(0);
|
|
6705
6705
|
return b.runAsync = async function() {
|
|
6706
6706
|
for (var S = arguments.length, _ = new Array(S), y = 0; y < S; y++)
|
|
6707
6707
|
_[y] = arguments[y];
|
|
@@ -6709,8 +6709,8 @@ const fb = (e, t) => (n) => {
|
|
|
6709
6709
|
loading: !0,
|
|
6710
6710
|
params: _,
|
|
6711
6711
|
status: "pending"
|
|
6712
|
-
}),
|
|
6713
|
-
const v =
|
|
6712
|
+
}), g.value += 1;
|
|
6713
|
+
const v = g.value, {
|
|
6714
6714
|
isBreak: C,
|
|
6715
6715
|
breakResult: O = Ir()
|
|
6716
6716
|
} = T("onBefore", _);
|
|
@@ -6720,38 +6720,38 @@ const fb = (e, t) => (n) => {
|
|
|
6720
6720
|
}), O;
|
|
6721
6721
|
u == null || u(_);
|
|
6722
6722
|
try {
|
|
6723
|
-
const m = () => new Promise((Q) => Q(e(...
|
|
6723
|
+
const m = () => new Promise((Q) => Q(e(...p.value)));
|
|
6724
6724
|
let {
|
|
6725
6725
|
servicePromise: P
|
|
6726
6726
|
} = T("onQuery", m);
|
|
6727
6727
|
P || (P = m());
|
|
6728
6728
|
const U = await P;
|
|
6729
|
-
return v !==
|
|
6729
|
+
return v !== g.value ? Ir() : (E({
|
|
6730
6730
|
data: U,
|
|
6731
6731
|
loading: !1,
|
|
6732
6732
|
error: void 0,
|
|
6733
6733
|
status: "settled"
|
|
6734
|
-
}), T("onSuccess", U, _), s == null || s(U, _), v ===
|
|
6734
|
+
}), T("onSuccess", U, _), s == null || s(U, _), v === g.value && T("onAfter", _, U, void 0), l == null || l(_), U);
|
|
6735
6735
|
} catch (m) {
|
|
6736
|
-
if (v !==
|
|
6736
|
+
if (v !== g.value)
|
|
6737
6737
|
return Ir();
|
|
6738
6738
|
throw E({
|
|
6739
6739
|
loading: !1,
|
|
6740
6740
|
error: m,
|
|
6741
6741
|
status: "settled"
|
|
6742
|
-
}), T("onError", m, _), o == null || o(m, _), v ===
|
|
6742
|
+
}), T("onError", m, _), o == null || o(m, _), v === g.value && T("onAfter", _, void 0, m), l == null || l(_), m;
|
|
6743
6743
|
}
|
|
6744
6744
|
}, b.run = function() {
|
|
6745
6745
|
b.runAsync(...arguments).catch((S) => {
|
|
6746
6746
|
o || console.error(S);
|
|
6747
6747
|
});
|
|
6748
6748
|
}, b.cancel = () => {
|
|
6749
|
-
|
|
6749
|
+
g.value += 1, E({
|
|
6750
6750
|
loading: !1
|
|
6751
6751
|
}), T("onCancel");
|
|
6752
6752
|
}, b.refresh = () => {
|
|
6753
|
-
b.run(...
|
|
6754
|
-
}, b.refreshAsync = () => b.runAsync(...
|
|
6753
|
+
b.run(...p.value || []);
|
|
6754
|
+
}, b.refreshAsync = () => b.runAsync(...p.value || []), b.mutate = (S) => {
|
|
6755
6755
|
const _ = bi(S) ? S(c.value) : S, y = nb(_);
|
|
6756
6756
|
E({
|
|
6757
6757
|
data: y
|
|
@@ -6761,7 +6761,7 @@ const fb = (e, t) => (n) => {
|
|
|
6761
6761
|
loading: f,
|
|
6762
6762
|
data: c,
|
|
6763
6763
|
error: d,
|
|
6764
|
-
params:
|
|
6764
|
+
params: p,
|
|
6765
6765
|
plugins: w,
|
|
6766
6766
|
context: b
|
|
6767
6767
|
};
|
|
@@ -6818,36 +6818,36 @@ var bb = ut((e, t) => {
|
|
|
6818
6818
|
const o = bi(n) ? n : () => n, u = D(() => {
|
|
6819
6819
|
});
|
|
6820
6820
|
let l;
|
|
6821
|
-
const f = (E) => a ? a(E) : rb(E), c = (E, T,
|
|
6822
|
-
s ? s(E,
|
|
6823
|
-
}, d = (E) => i === -1 || E + i > (/* @__PURE__ */ new Date()).getTime(),
|
|
6821
|
+
const f = (E) => a ? a(E) : rb(E), c = (E, T, g) => {
|
|
6822
|
+
s ? s(E, g) : ib(E, T, g), vb(E, g.data);
|
|
6823
|
+
}, d = (E) => i === -1 || E + i > (/* @__PURE__ */ new Date()).getTime(), p = (E, T) => Object.prototype.hasOwnProperty.call(E, T), w = (E) => {
|
|
6824
6824
|
const T = o(E);
|
|
6825
|
-
return yb(T, (
|
|
6826
|
-
e.data.value =
|
|
6825
|
+
return yb(T, (g) => {
|
|
6826
|
+
e.data.value = g;
|
|
6827
6827
|
});
|
|
6828
6828
|
}, h = o(), b = f(h);
|
|
6829
|
-
return b &&
|
|
6829
|
+
return b && p(b, "data") && (e.data.value = b.data, e.params.value = b.params), h && (u.value = w()), yn(() => {
|
|
6830
6830
|
u.value();
|
|
6831
6831
|
}), {
|
|
6832
6832
|
onBefore(E) {
|
|
6833
|
-
const T = o(E),
|
|
6834
|
-
if (!
|
|
6833
|
+
const T = o(E), g = f(T);
|
|
6834
|
+
if (!g || !p(g, "data"))
|
|
6835
6835
|
return {};
|
|
6836
|
-
if (d(
|
|
6837
|
-
return e.data.value =
|
|
6836
|
+
if (d(g.time))
|
|
6837
|
+
return e.data.value = g.data, e.loading.value = !1, {
|
|
6838
6838
|
isBreak: !0,
|
|
6839
|
-
breakResult:
|
|
6839
|
+
breakResult: g.data
|
|
6840
6840
|
};
|
|
6841
|
-
e.data.value =
|
|
6841
|
+
e.data.value = g.data;
|
|
6842
6842
|
},
|
|
6843
6843
|
onQuery(E) {
|
|
6844
|
-
const T = e.params.value,
|
|
6845
|
-
let S = mb(
|
|
6846
|
-
return S && S !== l ? () => S : (S = E(), l = S, gb(
|
|
6844
|
+
const T = e.params.value, g = o(T);
|
|
6845
|
+
let S = mb(g);
|
|
6846
|
+
return S && S !== l ? () => S : (S = E(), l = S, gb(g, S), () => S);
|
|
6847
6847
|
},
|
|
6848
6848
|
onSuccess(E, T) {
|
|
6849
|
-
const
|
|
6850
|
-
|
|
6849
|
+
const g = o(T);
|
|
6850
|
+
g && (u.value(), c(g, r, {
|
|
6851
6851
|
data: E,
|
|
6852
6852
|
params: T,
|
|
6853
6853
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
@@ -6903,13 +6903,13 @@ var Sb = ut((e, t) => {
|
|
|
6903
6903
|
u = wb(s.value + a.value);
|
|
6904
6904
|
const c = async () => {
|
|
6905
6905
|
try {
|
|
6906
|
-
const
|
|
6907
|
-
return Dr() - o <= a.value && u.cancel(), Promise.resolve(
|
|
6908
|
-
} catch (
|
|
6909
|
-
return Dr() - o <= a.value && u.cancel(), Promise.reject(
|
|
6906
|
+
const p = await f();
|
|
6907
|
+
return Dr() - o <= a.value && u.cancel(), Promise.resolve(p);
|
|
6908
|
+
} catch (p) {
|
|
6909
|
+
return Dr() - o <= a.value && u.cancel(), Promise.reject(p);
|
|
6910
6910
|
}
|
|
6911
|
-
}, d = Promise.allSettled([c(), u]).then((
|
|
6912
|
-
const w =
|
|
6911
|
+
}, d = Promise.allSettled([c(), u]).then((p) => {
|
|
6912
|
+
const w = p[0];
|
|
6913
6913
|
return w.status === "fulfilled" ? w.value : Promise.reject(w.reason);
|
|
6914
6914
|
});
|
|
6915
6915
|
return () => d;
|
|
@@ -6960,7 +6960,7 @@ var Eb = ut((e, t) => {
|
|
|
6960
6960
|
// pollingWhenHidden = true or pollingWhenHidden = false and document is visibility
|
|
6961
6961
|
(r || ws()) && // pollingWhenOffline = true or pollingWhenOffline = false and is online
|
|
6962
6962
|
(i || tb())
|
|
6963
|
-
),
|
|
6963
|
+
), p = (h) => {
|
|
6964
6964
|
if (e.error.value && l.value !== 0)
|
|
6965
6965
|
return;
|
|
6966
6966
|
let b;
|
|
@@ -6976,7 +6976,7 @@ var Eb = ut((e, t) => {
|
|
|
6976
6976
|
o.value && d() && (e.context.refresh(), o.value = !1);
|
|
6977
6977
|
};
|
|
6978
6978
|
return ce(u, () => {
|
|
6979
|
-
s.value && (s.value(), s.value =
|
|
6979
|
+
s.value && (s.value(), s.value = p(() => e.context.refresh()));
|
|
6980
6980
|
}), r || c(tr("VISIBLE_LISTENER", w)), i || c(tr("RECONNECT_LISTENER", w)), yn(() => {
|
|
6981
6981
|
f.forEach((h) => h());
|
|
6982
6982
|
}), {
|
|
@@ -6989,7 +6989,7 @@ var Eb = ut((e, t) => {
|
|
|
6989
6989
|
(h = s.value) === null || h === void 0 || h.call(s);
|
|
6990
6990
|
},
|
|
6991
6991
|
onAfter() {
|
|
6992
|
-
s.value =
|
|
6992
|
+
s.value = p(() => e.context.refresh());
|
|
6993
6993
|
}
|
|
6994
6994
|
};
|
|
6995
6995
|
});
|
|
@@ -7046,14 +7046,14 @@ function Ha(e) {
|
|
|
7046
7046
|
}, a), {
|
|
7047
7047
|
data: c,
|
|
7048
7048
|
params: d,
|
|
7049
|
-
run:
|
|
7049
|
+
run: p,
|
|
7050
7050
|
...w
|
|
7051
7051
|
} = Ob(e, f), h = (v) => {
|
|
7052
7052
|
const [C, ...O] = d.value || [], P = [{
|
|
7053
7053
|
...C,
|
|
7054
7054
|
...v
|
|
7055
7055
|
}, ...O];
|
|
7056
|
-
|
|
7056
|
+
p(...P);
|
|
7057
7057
|
}, b = (v) => {
|
|
7058
7058
|
h({
|
|
7059
7059
|
[s]: v
|
|
@@ -7067,7 +7067,7 @@ function Ha(e) {
|
|
|
7067
7067
|
[s]: v,
|
|
7068
7068
|
[o]: C
|
|
7069
7069
|
});
|
|
7070
|
-
},
|
|
7070
|
+
}, g = H(() => Va(c.value, u, 0)), S = H({
|
|
7071
7071
|
get: () => {
|
|
7072
7072
|
var v, C, O;
|
|
7073
7073
|
return (
|
|
@@ -7089,15 +7089,15 @@ function Ha(e) {
|
|
|
7089
7089
|
set: (v) => {
|
|
7090
7090
|
E(v);
|
|
7091
7091
|
}
|
|
7092
|
-
}), y = H(() => Va(c.value, l, Math.ceil(
|
|
7092
|
+
}), y = H(() => Va(c.value, l, Math.ceil(g.value / _.value)));
|
|
7093
7093
|
return {
|
|
7094
7094
|
data: c,
|
|
7095
7095
|
params: d,
|
|
7096
7096
|
current: S,
|
|
7097
7097
|
pageSize: _,
|
|
7098
|
-
total:
|
|
7098
|
+
total: g,
|
|
7099
7099
|
totalPage: y,
|
|
7100
|
-
run:
|
|
7100
|
+
run: p,
|
|
7101
7101
|
changeCurrent: b,
|
|
7102
7102
|
changePageSize: E,
|
|
7103
7103
|
changePagination: T,
|
|
@@ -7129,7 +7129,7 @@ const Ga = "COLUMN_SCHEME", qa = {
|
|
|
7129
7129
|
}
|
|
7130
7130
|
},
|
|
7131
7131
|
setup(e, { expose: t }) {
|
|
7132
|
-
const n = vr(), { page: r } = Ge(e), { apiConfig: i, buttons: a, data: s, page_size_options: o } = r.value, u = D(r.value.total), l = D(i == null ? void 0 : i.summary), f = D(s), c = D(s), d = D({}),
|
|
7132
|
+
const n = vr(), { page: r } = Ge(e), { apiConfig: i, buttons: a, data: s, page_size_options: o } = r.value, u = D(r.value.total), l = D(i == null ? void 0 : i.summary), f = D(s), c = D(s), d = D({}), p = D(!1), w = D(!1), h = D([]), b = D([]), E = D(), T = D(), g = D(), S = {
|
|
7133
7133
|
导入: T,
|
|
7134
7134
|
导出: E
|
|
7135
7135
|
}, _ = H(() => ({
|
|
@@ -7199,7 +7199,7 @@ const Ga = "COLUMN_SCHEME", qa = {
|
|
|
7199
7199
|
onSuccess($) {
|
|
7200
7200
|
u.value = $.data.page.total, f.value = $.data.page.data, P($.data.page.enumerations);
|
|
7201
7201
|
}
|
|
7202
|
-
}),
|
|
7202
|
+
}), g.value = it(
|
|
7203
7203
|
`/duckbill-data-query-server/data/export/${n.meta.category}`,
|
|
7204
7204
|
"post",
|
|
7205
7205
|
{
|
|
@@ -7257,7 +7257,7 @@ const Ga = "COLUMN_SCHEME", qa = {
|
|
|
7257
7257
|
}
|
|
7258
7258
|
$ = Oe[e.page.name];
|
|
7259
7259
|
}
|
|
7260
|
-
const { category: B, tab: j } = n.meta, Te = await
|
|
7260
|
+
const { category: B, tab: j } = n.meta, Te = await g.value({
|
|
7261
7261
|
category: B,
|
|
7262
7262
|
tab: j,
|
|
7263
7263
|
fetchMode: "BODY",
|
|
@@ -7387,7 +7387,7 @@ const Ga = "COLUMN_SCHEME", qa = {
|
|
|
7387
7387
|
summaryBar: Q,
|
|
7388
7388
|
sortedColumns: K,
|
|
7389
7389
|
columnSettingState: N,
|
|
7390
|
-
columnSettingVisible:
|
|
7390
|
+
columnSettingVisible: p,
|
|
7391
7391
|
handleSearch: Ze,
|
|
7392
7392
|
handleExport: ct,
|
|
7393
7393
|
resetSearch: qt,
|
|
@@ -7400,7 +7400,7 @@ const Ga = "COLUMN_SCHEME", qa = {
|
|
|
7400
7400
|
}
|
|
7401
7401
|
});
|
|
7402
7402
|
function Ab(e, t, n, r, i, a) {
|
|
7403
|
-
var c;
|
|
7403
|
+
var c, d;
|
|
7404
7404
|
const s = z("Conditions"), o = z("Operations"), u = z("SummaryBar"), l = z("TableView"), f = z("ColumnSettingModal");
|
|
7405
7405
|
return e.loaded ? (R(), X(de, { key: 0 }, [
|
|
7406
7406
|
V(s, {
|
|
@@ -7410,9 +7410,9 @@ function Ab(e, t, n, r, i, a) {
|
|
|
7410
7410
|
searching: e.paginationQuery.loading,
|
|
7411
7411
|
"immediate-query": !!e.apiConfig,
|
|
7412
7412
|
current: e.current,
|
|
7413
|
-
"onUpdate:current": t[0] || (t[0] = (
|
|
7413
|
+
"onUpdate:current": t[0] || (t[0] = (p) => e.current = p),
|
|
7414
7414
|
sorts: e.sorts,
|
|
7415
|
-
"onUpdate:sorts": t[1] || (t[1] = (
|
|
7415
|
+
"onUpdate:sorts": t[1] || (t[1] = (p) => e.sorts = p),
|
|
7416
7416
|
onSearch: e.handleSearch,
|
|
7417
7417
|
onResetSearch: e.resetSearch,
|
|
7418
7418
|
onChangeExpand: e.resizeTableHeight
|
|
@@ -7426,9 +7426,9 @@ function Ab(e, t, n, r, i, a) {
|
|
|
7426
7426
|
"page-size-options": e.page.page_size_options,
|
|
7427
7427
|
"handle-export": e.handleExport,
|
|
7428
7428
|
pageSize: e.pageSize,
|
|
7429
|
-
"onUpdate:pageSize": t[2] || (t[2] = (
|
|
7429
|
+
"onUpdate:pageSize": t[2] || (t[2] = (p) => e.pageSize = p),
|
|
7430
7430
|
current: e.current,
|
|
7431
|
-
"onUpdate:current": t[3] || (t[3] = (
|
|
7431
|
+
"onUpdate:current": t[3] || (t[3] = (p) => e.current = p),
|
|
7432
7432
|
onRefresh: e.handleSearch,
|
|
7433
7433
|
onButtonClick: e.handleEmitAction,
|
|
7434
7434
|
onCustomizeSetting: e.handleCustomizeSetting
|
|
@@ -7440,7 +7440,7 @@ function Ab(e, t, n, r, i, a) {
|
|
|
7440
7440
|
}, null, 8, ["config"])) : Lt(e.$slots, "summaryBar", { key: 1 }),
|
|
7441
7441
|
V(l, {
|
|
7442
7442
|
ref: "tableView",
|
|
7443
|
-
"table-props": e.config.table,
|
|
7443
|
+
"table-props": (d = e.config) == null ? void 0 : d.table,
|
|
7444
7444
|
config: e.sortedColumns,
|
|
7445
7445
|
conditions: e.page.conditions,
|
|
7446
7446
|
"row-key": e.rowKey,
|
|
@@ -7450,16 +7450,16 @@ function Ab(e, t, n, r, i, a) {
|
|
|
7450
7450
|
loading: e.paginationQuery.loading,
|
|
7451
7451
|
total: e.pageTotal,
|
|
7452
7452
|
current: e.current,
|
|
7453
|
-
"onUpdate:current": t[4] || (t[4] = (
|
|
7453
|
+
"onUpdate:current": t[4] || (t[4] = (p) => e.current = p),
|
|
7454
7454
|
sorts: e.sorts,
|
|
7455
|
-
"onUpdate:sorts": t[5] || (t[5] = (
|
|
7455
|
+
"onUpdate:sorts": t[5] || (t[5] = (p) => e.sorts = p),
|
|
7456
7456
|
onFilter: e.headerFilterHandle,
|
|
7457
7457
|
onSearch: e.handleSearch,
|
|
7458
7458
|
onLinkClick: e.handleEmitAction
|
|
7459
7459
|
}, null, 8, ["table-props", "config", "conditions", "row-key", "row-dblclick-action", "data", "has-api-config", "loading", "total", "current", "sorts", "onFilter", "onSearch", "onLinkClick"]),
|
|
7460
7460
|
V(f, {
|
|
7461
7461
|
visible: e.columnSettingState.visible,
|
|
7462
|
-
"onUpdate:visible": t[6] || (t[6] = (
|
|
7462
|
+
"onUpdate:visible": t[6] || (t[6] = (p) => e.columnSettingState.visible = p),
|
|
7463
7463
|
type: e.columnSettingState.type,
|
|
7464
7464
|
title: e.columnSettingState.title,
|
|
7465
7465
|
columns: e.columnSettingState.columns,
|
|
@@ -7531,8 +7531,8 @@ const Ib = /* @__PURE__ */ qe($b, [["render", Pb]]), Db = (e) => ({
|
|
|
7531
7531
|
if (!o)
|
|
7532
7532
|
return;
|
|
7533
7533
|
let u = !1, l = 0;
|
|
7534
|
-
i.forEach((
|
|
7535
|
-
a.includes(
|
|
7534
|
+
i.forEach((p) => {
|
|
7535
|
+
a.includes(p) && l++;
|
|
7536
7536
|
}), s.all ? u = l === o : u = l > 0, u || (d = t.parentNode) == null || d.removeChild(t);
|
|
7537
7537
|
}
|
|
7538
7538
|
}), Nb = () => Vt().appContext, Rb = () => {
|
|
@@ -7809,11 +7809,11 @@ const Kb = Bb, [Ub] = wn("page-renderer"), Yb = Ee({
|
|
|
7809
7809
|
},
|
|
7810
7810
|
setup(e, { expose: t }) {
|
|
7811
7811
|
var v;
|
|
7812
|
-
const n = vr(), r = D(null), i = D(null), a = D(""), s = D(null), o = D(null), u = D([]), l = D(), f = { title: "", component: null }, { selectedErrorRowKeys: c } = On(), d = tn(f),
|
|
7812
|
+
const n = vr(), r = D(null), i = D(null), a = D(""), s = D(null), o = D(null), u = D([]), l = D(), f = { title: "", component: null }, { selectedErrorRowKeys: c } = On(), d = tn(f), p = D(e.options);
|
|
7813
7813
|
ce(
|
|
7814
7814
|
() => e.options,
|
|
7815
7815
|
(C) => {
|
|
7816
|
-
|
|
7816
|
+
p.value = C;
|
|
7817
7817
|
}
|
|
7818
7818
|
);
|
|
7819
7819
|
const w = D(!1), h = Se(
|
|
@@ -7850,14 +7850,14 @@ const Kb = Bb, [Ub] = wn("page-renderer"), Yb = Ee({
|
|
|
7850
7850
|
sorts: {},
|
|
7851
7851
|
filters: {}
|
|
7852
7852
|
});
|
|
7853
|
-
|
|
7853
|
+
p.value = m.data;
|
|
7854
7854
|
} catch {
|
|
7855
7855
|
Ie.error("页面配置请求失败!");
|
|
7856
7856
|
} finally {
|
|
7857
7857
|
w.value = !1;
|
|
7858
7858
|
}
|
|
7859
7859
|
}
|
|
7860
|
-
},
|
|
7860
|
+
}, g = {
|
|
7861
7861
|
locale: Kb,
|
|
7862
7862
|
transformCellText: ({
|
|
7863
7863
|
text: C,
|
|
@@ -7880,10 +7880,10 @@ const Kb = Bb, [Ub] = wn("page-renderer"), Yb = Ee({
|
|
|
7880
7880
|
try {
|
|
7881
7881
|
L(P, (I) => {
|
|
7882
7882
|
var M;
|
|
7883
|
-
const N = (M =
|
|
7883
|
+
const N = (M = p.value.page) == null ? void 0 : M.rowKey;
|
|
7884
7884
|
N && I.forEach((K) => {
|
|
7885
7885
|
var Y;
|
|
7886
|
-
K[N] && c[(Y =
|
|
7886
|
+
K[N] && c[(Y = p.value.page) == null ? void 0 : Y.name].push(K[N]);
|
|
7887
7887
|
});
|
|
7888
7888
|
}).finally(() => {
|
|
7889
7889
|
setTimeout(() => {
|
|
@@ -7896,10 +7896,10 @@ const Kb = Bb, [Ub] = wn("page-renderer"), Yb = Ee({
|
|
|
7896
7896
|
} else
|
|
7897
7897
|
(((F = e.customEvent) == null ? void 0 : F[C]) || (() => Promise.resolve()))(P, (I) => {
|
|
7898
7898
|
var M;
|
|
7899
|
-
const N = (M =
|
|
7899
|
+
const N = (M = p.value.page) == null ? void 0 : M.rowKey;
|
|
7900
7900
|
N && I.forEach((K) => {
|
|
7901
7901
|
var Y;
|
|
7902
|
-
K[N] && c[(Y =
|
|
7902
|
+
K[N] && c[(Y = p.value.page) == null ? void 0 : Y.name].push(K[N]);
|
|
7903
7903
|
});
|
|
7904
7904
|
}).then((I) => {
|
|
7905
7905
|
var N;
|
|
@@ -7916,14 +7916,14 @@ const Kb = Bb, [Ub] = wn("page-renderer"), Yb = Ee({
|
|
|
7916
7916
|
return {
|
|
7917
7917
|
basic: (C = r.value) == null ? void 0 : C.run(),
|
|
7918
7918
|
tabs: (O = i.value) == null ? void 0 : O.run(a.value)
|
|
7919
|
-
}[
|
|
7919
|
+
}[p.value.type];
|
|
7920
7920
|
};
|
|
7921
7921
|
return t({ run: _, resetSearch: () => {
|
|
7922
7922
|
var C, O;
|
|
7923
7923
|
return {
|
|
7924
7924
|
basic: (C = r.value) == null ? void 0 : C.resetSearch(),
|
|
7925
7925
|
tabs: (O = i.value) == null ? void 0 : O.resetSearch(a.value)
|
|
7926
|
-
}[
|
|
7926
|
+
}[p.value.type];
|
|
7927
7927
|
} }), {
|
|
7928
7928
|
run: _,
|
|
7929
7929
|
rows: u,
|
|
@@ -7934,8 +7934,8 @@ const Kb = Bb, [Ub] = wn("page-renderer"), Yb = Ee({
|
|
|
7934
7934
|
extraData: l,
|
|
7935
7935
|
activePageName: a,
|
|
7936
7936
|
currentComponent: d,
|
|
7937
|
-
getPopupContainer:
|
|
7938
|
-
rendererOptions:
|
|
7937
|
+
getPopupContainer: g,
|
|
7938
|
+
rendererOptions: p
|
|
7939
7939
|
};
|
|
7940
7940
|
}
|
|
7941
7941
|
}), Vb = { class: "page-renderer-wrapper" };
|