@yzsf2e/render-core 1.0.2-alpha.83 → 1.0.2-alpha.85
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 +270 -266
- package/dist/render-core.umd.js +3 -3
- package/package.json +1 -1
package/dist/render-core.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as Oe, ref as D, computed as G, createVNode as W, mergeProps as Ge, openBlock as k, createBlock as X, resolveDynamicComponent as Bt, effectScope as xs, unref as Kn, isRef as so, toRefs as Xe, customRef as Fs, onMounted as Ct, nextTick as xe, getCurrentScope as js, onScopeDispose as zs, readonly as Bs, getCurrentInstance as Et, watch as ne, shallowRef as nn, resolveComponent as U, withCtx as
|
|
1
|
+
import { defineComponent as Oe, ref as D, computed as G, createVNode as W, mergeProps as Ge, openBlock as k, createBlock as X, resolveDynamicComponent as Bt, effectScope as xs, unref as Kn, isRef as so, toRefs as Xe, customRef as Fs, onMounted as Ct, nextTick as xe, getCurrentScope as js, onScopeDispose as zs, readonly as Bs, getCurrentInstance as Et, watch as ne, shallowRef as nn, resolveComponent as U, withCtx as F, createElementBlock as Z, Fragment as he, createTextVNode as be, toDisplayString as we, renderSlot as Lt, createElementVNode as Ae, createCommentVNode as ge, reactive as Ue, onUnmounted as wn, watchEffect as bt, normalizeStyle as ti, renderList as Me, createApp as Ks, toRaw as ke, inject as Ce, h as Ye, withDirectives as ni, vShow as lo, withModifiers as uo, resolveDirective as Us, createSlots as co, onRenderTriggered as Ys, isVNode as Vs, normalizeClass as fo, normalizeProps as It, guardReactiveProps as Ws, provide as Dt } from "vue";
|
|
2
2
|
import { DatePicker as po, Modal as Zn, Button as sr, Space as Sn, message as Te, Input as Hs, Select as Un, Cascader as Gs, RangePicker as qs, Col as Xs, Row as Qs, Form as ri, Menu as Zs, MenuItem as Js, Dropdown as el, Pagination as tl, DropdownButton as nl, Alert as Mi, Spin as rl, Table as il, Transfer as al, ConfigProvider as ol } from "ant-design-vue";
|
|
3
3
|
import * as sl from "@ant-design/icons-vue";
|
|
4
4
|
import { CloseOutlined as ll, ShrinkOutlined as ul, ArrowsAltOutlined as cl, HolderOutlined as fl, DownOutlined as ho, UpOutlined as dl, SettingOutlined as pl, CopyOutlined as hl, LoadingOutlined as go, FilterOutlined as gl } from "@ant-design/icons-vue";
|
|
5
5
|
import { useRouter as ml } from "vue-router";
|
|
6
6
|
/*!
|
|
7
|
-
* @yzsf2e/render-core v1.0.2-alpha.
|
|
7
|
+
* @yzsf2e/render-core v1.0.2-alpha.85 Fri Aug 09 2024 13:03:39 GMT+0800 (中国标准时间)
|
|
8
8
|
* (c) 2023 @yzsf2e.
|
|
9
9
|
*/
|
|
10
|
-
const vl = "@yzsf2e/render-core", yl = "1.0.2-alpha.
|
|
10
|
+
const vl = "@yzsf2e/render-core", yl = "1.0.2-alpha.85", bl = "dist/render-core", wl = "dist/render-core", Sl = [
|
|
11
11
|
"dist"
|
|
12
12
|
], Cl = {
|
|
13
13
|
dev: "storybook dev -p 6006",
|
|
@@ -478,10 +478,10 @@ function iu(e, t = {}) {
|
|
|
478
478
|
if (!O(E) || !w.value)
|
|
479
479
|
return;
|
|
480
480
|
const b = Re(m), g = (_ = b == null ? void 0 : b.getBoundingClientRect) == null ? void 0 : _.call(b), S = Re(e).getBoundingClientRect();
|
|
481
|
-
let { x: P, y:
|
|
482
|
-
(d === "x" || d === "both") && (P = E.clientX - w.value.x, b && (P = Math.min(Math.max(0, P), g.width - S.width))), (d === "y" || d === "both") && (
|
|
481
|
+
let { x: P, y: j } = v.value;
|
|
482
|
+
(d === "x" || d === "both") && (P = E.clientX - w.value.x, b && (P = Math.min(Math.max(0, P), g.width - S.width))), (d === "y" || d === "both") && (j = E.clientY - w.value.y, b && (j = Math.min(Math.max(0, j), g.height - S.height))), v.value = {
|
|
483
483
|
x: P,
|
|
484
|
-
y:
|
|
484
|
+
y: j
|
|
485
485
|
}, l == null || l(v.value, E), y(E);
|
|
486
486
|
}, T = (E) => {
|
|
487
487
|
O(E) && w.value && (w.value = void 0, u == null || u(v.value, E), y(E));
|
|
@@ -632,14 +632,14 @@ function uu(e, t, n, r, i, a) {
|
|
|
632
632
|
visible: e.show,
|
|
633
633
|
"onUpdate:visible": t[1] || (t[1] = (d) => e.show = d)
|
|
634
634
|
}, {
|
|
635
|
-
title:
|
|
635
|
+
title: F(() => [
|
|
636
636
|
e.title ? (k(), Z(he, { key: 0 }, [
|
|
637
|
-
be(
|
|
637
|
+
be(we(e.title), 1)
|
|
638
638
|
], 64)) : Lt(e.$slots, "title", { key: 1 })
|
|
639
639
|
]),
|
|
640
|
-
extra:
|
|
640
|
+
extra: F(() => [
|
|
641
641
|
W(u, { style: { transform: "translateY(2px)" } }, {
|
|
642
|
-
default:
|
|
642
|
+
default: F(() => [
|
|
643
643
|
e.fullScreen ? (k(), X(o, {
|
|
644
644
|
key: 1,
|
|
645
645
|
style: { color: "#fff", "font-size": "18px", cursor: "pointer", "margin-right": "10px" },
|
|
@@ -657,7 +657,7 @@ function uu(e, t, n, r, i, a) {
|
|
|
657
657
|
_: 1
|
|
658
658
|
})
|
|
659
659
|
]),
|
|
660
|
-
default:
|
|
660
|
+
default: F(() => [
|
|
661
661
|
Lt(e.$slots, "default"),
|
|
662
662
|
Ae("div", {
|
|
663
663
|
class: "drag-trigger",
|
|
@@ -665,10 +665,10 @@ function uu(e, t, n, r, i, a) {
|
|
|
665
665
|
}, null, 32),
|
|
666
666
|
e.hideFooter ? ge("", !0) : (k(), Z("div", lu, [
|
|
667
667
|
W(u, { style: { "padding-left": "20px" } }, {
|
|
668
|
-
default:
|
|
668
|
+
default: F(() => [
|
|
669
669
|
Lt(e.$slots, "footBtn"),
|
|
670
670
|
W(f, { onClick: e.handleClose }, {
|
|
671
|
-
default:
|
|
671
|
+
default: F(() => [
|
|
672
672
|
be("关闭")
|
|
673
673
|
]),
|
|
674
674
|
_: 1
|
|
@@ -764,21 +764,21 @@ function gu(e, t, n, r, i, a) {
|
|
|
764
764
|
"mask-style": { "background-color": "rgba(255, 255, 255, 0.4)" },
|
|
765
765
|
onCancel: e.closeModal
|
|
766
766
|
}), {
|
|
767
|
-
title:
|
|
768
|
-
Ae("span", null,
|
|
767
|
+
title: F(() => [
|
|
768
|
+
Ae("span", null, we(e.form.title), 1)
|
|
769
769
|
]),
|
|
770
|
-
footer:
|
|
770
|
+
footer: F(() => {
|
|
771
771
|
var u;
|
|
772
772
|
return [
|
|
773
773
|
((u = e.form.modalProps) == null ? void 0 : u.hideFooter) !== !0 ? (k(), X(o, { key: 0 }, {
|
|
774
|
-
default:
|
|
774
|
+
default: F(() => {
|
|
775
775
|
var f;
|
|
776
776
|
return [
|
|
777
777
|
W(s, { onClick: e.closeModal }, {
|
|
778
|
-
default:
|
|
778
|
+
default: F(() => {
|
|
779
779
|
var c;
|
|
780
780
|
return [
|
|
781
|
-
be(
|
|
781
|
+
be(we(((c = e.form.modalProps) == null ? void 0 : c.cancelText) || "取消"), 1)
|
|
782
782
|
];
|
|
783
783
|
}),
|
|
784
784
|
_: 1
|
|
@@ -789,10 +789,10 @@ function gu(e, t, n, r, i, a) {
|
|
|
789
789
|
onClick: e.handleOk,
|
|
790
790
|
loading: e.confirmLoading
|
|
791
791
|
}, {
|
|
792
|
-
default:
|
|
792
|
+
default: F(() => {
|
|
793
793
|
var c;
|
|
794
794
|
return [
|
|
795
|
-
be(
|
|
795
|
+
be(we(((c = e.form.modalProps) == null ? void 0 : c.okText) || "确定"), 1)
|
|
796
796
|
];
|
|
797
797
|
}),
|
|
798
798
|
_: 1
|
|
@@ -803,7 +803,7 @@ function gu(e, t, n, r, i, a) {
|
|
|
803
803
|
})) : ge("", !0)
|
|
804
804
|
];
|
|
805
805
|
}),
|
|
806
|
-
default:
|
|
806
|
+
default: F(() => [
|
|
807
807
|
e.form.component ? (k(), X(Bt(e.form.component), Ge({
|
|
808
808
|
key: 0,
|
|
809
809
|
rows: e.rows,
|
|
@@ -812,7 +812,7 @@ function gu(e, t, n, r, i, a) {
|
|
|
812
812
|
modalConfig: e.modalConfig,
|
|
813
813
|
"onUpdate:modalConfig": t[0] || (t[0] = (u) => e.modalConfig = u),
|
|
814
814
|
ref: "currentForm"
|
|
815
|
-
}), null, 16, ["rows", "extra-data", "modalConfig"])) : (k(), Z("span", hu, "form配置中没有为【" +
|
|
815
|
+
}), null, 16, ["rows", "extra-data", "modalConfig"])) : (k(), Z("span", hu, "form配置中没有为【" + we(e.form.title) + "】事件提供组件", 1))
|
|
816
816
|
]),
|
|
817
817
|
_: 1
|
|
818
818
|
}, 16, ["visible", "get-container", "mask-style", "onCancel"]);
|
|
@@ -1259,7 +1259,7 @@ function q(e, t, n) {
|
|
|
1259
1259
|
e.addEventListener(a, i, r);
|
|
1260
1260
|
});
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Se(e, t, n, r) {
|
|
1263
1263
|
var i;
|
|
1264
1264
|
return se(Event) && se(CustomEvent) ? i = new CustomEvent(t, si({
|
|
1265
1265
|
bubbles: !0,
|
|
@@ -1541,7 +1541,7 @@ var zu = {
|
|
|
1541
1541
|
fn(i, Au, r.movable), fn(i, ye, r.transition), t.renderImage(function() {
|
|
1542
1542
|
t.viewed = !0, t.viewing = !1, se(r.viewed) && q(n, un, r.viewed, {
|
|
1543
1543
|
once: !0
|
|
1544
|
-
}),
|
|
1544
|
+
}), Se(n, un, {
|
|
1545
1545
|
originalImage: t.images[a],
|
|
1546
1546
|
index: a,
|
|
1547
1547
|
image: i
|
|
@@ -1625,13 +1625,13 @@ var zu = {
|
|
|
1625
1625
|
t.changedTouches ? ce(t.changedTouches, function(o) {
|
|
1626
1626
|
s = a[o.identifier], delete a[o.identifier];
|
|
1627
1627
|
}) : (s = a[t.pointerId || 0], delete a[t.pointerId || 0]), i && (t.preventDefault(), r.transition && (i === Yn || i === en) && H(this.image, ye), this.action = !1, xt && i !== en && s && Date.now() - s.timeStamp < 500 && (clearTimeout(this.clickCanvasTimeout), clearTimeout(this.doubleClickImageTimeout), r.toggleOnDblclick && this.viewed && t.target === this.image ? this.imageClicked ? (this.imageClicked = !1, this.doubleClickImageTimeout = setTimeout(function() {
|
|
1628
|
-
|
|
1628
|
+
Se(n.image, Vr, {
|
|
1629
1629
|
originalEvent: t
|
|
1630
1630
|
});
|
|
1631
1631
|
}, 50)) : (this.imageClicked = !0, this.doubleClickImageTimeout = setTimeout(function() {
|
|
1632
1632
|
n.imageClicked = !1;
|
|
1633
1633
|
}, 500)) : (this.imageClicked = !1, r.backdrop && r.backdrop !== "static" && t.target === this.canvas && (this.clickCanvasTimeout = setTimeout(function() {
|
|
1634
|
-
|
|
1634
|
+
Se(n.canvas, Kt, {
|
|
1635
1635
|
originalEvent: t
|
|
1636
1636
|
});
|
|
1637
1637
|
}, 50)))));
|
|
@@ -1648,7 +1648,7 @@ var zu = {
|
|
|
1648
1648
|
ce(this.player.getElementsByTagName("img"), function(n) {
|
|
1649
1649
|
q(n, Ke, t.loadImage.bind(t), {
|
|
1650
1650
|
once: !0
|
|
1651
|
-
}),
|
|
1651
|
+
}), Se(n, Ke);
|
|
1652
1652
|
});
|
|
1653
1653
|
}
|
|
1654
1654
|
},
|
|
@@ -1675,7 +1675,7 @@ var zu = {
|
|
|
1675
1675
|
return this.build(), this.ready && this.show(t), this;
|
|
1676
1676
|
if (se(r.show) && q(n, Xi, r.show, {
|
|
1677
1677
|
once: !0
|
|
1678
|
-
}),
|
|
1678
|
+
}), Se(n, Xi) === !1 || !this.ready)
|
|
1679
1679
|
return this;
|
|
1680
1680
|
this.hiding && this.transitioning.abort(), this.showing = !0, this.open();
|
|
1681
1681
|
var i = this.viewer;
|
|
@@ -1703,7 +1703,7 @@ var zu = {
|
|
|
1703
1703
|
return this;
|
|
1704
1704
|
if (se(i.hide) && q(r, Zi, i.hide, {
|
|
1705
1705
|
once: !0
|
|
1706
|
-
}),
|
|
1706
|
+
}), Se(r, Zi) === !1)
|
|
1707
1707
|
return this;
|
|
1708
1708
|
this.showing && this.transitioning.abort(), this.hiding = !0, this.played ? this.stop() : this.viewing && this.viewing.abort();
|
|
1709
1709
|
var a = this.viewer, s = this.image, o = function() {
|
|
@@ -1744,7 +1744,7 @@ var zu = {
|
|
|
1744
1744
|
w !== null && c.setAttribute(v, w);
|
|
1745
1745
|
}), c.src = u, c.alt = f, se(i.view) && q(r, ea, i.view, {
|
|
1746
1746
|
once: !0
|
|
1747
|
-
}),
|
|
1747
|
+
}), Se(r, ea, {
|
|
1748
1748
|
originalImage: this.images[n],
|
|
1749
1749
|
index: n,
|
|
1750
1750
|
image: c
|
|
@@ -1818,7 +1818,7 @@ var zu = {
|
|
|
1818
1818
|
if (me(t) ? f = !0 : t = l, me(r) ? f = !0 : r = u, f) {
|
|
1819
1819
|
if (se(s.move) && q(a, ta, s.move, {
|
|
1820
1820
|
once: !0
|
|
1821
|
-
}),
|
|
1821
|
+
}), Se(a, ta, {
|
|
1822
1822
|
x: t,
|
|
1823
1823
|
y: r,
|
|
1824
1824
|
oldX: l,
|
|
@@ -1829,7 +1829,7 @@ var zu = {
|
|
|
1829
1829
|
o.x = t, o.y = r, o.left = t, o.top = r, this.moving = !0, this.renderImage(function() {
|
|
1830
1830
|
n.moving = !1, se(s.moved) && q(a, na, s.moved, {
|
|
1831
1831
|
once: !0
|
|
1832
|
-
}),
|
|
1832
|
+
}), Se(a, na, {
|
|
1833
1833
|
x: t,
|
|
1834
1834
|
y: r,
|
|
1835
1835
|
oldX: l,
|
|
@@ -1862,7 +1862,7 @@ var zu = {
|
|
|
1862
1862
|
var s = a.rotate;
|
|
1863
1863
|
if (se(i.rotate) && q(r, ra, i.rotate, {
|
|
1864
1864
|
once: !0
|
|
1865
|
-
}),
|
|
1865
|
+
}), Se(r, ra, {
|
|
1866
1866
|
degree: t,
|
|
1867
1867
|
oldDegree: s
|
|
1868
1868
|
}) === !1)
|
|
@@ -1870,7 +1870,7 @@ var zu = {
|
|
|
1870
1870
|
a.rotate = t, this.rotating = !0, this.renderImage(function() {
|
|
1871
1871
|
n.rotating = !1, se(i.rotated) && q(r, ia, i.rotated, {
|
|
1872
1872
|
once: !0
|
|
1873
|
-
}),
|
|
1873
|
+
}), Se(r, ia, {
|
|
1874
1874
|
degree: t,
|
|
1875
1875
|
oldDegree: s
|
|
1876
1876
|
}, {
|
|
@@ -1909,7 +1909,7 @@ var zu = {
|
|
|
1909
1909
|
if (me(t) ? u = !0 : t = o, me(r) ? u = !0 : r = l, u) {
|
|
1910
1910
|
if (se(a.scale) && q(i, aa, a.scale, {
|
|
1911
1911
|
once: !0
|
|
1912
|
-
}),
|
|
1912
|
+
}), Se(i, aa, {
|
|
1913
1913
|
scaleX: t,
|
|
1914
1914
|
scaleY: r,
|
|
1915
1915
|
oldScaleX: o,
|
|
@@ -1919,7 +1919,7 @@ var zu = {
|
|
|
1919
1919
|
s.scaleX = t, s.scaleY = r, this.scaling = !0, this.renderImage(function() {
|
|
1920
1920
|
n.scaling = !1, se(a.scaled) && q(i, oa, a.scaled, {
|
|
1921
1921
|
once: !0
|
|
1922
|
-
}),
|
|
1922
|
+
}), Se(i, oa, {
|
|
1923
1923
|
scaleX: t,
|
|
1924
1924
|
scaleY: r,
|
|
1925
1925
|
oldScaleX: o,
|
|
@@ -1974,7 +1974,7 @@ var zu = {
|
|
|
1974
1974
|
var y = h * t, $ = v * t, C = y - p, T = $ - m, E = f.ratio;
|
|
1975
1975
|
if (se(l.zoom) && q(o, sa, l.zoom, {
|
|
1976
1976
|
once: !0
|
|
1977
|
-
}),
|
|
1977
|
+
}), Se(o, sa, {
|
|
1978
1978
|
ratio: t,
|
|
1979
1979
|
oldRatio: E,
|
|
1980
1980
|
originalEvent: a
|
|
@@ -1991,7 +1991,7 @@ var zu = {
|
|
|
1991
1991
|
f.left = f.x, f.top = f.y, f.width = y, f.height = $, f.oldRatio = E, f.ratio = t, this.renderImage(function() {
|
|
1992
1992
|
n.zooming = !1, se(l.zoomed) && q(o, la, l.zoomed, {
|
|
1993
1993
|
once: !0
|
|
1994
|
-
}),
|
|
1994
|
+
}), Se(o, la, {
|
|
1995
1995
|
ratio: t,
|
|
1996
1996
|
oldRatio: E,
|
|
1997
1997
|
originalEvent: a
|
|
@@ -2014,7 +2014,7 @@ var zu = {
|
|
|
2014
2014
|
var r = this.element, i = this.options;
|
|
2015
2015
|
if (se(i.play) && q(r, ua, i.play, {
|
|
2016
2016
|
once: !0
|
|
2017
|
-
}),
|
|
2017
|
+
}), Se(r, ua) === !1)
|
|
2018
2018
|
return this;
|
|
2019
2019
|
var a = this.player, s = this.loadImage.bind(this), o = [], l = 0, u = 0;
|
|
2020
2020
|
if (this.played = !0, this.onLoadWhenPlay = s, n && this.requestFullscreen(n), H(a, Pt), ce(this.items, function(d, p) {
|
|
@@ -2044,7 +2044,7 @@ var zu = {
|
|
|
2044
2044
|
var n = this.element, r = this.options;
|
|
2045
2045
|
if (se(r.stop) && q(n, ca, r.stop, {
|
|
2046
2046
|
once: !0
|
|
2047
|
-
}),
|
|
2047
|
+
}), Se(n, ca) === !1)
|
|
2048
2048
|
return this;
|
|
2049
2049
|
var i = this.player;
|
|
2050
2050
|
return clearTimeout(this.playing.timeout), this.playing = !1, this.played = !1, ce(i.getElementsByTagName("img"), function(a) {
|
|
@@ -2080,7 +2080,7 @@ var zu = {
|
|
|
2080
2080
|
// Show the current ratio of the image with percentage
|
|
2081
2081
|
tooltip: function() {
|
|
2082
2082
|
var t = this, n = this.options, r = this.tooltipBox, i = this.imageData;
|
|
2083
|
-
return !this.viewed || this.played || !n.tooltip ? this : (r.textContent = "".concat(Math.round(i.ratio * 100), "%"), this.tooltipping ? clearTimeout(this.tooltipping) : n.transition ? (this.fading &&
|
|
2083
|
+
return !this.viewed || this.played || !n.tooltip ? this : (r.textContent = "".concat(Math.round(i.ratio * 100), "%"), this.tooltipping ? clearTimeout(this.tooltipping) : n.transition ? (this.fading && Se(r, He), H(r, Pt), H(r, Vn), H(r, ye), r.removeAttribute("aria-hidden"), r.initialOffsetWidth = r.offsetWidth, H(r, Be)) : (H(r, Pt), r.removeAttribute("aria-hidden")), this.tooltipping = setTimeout(function() {
|
|
2084
2084
|
n.transition ? (q(r, He, function() {
|
|
2085
2085
|
te(r, Pt), te(r, Vn), te(r, ye), r.setAttribute("aria-hidden", !0), t.fading = !1;
|
|
2086
2086
|
}, {
|
|
@@ -2174,13 +2174,13 @@ var zu = {
|
|
|
2174
2174
|
var t = this.element, n = this.options, r = this.viewer;
|
|
2175
2175
|
this.fulled = !0, this.isShown = !0, this.render(), this.bind(), this.showing = !1, n.focus && (r.focus(), this.enforceFocus()), se(n.shown) && q(t, Qi, n.shown, {
|
|
2176
2176
|
once: !0
|
|
2177
|
-
}),
|
|
2177
|
+
}), Se(t, Qi) !== !1 && this.ready && this.isShown && !this.hiding && this.view(this.index);
|
|
2178
2178
|
},
|
|
2179
2179
|
hidden: function() {
|
|
2180
2180
|
var t = this.element, n = this.options, r = this.viewer;
|
|
2181
2181
|
n.fucus && this.clearEnforceFocus(), this.close(), this.unbind(), H(r, mt), r.removeAttribute("role"), r.removeAttribute("aria-labelledby"), r.removeAttribute("aria-modal"), r.setAttribute("aria-hidden", !0), this.resetList(), this.resetImage(), this.fulled = !1, this.viewed = !1, this.isShown = !1, this.hiding = !1, this.destroyed || (se(n.hidden) && q(t, Ji, n.hidden, {
|
|
2182
2182
|
once: !0
|
|
2183
|
-
}),
|
|
2183
|
+
}), Se(t, Ji, null, {
|
|
2184
2184
|
cancelable: !1
|
|
2185
2185
|
}));
|
|
2186
2186
|
},
|
|
@@ -2325,7 +2325,7 @@ var zu = {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
if (r.inline && (this.render(), this.bind(), this.isShown = !0), this.ready = !0, se(r.ready) && q(n, qi, r.ready, {
|
|
2327
2327
|
once: !0
|
|
2328
|
-
}),
|
|
2328
|
+
}), Se(n, qi) === !1) {
|
|
2329
2329
|
this.ready = !1;
|
|
2330
2330
|
return;
|
|
2331
2331
|
}
|
|
@@ -2775,8 +2775,8 @@ const td = /* @__PURE__ */ Zf(Qf, [["render", ed]]), nd = { style: { height: "80
|
|
|
2775
2775
|
ne([p, m], () => {
|
|
2776
2776
|
if (!O.value) {
|
|
2777
2777
|
v.value = p.value, w.value = m.value;
|
|
2778
|
-
const P = document.body.getBoundingClientRect(),
|
|
2779
|
-
E.value.right = P.width -
|
|
2778
|
+
const P = document.body.getBoundingClientRect(), j = d.value.getBoundingClientRect();
|
|
2779
|
+
E.value.right = P.width - j.width, E.value.bottom = P.height - j.height, C.value = y.value, T.value = $.value;
|
|
2780
2780
|
}
|
|
2781
2781
|
O.value = !0;
|
|
2782
2782
|
}), ne(h, () => {
|
|
@@ -2786,16 +2786,16 @@ const td = /* @__PURE__ */ Zf(Qf, [["render", ed]]), nd = { style: { height: "80
|
|
|
2786
2786
|
});
|
|
2787
2787
|
const _ = G(() => ({
|
|
2788
2788
|
transform: `translate(${y.value}px, ${$.value}px)`
|
|
2789
|
-
})), b = (P,
|
|
2790
|
-
L && (a.value = L), u.value = [...P], f.value =
|
|
2789
|
+
})), b = (P, j = 0, L) => {
|
|
2790
|
+
L && (a.value = L), u.value = [...P], f.value = j, l.value = !0;
|
|
2791
2791
|
}, g = () => {
|
|
2792
2792
|
l.value = !1;
|
|
2793
2793
|
}, S = () => {
|
|
2794
2794
|
i(!1);
|
|
2795
2795
|
};
|
|
2796
|
-
return t({ open: b, close: g }), (P,
|
|
2796
|
+
return t({ open: b, close: g }), (P, j) => (k(), X(Kn(Zn), {
|
|
2797
2797
|
visible: l.value,
|
|
2798
|
-
"onUpdate:visible":
|
|
2798
|
+
"onUpdate:visible": j[0] || (j[0] = (L) => l.value = L),
|
|
2799
2799
|
"destroy-on-close": "",
|
|
2800
2800
|
centered: "",
|
|
2801
2801
|
width: 800,
|
|
@@ -2807,7 +2807,7 @@ const td = /* @__PURE__ */ Zf(Qf, [["render", ed]]), nd = { style: { height: "80
|
|
|
2807
2807
|
onOk: g,
|
|
2808
2808
|
onCancel: S
|
|
2809
2809
|
}, {
|
|
2810
|
-
title:
|
|
2810
|
+
title: F(() => [
|
|
2811
2811
|
Ae("div", {
|
|
2812
2812
|
ref_key: "modalTitleRef",
|
|
2813
2813
|
ref: d,
|
|
@@ -2817,20 +2817,20 @@ const td = /* @__PURE__ */ Zf(Qf, [["render", ed]]), nd = { style: { height: "80
|
|
|
2817
2817
|
be("预览 ")
|
|
2818
2818
|
], 512)
|
|
2819
2819
|
]),
|
|
2820
|
-
modalRender:
|
|
2820
|
+
modalRender: F(({ originVNode: L }) => [
|
|
2821
2821
|
Ae("div", {
|
|
2822
2822
|
style: ti(_.value)
|
|
2823
2823
|
}, [
|
|
2824
2824
|
(k(), X(Bt(L)))
|
|
2825
2825
|
], 4)
|
|
2826
2826
|
]),
|
|
2827
|
-
default:
|
|
2827
|
+
default: F(() => [
|
|
2828
2828
|
W(Kn(td), {
|
|
2829
2829
|
options: o,
|
|
2830
2830
|
images: u.value,
|
|
2831
2831
|
onInited: c
|
|
2832
2832
|
}, {
|
|
2833
|
-
default:
|
|
2833
|
+
default: F((L) => [
|
|
2834
2834
|
Ae("div", nd, [
|
|
2835
2835
|
(k(!0), Z(he, null, Me(L.images, (R) => (k(), Z("img", {
|
|
2836
2836
|
style: { opacity: "0" },
|
|
@@ -2893,7 +2893,7 @@ function cd() {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
}));
|
|
2895
2895
|
}
|
|
2896
|
-
function
|
|
2896
|
+
function Iw(e, t, n) {
|
|
2897
2897
|
return od ? (Hn || cd(), Hn.open({
|
|
2898
2898
|
imageList: e,
|
|
2899
2899
|
imageIndex: t,
|
|
@@ -3183,9 +3183,9 @@ var Ko = { exports: {} };
|
|
|
3183
3183
|
}, R.toString = function() {
|
|
3184
3184
|
return this.$d.toUTCString();
|
|
3185
3185
|
}, L;
|
|
3186
|
-
}(),
|
|
3187
|
-
return g.prototype =
|
|
3188
|
-
|
|
3186
|
+
}(), j = P.prototype;
|
|
3187
|
+
return g.prototype = j, [["$ms", a], ["$s", s], ["$m", o], ["$H", l], ["$W", u], ["$M", c], ["$y", p], ["$D", m]].forEach(function(L) {
|
|
3188
|
+
j[L[1]] = function(R) {
|
|
3189
3189
|
return this.$g(R, L[0], L[1]);
|
|
3190
3190
|
};
|
|
3191
3191
|
}), g.extend = function(L, R) {
|
|
@@ -4793,9 +4793,9 @@ function Sy(e, t, n, r, i, a) {
|
|
|
4793
4793
|
"label-col": { span: 8 },
|
|
4794
4794
|
"wrapper-col": { span: 16 }
|
|
4795
4795
|
}, {
|
|
4796
|
-
default:
|
|
4796
|
+
default: F(() => [
|
|
4797
4797
|
W(p, { gutter: 24 }, {
|
|
4798
|
-
default:
|
|
4798
|
+
default: F(() => [
|
|
4799
4799
|
(k(!0), Z(he, null, Me(e.config, (h, v) => {
|
|
4800
4800
|
var w;
|
|
4801
4801
|
return ni((k(), X(l, {
|
|
@@ -4803,7 +4803,7 @@ function Sy(e, t, n, r, i, a) {
|
|
|
4803
4803
|
span: ((w = h.otherProps) == null ? void 0 : w.span) || 4,
|
|
4804
4804
|
class: "conditions-item-col"
|
|
4805
4805
|
}, {
|
|
4806
|
-
default:
|
|
4806
|
+
default: F(() => {
|
|
4807
4807
|
var O, y;
|
|
4808
4808
|
return [
|
|
4809
4809
|
W(o, Ge(e.validateInfos[h.fieldName], {
|
|
@@ -4816,7 +4816,7 @@ function Sy(e, t, n, r, i, a) {
|
|
|
4816
4816
|
[`form-item-words${e.getItemLabel(h).length}`]: !0
|
|
4817
4817
|
}
|
|
4818
4818
|
}), {
|
|
4819
|
-
default:
|
|
4819
|
+
default: F(() => [
|
|
4820
4820
|
W(s, {
|
|
4821
4821
|
value: e.formState[e.pageName][h.fieldName],
|
|
4822
4822
|
"onUpdate:value": ($) => e.formState[e.pageName][h.fieldName] = $,
|
|
@@ -4834,16 +4834,16 @@ function Sy(e, t, n, r, i, a) {
|
|
|
4834
4834
|
]);
|
|
4835
4835
|
}), 128)),
|
|
4836
4836
|
W(l, { span: e.serachSpan }, {
|
|
4837
|
-
default:
|
|
4837
|
+
default: F(() => [
|
|
4838
4838
|
W(d, { style: { float: "right", "padding-right": "12px" } }, {
|
|
4839
|
-
default:
|
|
4839
|
+
default: F(() => [
|
|
4840
4840
|
W(u, {
|
|
4841
4841
|
type: "primary",
|
|
4842
4842
|
size: "small",
|
|
4843
4843
|
onClick: uo(e.onSubmit, ["prevent"]),
|
|
4844
4844
|
loading: e.searching
|
|
4845
4845
|
}, {
|
|
4846
|
-
default:
|
|
4846
|
+
default: F(() => [
|
|
4847
4847
|
be("查询")
|
|
4848
4848
|
]),
|
|
4849
4849
|
_: 1
|
|
@@ -4852,7 +4852,7 @@ function Sy(e, t, n, r, i, a) {
|
|
|
4852
4852
|
size: "small",
|
|
4853
4853
|
onClick: t[0] || (t[0] = (h) => e.$emit("resetSearch"))
|
|
4854
4854
|
}, {
|
|
4855
|
-
default:
|
|
4855
|
+
default: F(() => [
|
|
4856
4856
|
be("重置")
|
|
4857
4857
|
]),
|
|
4858
4858
|
_: 1
|
|
@@ -5003,19 +5003,19 @@ const Cy = /* @__PURE__ */ Qe(wy, [["render", Sy]]), An = oi(() => {
|
|
|
5003
5003
|
h(S, u);
|
|
5004
5004
|
try {
|
|
5005
5005
|
o.value = !0;
|
|
5006
|
-
const
|
|
5007
|
-
if (!
|
|
5006
|
+
const j = await v(S);
|
|
5007
|
+
if (!j)
|
|
5008
5008
|
return;
|
|
5009
5009
|
const L = /\{\{(.+?)\}\}/g;
|
|
5010
5010
|
let R = ((P = i.value) == null ? void 0 : P.fileName) || "", I = null;
|
|
5011
5011
|
for (; (I = L.exec(R)) !== null; )
|
|
5012
5012
|
I[1] === "Date" && (R = R.replace(I[0], Uo().format("YYYY-MM-DD")));
|
|
5013
|
-
const x = document.createElement("a"), M = window.URL.createObjectURL(new Blob([
|
|
5013
|
+
const x = document.createElement("a"), M = window.URL.createObjectURL(new Blob([j]));
|
|
5014
5014
|
if (x.href = M, x.download = R, document.body.appendChild(x), x.click(), document.body.removeChild(x), window.URL.revokeObjectURL(M), i.value.needFeedback === !1)
|
|
5015
5015
|
return;
|
|
5016
5016
|
Te.success("导出成功");
|
|
5017
|
-
} catch (
|
|
5018
|
-
console.warn("export error: ",
|
|
5017
|
+
} catch (j) {
|
|
5018
|
+
console.warn("export error: ", j);
|
|
5019
5019
|
} finally {
|
|
5020
5020
|
o.value = !1;
|
|
5021
5021
|
}
|
|
@@ -5029,7 +5029,7 @@ const Cy = /* @__PURE__ */ Qe(wy, [["render", Sy]]), An = oi(() => {
|
|
|
5029
5029
|
accept: g
|
|
5030
5030
|
/** feedback = true, needRefresh = true */
|
|
5031
5031
|
}, S) => {
|
|
5032
|
-
const P = /^\.[a-zA-Z]+$/,
|
|
5032
|
+
const P = /^\.[a-zA-Z]+$/, j = g == null ? void 0 : g.reduce(
|
|
5033
5033
|
(I, x) => {
|
|
5034
5034
|
if (!P.test(x))
|
|
5035
5035
|
throw `请提供正确的文件后缀名,是否是 【.${x}】 ?`;
|
|
@@ -5039,7 +5039,7 @@ const Cy = /* @__PURE__ */ Qe(wy, [["render", Sy]]), An = oi(() => {
|
|
|
5039
5039
|
), [L] = await window.showOpenFilePicker({
|
|
5040
5040
|
types: [
|
|
5041
5041
|
{
|
|
5042
|
-
accept:
|
|
5042
|
+
accept: j
|
|
5043
5043
|
}
|
|
5044
5044
|
]
|
|
5045
5045
|
/** 文件选择器带有一个允许用户选择所有类型文件的过滤选项,默认为false */
|
|
@@ -5086,20 +5086,20 @@ function My(e, t, n, r, i, a) {
|
|
|
5086
5086
|
return k(), Z("div", Py, [
|
|
5087
5087
|
Ae("div", Iy, [
|
|
5088
5088
|
W(u, null, {
|
|
5089
|
-
default:
|
|
5089
|
+
default: F(() => [
|
|
5090
5090
|
(k(!0), Z(he, null, Me(e.config, (w, O) => ni((k(), X(Bt(w.type), Ge(w.otherProps, {
|
|
5091
5091
|
key: `${w.type}${O}`,
|
|
5092
5092
|
onClick: (y) => e.handleButtonClick(w, y)
|
|
5093
5093
|
}), co({
|
|
5094
|
-
overlay:
|
|
5094
|
+
overlay: F(() => [
|
|
5095
5095
|
W(l, null, {
|
|
5096
|
-
default:
|
|
5096
|
+
default: F(() => [
|
|
5097
5097
|
(k(!0), Z(he, null, Me(w.sublist, (y) => (k(), X(o, {
|
|
5098
5098
|
key: y.action,
|
|
5099
5099
|
onClick: ($) => e.handleButtonClick(y, $)
|
|
5100
5100
|
}, {
|
|
5101
|
-
default:
|
|
5102
|
-
be(
|
|
5101
|
+
default: F(() => [
|
|
5102
|
+
be(we(y.children), 1)
|
|
5103
5103
|
]),
|
|
5104
5104
|
_: 2
|
|
5105
5105
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5107,14 +5107,14 @@ function My(e, t, n, r, i, a) {
|
|
|
5107
5107
|
_: 2
|
|
5108
5108
|
}, 1024)
|
|
5109
5109
|
]),
|
|
5110
|
-
default:
|
|
5111
|
-
be(" " +
|
|
5110
|
+
default: F(() => [
|
|
5111
|
+
be(" " + we(w.children) + " ", 1)
|
|
5112
5112
|
]),
|
|
5113
5113
|
_: 2
|
|
5114
5114
|
}, [
|
|
5115
5115
|
w.iconType ? {
|
|
5116
5116
|
name: "icon",
|
|
5117
|
-
fn:
|
|
5117
|
+
fn: F(() => [
|
|
5118
5118
|
W(s, {
|
|
5119
5119
|
type: w.iconType
|
|
5120
5120
|
}, null, 8, ["type"])
|
|
@@ -5130,7 +5130,7 @@ function My(e, t, n, r, i, a) {
|
|
|
5130
5130
|
]),
|
|
5131
5131
|
Ae("div", null, [
|
|
5132
5132
|
W(u, null, {
|
|
5133
|
-
default:
|
|
5133
|
+
default: F(() => {
|
|
5134
5134
|
var w, O;
|
|
5135
5135
|
return [
|
|
5136
5136
|
e.hasApiConfig ? (k(), Z(he, { key: 0 }, [
|
|
@@ -5139,15 +5139,15 @@ function My(e, t, n, r, i, a) {
|
|
|
5139
5139
|
trigger: ["click"],
|
|
5140
5140
|
disabled: e.importLoading
|
|
5141
5141
|
}, {
|
|
5142
|
-
overlay:
|
|
5142
|
+
overlay: F(() => [
|
|
5143
5143
|
W(l, null, {
|
|
5144
|
-
default:
|
|
5144
|
+
default: F(() => [
|
|
5145
5145
|
(k(!0), Z(he, null, Me(e.importConfig.children, (y, $) => (k(), X(o, {
|
|
5146
5146
|
key: $,
|
|
5147
5147
|
onClick: () => e.handleImport(y, $)
|
|
5148
5148
|
}, {
|
|
5149
|
-
default:
|
|
5150
|
-
be(
|
|
5149
|
+
default: F(() => [
|
|
5150
|
+
be(we(y.title), 1)
|
|
5151
5151
|
]),
|
|
5152
5152
|
_: 2
|
|
5153
5153
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5155,14 +5155,14 @@ function My(e, t, n, r, i, a) {
|
|
|
5155
5155
|
_: 1
|
|
5156
5156
|
})
|
|
5157
5157
|
]),
|
|
5158
|
-
default:
|
|
5158
|
+
default: F(() => [
|
|
5159
5159
|
W(f, {
|
|
5160
5160
|
loading: e.importLoading,
|
|
5161
5161
|
size: "small",
|
|
5162
5162
|
type: "primary"
|
|
5163
5163
|
}, {
|
|
5164
|
-
default:
|
|
5165
|
-
be(
|
|
5164
|
+
default: F(() => [
|
|
5165
|
+
be(we(e.importConfig.title || "导入"), 1)
|
|
5166
5166
|
]),
|
|
5167
5167
|
_: 1
|
|
5168
5168
|
}, 8, ["loading"])
|
|
@@ -5176,7 +5176,7 @@ function My(e, t, n, r, i, a) {
|
|
|
5176
5176
|
loading: e.exportLoading,
|
|
5177
5177
|
onClick: t[0] || (t[0] = () => e.handleApiConfigExport())
|
|
5178
5178
|
}, {
|
|
5179
|
-
default:
|
|
5179
|
+
default: F(() => [
|
|
5180
5180
|
be(" 导出 ")
|
|
5181
5181
|
]),
|
|
5182
5182
|
_: 1
|
|
@@ -5187,15 +5187,15 @@ function My(e, t, n, r, i, a) {
|
|
|
5187
5187
|
trigger: ["click"],
|
|
5188
5188
|
disabled: e.importLoading
|
|
5189
5189
|
}, {
|
|
5190
|
-
overlay:
|
|
5190
|
+
overlay: F(() => [
|
|
5191
5191
|
W(l, null, {
|
|
5192
|
-
default:
|
|
5192
|
+
default: F(() => [
|
|
5193
5193
|
(k(!0), Z(he, null, Me(e.importConfig.sublist, (y, $) => (k(), X(o, {
|
|
5194
5194
|
key: $,
|
|
5195
5195
|
onClick: () => e.handleImport(y, $)
|
|
5196
5196
|
}, {
|
|
5197
|
-
default:
|
|
5198
|
-
be(
|
|
5197
|
+
default: F(() => [
|
|
5198
|
+
be(we(y.title), 1)
|
|
5199
5199
|
]),
|
|
5200
5200
|
_: 2
|
|
5201
5201
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5203,14 +5203,14 @@ function My(e, t, n, r, i, a) {
|
|
|
5203
5203
|
_: 1
|
|
5204
5204
|
})
|
|
5205
5205
|
]),
|
|
5206
|
-
default:
|
|
5206
|
+
default: F(() => [
|
|
5207
5207
|
W(f, {
|
|
5208
5208
|
loading: e.importLoading,
|
|
5209
5209
|
size: "small",
|
|
5210
5210
|
type: "primary"
|
|
5211
5211
|
}, {
|
|
5212
|
-
default:
|
|
5213
|
-
be(
|
|
5212
|
+
default: F(() => [
|
|
5213
|
+
be(we(e.importConfig.title || "导入"), 1)
|
|
5214
5214
|
]),
|
|
5215
5215
|
_: 1
|
|
5216
5216
|
}, 8, ["loading"])
|
|
@@ -5218,14 +5218,14 @@ function My(e, t, n, r, i, a) {
|
|
|
5218
5218
|
_: 1
|
|
5219
5219
|
}, 8, ["disabled"])) : ge("", !0),
|
|
5220
5220
|
e.exportConfig ? (k(), X(c, { key: 1 }, {
|
|
5221
|
-
overlay:
|
|
5221
|
+
overlay: F(() => [
|
|
5222
5222
|
W(l, {
|
|
5223
5223
|
onClick: t[1] || (t[1] = (y) => e.handleExport(y.key))
|
|
5224
5224
|
}, {
|
|
5225
|
-
default:
|
|
5225
|
+
default: F(() => [
|
|
5226
5226
|
(k(!0), Z(he, null, Me(e.OPERATIONS_EXPORT_MAP, (y, $) => (k(), X(o, { key: $ }, {
|
|
5227
|
-
default:
|
|
5228
|
-
be(
|
|
5227
|
+
default: F(() => [
|
|
5228
|
+
be(we(y), 1)
|
|
5229
5229
|
]),
|
|
5230
5230
|
_: 2
|
|
5231
5231
|
}, 1024))), 128))
|
|
@@ -5233,13 +5233,13 @@ function My(e, t, n, r, i, a) {
|
|
|
5233
5233
|
_: 1
|
|
5234
5234
|
})
|
|
5235
5235
|
]),
|
|
5236
|
-
default:
|
|
5236
|
+
default: F(() => [
|
|
5237
5237
|
W(f, {
|
|
5238
5238
|
size: "small",
|
|
5239
5239
|
type: "primary",
|
|
5240
5240
|
loading: e.exportLoading
|
|
5241
5241
|
}, {
|
|
5242
|
-
default:
|
|
5242
|
+
default: F(() => [
|
|
5243
5243
|
be(" 导出 "),
|
|
5244
5244
|
W(d)
|
|
5245
5245
|
]),
|
|
@@ -5249,7 +5249,7 @@ function My(e, t, n, r, i, a) {
|
|
|
5249
5249
|
_: 1
|
|
5250
5250
|
})) : ge("", !0)
|
|
5251
5251
|
], 64)),
|
|
5252
|
-
e.hasApiConfig ? (k(), Z("div", Dy, "共 " +
|
|
5252
|
+
e.hasApiConfig ? (k(), Z("div", Dy, "共 " + we(e.total) + " 条", 1)) : ge("", !0),
|
|
5253
5253
|
W(p, {
|
|
5254
5254
|
class: "operations-pagination-simple",
|
|
5255
5255
|
current: e.computed_current,
|
|
@@ -5270,15 +5270,15 @@ function My(e, t, n, r, i, a) {
|
|
|
5270
5270
|
placement: "bottomRight",
|
|
5271
5271
|
trigger: ["click"]
|
|
5272
5272
|
}, {
|
|
5273
|
-
overlay:
|
|
5273
|
+
overlay: F(() => [
|
|
5274
5274
|
W(l, {
|
|
5275
5275
|
onClick: t[5] || (t[5] = (y) => e.$emit("customizeSetting", y.key))
|
|
5276
5276
|
}, {
|
|
5277
|
-
default:
|
|
5277
|
+
default: F(() => [
|
|
5278
5278
|
(k(!0), Z(he, null, Me(e.hasApiConfig ? e.API_CONFIG_SETTINGS_MAP : e.SETTINGS_MAP, (y, $) => (k(), X(o, { key: $ }, {
|
|
5279
|
-
default:
|
|
5279
|
+
default: F(() => [
|
|
5280
5280
|
W(h, { style: { "margin-right": "4px" } }),
|
|
5281
|
-
Ae("a", Ry,
|
|
5281
|
+
Ae("a", Ry, we(y), 1)
|
|
5282
5282
|
]),
|
|
5283
5283
|
_: 2
|
|
5284
5284
|
}, 1024))), 128))
|
|
@@ -5286,7 +5286,7 @@ function My(e, t, n, r, i, a) {
|
|
|
5286
5286
|
_: 1
|
|
5287
5287
|
})
|
|
5288
5288
|
]),
|
|
5289
|
-
default:
|
|
5289
|
+
default: F(() => [
|
|
5290
5290
|
Ae("div", Ny, [
|
|
5291
5291
|
W(h, { style: { "font-size": "15px", transform: "translateY(2px)" } })
|
|
5292
5292
|
])
|
|
@@ -5464,7 +5464,7 @@ function Uy(e, t, n, r, i, a) {
|
|
|
5464
5464
|
const s = U("a-space");
|
|
5465
5465
|
return k(), Z("div", null, [
|
|
5466
5466
|
W(s, null, {
|
|
5467
|
-
default:
|
|
5467
|
+
default: F(() => [
|
|
5468
5468
|
(k(!0), Z(he, null, Me(e.imageList, (o, l) => (k(), Z("img", {
|
|
5469
5469
|
src: o,
|
|
5470
5470
|
key: l,
|
|
@@ -5891,8 +5891,8 @@ const eb = {
|
|
|
5891
5891
|
}
|
|
5892
5892
|
}
|
|
5893
5893
|
});
|
|
5894
|
-
const C = D([]), T = D([]), E = D([]), _ = D([]), b = D({}), g = D([]), { selectedRows: S, selectedRowKeys: P, selectedErrorRowKeys:
|
|
5895
|
-
|
|
5894
|
+
const C = D([]), T = D([]), E = D([]), _ = D([]), b = D({}), g = D([]), { selectedRows: S, selectedRowKeys: P, selectedErrorRowKeys: j } = An();
|
|
5895
|
+
j[h] || (j[h] = []);
|
|
5896
5896
|
const L = G(() => P[h].length > 0), R = G(() => {
|
|
5897
5897
|
if (f.value)
|
|
5898
5898
|
return Qa(u.value, "fieldName");
|
|
@@ -6145,7 +6145,7 @@ const eb = {
|
|
|
6145
6145
|
tableCellSlots: x,
|
|
6146
6146
|
selectedRows: S,
|
|
6147
6147
|
selectedRowKeys: P,
|
|
6148
|
-
selectedErrorRowKeys:
|
|
6148
|
+
selectedErrorRowKeys: j,
|
|
6149
6149
|
showSelectionSummaryRow: L,
|
|
6150
6150
|
DATA_SOURCE_FILTER_PREFIX: s,
|
|
6151
6151
|
DATA_SOURCE_INDEX_KEY: o,
|
|
@@ -6211,7 +6211,7 @@ function vb(e, t, n, r, i, a) {
|
|
|
6211
6211
|
onResizeColumn: e.handleResizeColumn,
|
|
6212
6212
|
onChange: e.onTableChange
|
|
6213
6213
|
}, co({
|
|
6214
|
-
headerCell:
|
|
6214
|
+
headerCell: F(({ column: C }) => {
|
|
6215
6215
|
var T;
|
|
6216
6216
|
return [
|
|
6217
6217
|
C.key === e.DATA_SOURCE_INDEX_KEY ? (k(), Z("div", {
|
|
@@ -6221,7 +6221,7 @@ function vb(e, t, n, r, i, a) {
|
|
|
6221
6221
|
W(o, {
|
|
6222
6222
|
title: e.isHeaderFilterable ? "关闭筛选表头" : "开启筛选表头"
|
|
6223
6223
|
}, {
|
|
6224
|
-
default:
|
|
6224
|
+
default: F(() => [
|
|
6225
6225
|
W(s, {
|
|
6226
6226
|
type: "text",
|
|
6227
6227
|
icon: e.h(e.FilterOutlined)
|
|
@@ -6231,14 +6231,14 @@ function vb(e, t, n, r, i, a) {
|
|
|
6231
6231
|
}, 8, ["title"])
|
|
6232
6232
|
])) : (k(), Z("div", sb, [
|
|
6233
6233
|
C.sortable === !1 ? (k(), X(o, { key: 0 }, {
|
|
6234
|
-
title:
|
|
6234
|
+
title: F(() => [
|
|
6235
6235
|
be("仅支持当前页的筛选排序,不支持跨页筛选排序。如需统计全部数据,请点[导出全部],在 excel 统计。")
|
|
6236
6236
|
]),
|
|
6237
|
-
default:
|
|
6238
|
-
Ae("span", lb,
|
|
6237
|
+
default: F(() => [
|
|
6238
|
+
Ae("span", lb, we(C.title), 1)
|
|
6239
6239
|
]),
|
|
6240
6240
|
_: 2
|
|
6241
|
-
}, 1024)) : (k(), Z("div", ub,
|
|
6241
|
+
}, 1024)) : (k(), Z("div", ub, we(C.title), 1)),
|
|
6242
6242
|
(T = C.key) != null && T.startsWith(e.DATA_SOURCE_FILTER_PREFIX) ? (k(), Z("div", cb, [
|
|
6243
6243
|
e.fieldNameConditionsByKey[C.dataIndex] ? (k(), X(l, {
|
|
6244
6244
|
key: 0,
|
|
@@ -6263,9 +6263,9 @@ function vb(e, t, n, r, i, a) {
|
|
|
6263
6263
|
]))
|
|
6264
6264
|
];
|
|
6265
6265
|
}),
|
|
6266
|
-
bodyCell:
|
|
6266
|
+
bodyCell: F(({ text: C, record: T, index: E, column: _ }) => [
|
|
6267
6267
|
_.dataIndex === "action" ? (k(), X(d, { key: 0 }, {
|
|
6268
|
-
default:
|
|
6268
|
+
default: F(() => [
|
|
6269
6269
|
(k(!0), Z(he, null, Me(_.childActions, (b) => (k(), Z(he, {
|
|
6270
6270
|
key: b.action
|
|
6271
6271
|
}, [
|
|
@@ -6290,7 +6290,7 @@ function vb(e, t, n, r, i, a) {
|
|
|
6290
6290
|
key: 0,
|
|
6291
6291
|
type: b.icon
|
|
6292
6292
|
}, null, 8, ["type"])) : ge("", !0),
|
|
6293
|
-
be(" " +
|
|
6293
|
+
be(" " + we(b.text), 1)
|
|
6294
6294
|
], 14, fb))
|
|
6295
6295
|
], 64)) : ge("", !0)
|
|
6296
6296
|
], 64))), 128))
|
|
@@ -6319,13 +6319,13 @@ function vb(e, t, n, r, i, a) {
|
|
|
6319
6319
|
C ? (k(), X(h, It(Ge({ key: 0 }, { text: C })), null, 16)) : ge("", !0)
|
|
6320
6320
|
], 64)) : ge("", !0)
|
|
6321
6321
|
]),
|
|
6322
|
-
summary:
|
|
6322
|
+
summary: F(() => [
|
|
6323
6323
|
W(O, { fixed: "" }, {
|
|
6324
|
-
default:
|
|
6324
|
+
default: F(() => [
|
|
6325
6325
|
ni(W(w, { class: "table-summary-selection" }, {
|
|
6326
|
-
default:
|
|
6326
|
+
default: F(() => [
|
|
6327
6327
|
W(v, { index: 0 }, {
|
|
6328
|
-
default:
|
|
6328
|
+
default: F(() => [
|
|
6329
6329
|
db
|
|
6330
6330
|
]),
|
|
6331
6331
|
_: 1
|
|
@@ -6335,8 +6335,8 @@ function vb(e, t, n, r, i, a) {
|
|
|
6335
6335
|
index: T + 1,
|
|
6336
6336
|
style: { "text-align": "center" }
|
|
6337
6337
|
}, {
|
|
6338
|
-
default:
|
|
6339
|
-
T === 0 ? (k(), Z("span", pb,
|
|
6338
|
+
default: F(() => [
|
|
6339
|
+
T === 0 ? (k(), Z("span", pb, we(e.selectedRowKeys[e.pageName].length), 1)) : (k(), Z("span", hb, we(C.summary ? e.transformSummary(C.summary, C) : null), 1))
|
|
6340
6340
|
]),
|
|
6341
6341
|
_: 2
|
|
6342
6342
|
}, 1032, ["index"]))), 128))
|
|
@@ -6346,9 +6346,9 @@ function vb(e, t, n, r, i, a) {
|
|
|
6346
6346
|
[lo, e.showSelectionSummaryRow]
|
|
6347
6347
|
]),
|
|
6348
6348
|
e.hasApiConfig ? ge("", !0) : (k(), X(w, { key: 0 }, {
|
|
6349
|
-
default:
|
|
6349
|
+
default: F(() => [
|
|
6350
6350
|
W(v, { index: 0 }, {
|
|
6351
|
-
default:
|
|
6351
|
+
default: F(() => [
|
|
6352
6352
|
gb
|
|
6353
6353
|
]),
|
|
6354
6354
|
_: 1
|
|
@@ -6358,8 +6358,8 @@ function vb(e, t, n, r, i, a) {
|
|
|
6358
6358
|
index: T + 1,
|
|
6359
6359
|
style: { "text-align": "center" }
|
|
6360
6360
|
}, {
|
|
6361
|
-
default:
|
|
6362
|
-
Ae("span", mb,
|
|
6361
|
+
default: F(() => [
|
|
6362
|
+
Ae("span", mb, we(C), 1)
|
|
6363
6363
|
]),
|
|
6364
6364
|
_: 2
|
|
6365
6365
|
}, 1032, ["index"]))), 128))
|
|
@@ -6374,7 +6374,7 @@ function vb(e, t, n, r, i, a) {
|
|
|
6374
6374
|
}, [
|
|
6375
6375
|
($ = e.tableProps) != null && $.expandedRowRender ? {
|
|
6376
6376
|
name: "expandedRowRender",
|
|
6377
|
-
fn:
|
|
6377
|
+
fn: F(({ record: C, index: T, indent: E, expanded: _ }) => [
|
|
6378
6378
|
(k(), X(Bt(e.tableProps.expandedRowRender.component), It(Ws({
|
|
6379
6379
|
row: C,
|
|
6380
6380
|
index: T,
|
|
@@ -6439,7 +6439,7 @@ const wb = {
|
|
|
6439
6439
|
const _ = gn(ke(e.columns));
|
|
6440
6440
|
T = [...E.filter((g) => _.find((S) => S.columnKey === g.columnKey)).map((g) => {
|
|
6441
6441
|
const S = _.findIndex(
|
|
6442
|
-
(
|
|
6442
|
+
(j) => j.columnKey === g.columnKey
|
|
6443
6443
|
);
|
|
6444
6444
|
return {
|
|
6445
6445
|
..._.splice(S, 1)[0],
|
|
@@ -6483,10 +6483,10 @@ const wb = {
|
|
|
6483
6483
|
return;
|
|
6484
6484
|
}
|
|
6485
6485
|
const { category: E, tab: _ } = n.meta, b = C.map((g) => {
|
|
6486
|
-
const S = {}, P = T.find((
|
|
6486
|
+
const S = {}, P = T.find((j) => j.columnKey === g);
|
|
6487
6487
|
if (S.entityId = P.entityId, S.columnKey = P.columnKey, e.type === "SORT_SETTING") {
|
|
6488
|
-
const [
|
|
6489
|
-
S.columnKey =
|
|
6488
|
+
const [j, L] = P.columnKey.split("@");
|
|
6489
|
+
S.columnKey = j, S.sort = L;
|
|
6490
6490
|
}
|
|
6491
6491
|
return S;
|
|
6492
6492
|
});
|
|
@@ -6555,10 +6555,10 @@ const wb = {
|
|
|
6555
6555
|
const P = document.querySelectorAll(".ant-table-row.source");
|
|
6556
6556
|
if (P.length && P[0].classList.remove("source"), v === h)
|
|
6557
6557
|
return;
|
|
6558
|
-
const
|
|
6559
|
-
|
|
6560
|
-
const I =
|
|
6561
|
-
|
|
6558
|
+
const j = u.dataSource.slice(), L = j.findIndex((x) => x.key === h), R = j[L];
|
|
6559
|
+
j.splice(L, 1);
|
|
6560
|
+
const I = j.findIndex((x) => x.key === v);
|
|
6561
|
+
j.splice(I, 0, R), Object.assign(u, { dataSource: j });
|
|
6562
6562
|
},
|
|
6563
6563
|
onClick: () => {
|
|
6564
6564
|
const { key: b, disabled: g } = C;
|
|
@@ -6591,12 +6591,12 @@ const wb = {
|
|
|
6591
6591
|
const b = _.currentStyle || window.getComputedStyle(_, null);
|
|
6592
6592
|
E.onmousedown = (g) => {
|
|
6593
6593
|
const S = g.clientX - E.offsetLeft, P = g.clientY - E.offsetTop;
|
|
6594
|
-
let
|
|
6595
|
-
b.left.includes("%") ? (
|
|
6594
|
+
let j, L;
|
|
6595
|
+
b.left.includes("%") ? (j = +document.body.clientWidth * // eslint-disable-next-line
|
|
6596
6596
|
(+b.left.replace(/\%/g, "") / 100), L = +document.body.clientHeight * // eslint-disable-next-line
|
|
6597
|
-
(+b.top.replace(/\%/g, "") / 100)) : (
|
|
6597
|
+
(+b.top.replace(/\%/g, "") / 100)) : (j = +b.left.replace(/\px/g, ""), L = +b.top.replace(/\px/g, "")), document.onmousemove = function(R) {
|
|
6598
6598
|
const I = R.clientX - S, x = R.clientY - P;
|
|
6599
|
-
_.style.left = `${I +
|
|
6599
|
+
_.style.left = `${I + j}px`, _.style.top = `${x + L}px`;
|
|
6600
6600
|
}, document.onmouseup = function() {
|
|
6601
6601
|
document.onmousemove = null, document.onmouseup = null;
|
|
6602
6602
|
};
|
|
@@ -6625,7 +6625,8 @@ const wb = {
|
|
|
6625
6625
|
};
|
|
6626
6626
|
}
|
|
6627
6627
|
});
|
|
6628
|
-
|
|
6628
|
+
const Cb = { style: { "text-align": "center", padding: "5px 0" } };
|
|
6629
|
+
function Eb(e, t, n, r, i, a) {
|
|
6629
6630
|
const s = U("a-table"), o = U("Transfer"), l = U("Button"), u = U("Space"), f = U("Modal");
|
|
6630
6631
|
return k(), X(f, {
|
|
6631
6632
|
"wrap-class-name": "drag-modal-wrapper",
|
|
@@ -6636,17 +6637,17 @@ function Cb(e, t, n, r, i, a) {
|
|
|
6636
6637
|
"destroy-on-close": !0,
|
|
6637
6638
|
onCancel: e.handleClose
|
|
6638
6639
|
}, {
|
|
6639
|
-
title:
|
|
6640
|
-
Ae("span", null,
|
|
6640
|
+
title: F(() => [
|
|
6641
|
+
Ae("span", null, we(e.title), 1)
|
|
6641
6642
|
]),
|
|
6642
|
-
footer:
|
|
6643
|
+
footer: F(() => [
|
|
6643
6644
|
W(u, null, {
|
|
6644
|
-
default:
|
|
6645
|
+
default: F(() => [
|
|
6645
6646
|
e.hasApiConfig && e.type === "COLUMN_SETTING" ? (k(), X(l, {
|
|
6646
6647
|
key: 0,
|
|
6647
6648
|
onClick: e.handleReset
|
|
6648
6649
|
}, {
|
|
6649
|
-
default:
|
|
6650
|
+
default: F(() => [
|
|
6650
6651
|
be("重置")
|
|
6651
6652
|
]),
|
|
6652
6653
|
_: 1
|
|
@@ -6656,7 +6657,7 @@ function Cb(e, t, n, r, i, a) {
|
|
|
6656
6657
|
loading: e.loading,
|
|
6657
6658
|
onClick: e.handleOk
|
|
6658
6659
|
}, {
|
|
6659
|
-
default:
|
|
6660
|
+
default: F(() => [
|
|
6660
6661
|
be("确定")
|
|
6661
6662
|
]),
|
|
6662
6663
|
_: 1
|
|
@@ -6665,7 +6666,7 @@ function Cb(e, t, n, r, i, a) {
|
|
|
6665
6666
|
_: 1
|
|
6666
6667
|
})
|
|
6667
6668
|
]),
|
|
6668
|
-
default:
|
|
6669
|
+
default: F(() => [
|
|
6669
6670
|
W(o, {
|
|
6670
6671
|
"target-keys": e.toKeys,
|
|
6671
6672
|
"onUpdate:targetKeys": t[0] || (t[0] = (c) => e.toKeys = c),
|
|
@@ -6682,7 +6683,7 @@ function Cb(e, t, n, r, i, a) {
|
|
|
6682
6683
|
},
|
|
6683
6684
|
onChange: e.handleChange
|
|
6684
6685
|
}, {
|
|
6685
|
-
children:
|
|
6686
|
+
children: F(({
|
|
6686
6687
|
direction: c,
|
|
6687
6688
|
selectedKeys: d,
|
|
6688
6689
|
disabled: p,
|
|
@@ -6707,16 +6708,19 @@ function Cb(e, t, n, r, i, a) {
|
|
|
6707
6708
|
"custom-row": (v, w) => c === "left" ? e.customRowLeft(v, w, d, h) : e.customRowRight(v, w, d, h)
|
|
6708
6709
|
}, null, 8, ["class", "row-selection", "columns", "data-source", "style", "custom-row"])
|
|
6709
6710
|
]),
|
|
6711
|
+
footer: F(({ direction: c }) => [
|
|
6712
|
+
Ae("div", Cb, we(c === "left" ? "双击字殷,可快速左右切换。" : "拖捷字段,可上下调整排序位置。"), 1)
|
|
6713
|
+
]),
|
|
6710
6714
|
_: 1
|
|
6711
6715
|
}, 8, ["target-keys", "data-source", "row-key", "filter-option", "onChange"])
|
|
6712
6716
|
]),
|
|
6713
6717
|
_: 1
|
|
6714
6718
|
}, 8, ["visible", "get-container", "mask-style", "onCancel"]);
|
|
6715
6719
|
}
|
|
6716
|
-
const
|
|
6720
|
+
const Tb = /* @__PURE__ */ Qe(Sb, [["render", Eb]]), Ob = {}, Os = Symbol("GLOBAL_OPTIONS_PROVIDE_KEY"), _s = () => Ob, ct = (e) => e, _b = Object.prototype.toString, Ab = (e) => _b.call(e), $b = (e) => Ab(e) === "[object Object]", ar = (e) => Array.isArray(e), yn = (e) => e !== null && typeof e == "object", Pi = (e) => e instanceof Function, Pn = (e) => e == null, Ii = typeof window > "u", As = () => {
|
|
6717
6721
|
var e;
|
|
6718
6722
|
return Ii || Pn((e = window.document) === null || e === void 0 ? void 0 : e.visibilityState) ? !0 : window.document.visibilityState === "visible";
|
|
6719
|
-
},
|
|
6723
|
+
}, Pb = () => {
|
|
6720
6724
|
var e, t;
|
|
6721
6725
|
return (e = !Ii && ((t = window.navigator) === null || t === void 0 ? void 0 : t.onLine)) !== null && e !== void 0 ? e : !0;
|
|
6722
6726
|
}, Fr = () => new Promise(() => {
|
|
@@ -6728,7 +6732,7 @@ const Eb = /* @__PURE__ */ Qe(Sb, [["render", Cb]]), Tb = {}, Os = Symbol("GLOBA
|
|
|
6728
6732
|
if (i = Object(i)[a], i === void 0)
|
|
6729
6733
|
return n;
|
|
6730
6734
|
return i;
|
|
6731
|
-
}, rt = (e) => so(e) ? e.value : e,
|
|
6735
|
+
}, rt = (e) => so(e) ? e.value : e, Ib = (e) => yn(e) ? Object.assign(ar(e) ? [] : {}, e) : e, Xn = /* @__PURE__ */ new Map(), Db = (e) => Pn(e) ? void 0 : Xn.get(e), Nb = (e, t, n) => {
|
|
6732
6736
|
const r = Xn.get(e);
|
|
6733
6737
|
r != null && r.timer && clearTimeout(r.timer);
|
|
6734
6738
|
const i = setTimeout(() => Xn.delete(e), t);
|
|
@@ -6759,8 +6763,8 @@ function $s(e, t, n) {
|
|
|
6759
6763
|
return u = g, o = h($, t), f ? m(g) : s;
|
|
6760
6764
|
}
|
|
6761
6765
|
function O(g) {
|
|
6762
|
-
const S = g - l, P = g - u,
|
|
6763
|
-
return c ? Math.min(
|
|
6766
|
+
const S = g - l, P = g - u, j = t - S;
|
|
6767
|
+
return c ? Math.min(j, a - P) : j;
|
|
6764
6768
|
}
|
|
6765
6769
|
function y(g) {
|
|
6766
6770
|
const S = g - l, P = g - u;
|
|
@@ -6786,9 +6790,9 @@ function $s(e, t, n) {
|
|
|
6786
6790
|
}
|
|
6787
6791
|
function b() {
|
|
6788
6792
|
const g = Date.now(), S = y(g);
|
|
6789
|
-
for (var P = arguments.length,
|
|
6790
|
-
|
|
6791
|
-
if (r =
|
|
6793
|
+
for (var P = arguments.length, j = new Array(P), L = 0; L < P; L++)
|
|
6794
|
+
j[L] = arguments[L];
|
|
6795
|
+
if (r = j, i = this, l = g, S) {
|
|
6792
6796
|
if (o === void 0)
|
|
6793
6797
|
return w(l);
|
|
6794
6798
|
if (c)
|
|
@@ -6807,7 +6811,7 @@ function Ps(e, t) {
|
|
|
6807
6811
|
e[n] = t[n];
|
|
6808
6812
|
continue;
|
|
6809
6813
|
}
|
|
6810
|
-
(
|
|
6814
|
+
($b(t[n]) || ar(t[n])) && Ps(e[n], t[n]);
|
|
6811
6815
|
}
|
|
6812
6816
|
}
|
|
6813
6817
|
function to(e) {
|
|
@@ -6820,7 +6824,7 @@ function to(e) {
|
|
|
6820
6824
|
Ps(t, a);
|
|
6821
6825
|
return t;
|
|
6822
6826
|
}
|
|
6823
|
-
function
|
|
6827
|
+
function Rb(e, t, n) {
|
|
6824
6828
|
let r = !0, i = !0;
|
|
6825
6829
|
if (typeof e != "function")
|
|
6826
6830
|
throw new TypeError("Expected a function");
|
|
@@ -6830,7 +6834,7 @@ function Nb(e, t, n) {
|
|
|
6830
6834
|
maxWait: t
|
|
6831
6835
|
});
|
|
6832
6836
|
}
|
|
6833
|
-
var
|
|
6837
|
+
var Mb = ct((e, t) => {
|
|
6834
6838
|
let {
|
|
6835
6839
|
debounceInterval: n,
|
|
6836
6840
|
debounceOptions: r,
|
|
@@ -6856,7 +6860,7 @@ var Rb = ct((e, t) => {
|
|
|
6856
6860
|
(f = s.value) === null || f === void 0 || f.cancel();
|
|
6857
6861
|
}
|
|
6858
6862
|
};
|
|
6859
|
-
}),
|
|
6863
|
+
}), kb = ct((e, t) => {
|
|
6860
6864
|
let {
|
|
6861
6865
|
errorRetryCount: n = 0,
|
|
6862
6866
|
errorRetryInterval: r = 0
|
|
@@ -6893,7 +6897,7 @@ var Rb = ct((e, t) => {
|
|
|
6893
6897
|
u(), d();
|
|
6894
6898
|
}
|
|
6895
6899
|
};
|
|
6896
|
-
}),
|
|
6900
|
+
}), Lb = ct((e, t) => {
|
|
6897
6901
|
let {
|
|
6898
6902
|
ready: n = D(!0),
|
|
6899
6903
|
manual: r,
|
|
@@ -6911,7 +6915,7 @@ var Rb = ct((e, t) => {
|
|
|
6911
6915
|
};
|
|
6912
6916
|
}
|
|
6913
6917
|
};
|
|
6914
|
-
}),
|
|
6918
|
+
}), xb = ct((e, t) => {
|
|
6915
6919
|
let {
|
|
6916
6920
|
refreshDeps: n,
|
|
6917
6921
|
refreshDepsAction: r,
|
|
@@ -6923,7 +6927,7 @@ var Rb = ct((e, t) => {
|
|
|
6923
6927
|
return ne(a, () => {
|
|
6924
6928
|
r ? r() : !i && e.context.refresh();
|
|
6925
6929
|
}), {};
|
|
6926
|
-
}),
|
|
6930
|
+
}), Fb = ct((e, t) => {
|
|
6927
6931
|
let {
|
|
6928
6932
|
throttleInterval: n,
|
|
6929
6933
|
throttleOptions: r
|
|
@@ -6932,7 +6936,7 @@ var Rb = ct((e, t) => {
|
|
|
6932
6936
|
return bt((l) => {
|
|
6933
6937
|
if (Pn(n))
|
|
6934
6938
|
return {};
|
|
6935
|
-
i.value =
|
|
6939
|
+
i.value = Rb((u) => u(), a.value, s.value), e.context.runAsync = function() {
|
|
6936
6940
|
for (var u = arguments.length, f = new Array(u), c = 0; c < u; c++)
|
|
6937
6941
|
f[c] = arguments[c];
|
|
6938
6942
|
return new Promise((d, p) => {
|
|
@@ -6951,16 +6955,16 @@ var Rb = ct((e, t) => {
|
|
|
6951
6955
|
}
|
|
6952
6956
|
};
|
|
6953
6957
|
});
|
|
6954
|
-
const
|
|
6958
|
+
const jb = (e, t) => (n) => {
|
|
6955
6959
|
Object.keys(n).forEach((r) => {
|
|
6956
6960
|
e[r].value = n[r];
|
|
6957
6961
|
}), t.forEach((r) => r(e));
|
|
6958
|
-
},
|
|
6962
|
+
}, zb = (e, t) => () => {
|
|
6959
6963
|
let n = t;
|
|
6960
6964
|
for (let r = e.length; r-- > 0; )
|
|
6961
6965
|
n = e[r](n);
|
|
6962
6966
|
return n();
|
|
6963
|
-
},
|
|
6967
|
+
}, Bb = (e, t, n) => {
|
|
6964
6968
|
var r, i;
|
|
6965
6969
|
const {
|
|
6966
6970
|
initialData: a,
|
|
@@ -6968,7 +6972,7 @@ const Fb = (e, t) => (n) => {
|
|
|
6968
6972
|
onError: o,
|
|
6969
6973
|
onBefore: l,
|
|
6970
6974
|
onAfter: u
|
|
6971
|
-
} = t, f = D((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1), c = nn((i = n == null ? void 0 : n.data) !== null && i !== void 0 ? i : a), d = nn(n == null ? void 0 : n.error), p = D(n == null ? void 0 : n.params), m = D([]), h = nn("pending"), v = {}, w =
|
|
6975
|
+
} = t, f = D((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1), c = nn((i = n == null ? void 0 : n.data) !== null && i !== void 0 ? i : a), d = nn(n == null ? void 0 : n.error), p = D(n == null ? void 0 : n.params), m = D([]), h = nn("pending"), v = {}, w = jb({
|
|
6972
6976
|
status: h,
|
|
6973
6977
|
loading: f,
|
|
6974
6978
|
data: c,
|
|
@@ -6980,7 +6984,7 @@ const Fb = (e, t) => (n) => {
|
|
|
6980
6984
|
if ($ === "onQuery") {
|
|
6981
6985
|
const _ = m.value.map((b) => b.onQuery).filter(Boolean);
|
|
6982
6986
|
return {
|
|
6983
|
-
servicePromise:
|
|
6987
|
+
servicePromise: zb(_, T[0])()
|
|
6984
6988
|
};
|
|
6985
6989
|
} else {
|
|
6986
6990
|
const _ = m.value.map((b) => {
|
|
@@ -7008,7 +7012,7 @@ const Fb = (e, t) => (n) => {
|
|
|
7008
7012
|
}), b;
|
|
7009
7013
|
l == null || l(C);
|
|
7010
7014
|
try {
|
|
7011
|
-
const g = () => new Promise((
|
|
7015
|
+
const g = () => new Promise((j) => j(e(...p.value)));
|
|
7012
7016
|
let {
|
|
7013
7017
|
servicePromise: S
|
|
7014
7018
|
} = O("onQuery", g);
|
|
@@ -7040,7 +7044,7 @@ const Fb = (e, t) => (n) => {
|
|
|
7040
7044
|
}, v.refresh = () => {
|
|
7041
7045
|
v.run(...p.value || []);
|
|
7042
7046
|
}, v.refreshAsync = () => v.runAsync(...p.value || []), v.mutate = ($) => {
|
|
7043
|
-
const C = Pi($) ? $(c.value) : $, T =
|
|
7047
|
+
const C = Pi($) ? $(c.value) : $, T = Ib(C);
|
|
7044
7048
|
w({
|
|
7045
7049
|
data: T
|
|
7046
7050
|
}), O("onMutate", T);
|
|
@@ -7054,7 +7058,7 @@ const Fb = (e, t) => (n) => {
|
|
|
7054
7058
|
context: v
|
|
7055
7059
|
};
|
|
7056
7060
|
};
|
|
7057
|
-
function
|
|
7061
|
+
function Kb(e) {
|
|
7058
7062
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
|
|
7059
7063
|
const r = Ce(Os, {}), i = {
|
|
7060
7064
|
..._s(),
|
|
@@ -7063,7 +7067,7 @@ function Bb(e) {
|
|
|
7063
7067
|
}, {
|
|
7064
7068
|
manual: a = !1,
|
|
7065
7069
|
defaultParams: s = []
|
|
7066
|
-
} = i, o =
|
|
7070
|
+
} = i, o = Bb(e, i);
|
|
7067
7071
|
if (o.plugins.value = n.map((l) => l(o, i)), !a) {
|
|
7068
7072
|
const l = o.params.value || s;
|
|
7069
7073
|
o.context.run(...l);
|
|
@@ -7083,17 +7087,17 @@ function Bb(e) {
|
|
|
7083
7087
|
runAsync: o.context.runAsync
|
|
7084
7088
|
};
|
|
7085
7089
|
}
|
|
7086
|
-
const Qn = /* @__PURE__ */ new Map(),
|
|
7090
|
+
const Qn = /* @__PURE__ */ new Map(), Ub = (e, t) => {
|
|
7087
7091
|
Qn.set(e, t), t.then((n) => (Qn.delete(e), n)).catch(() => {
|
|
7088
7092
|
Qn.delete(e);
|
|
7089
7093
|
});
|
|
7090
|
-
},
|
|
7094
|
+
}, Yb = (e) => Qn.get(e), vt = /* @__PURE__ */ new Map(), Vb = (e, t) => {
|
|
7091
7095
|
vt.has(e) && vt.get(e).forEach((n) => n(t));
|
|
7092
|
-
},
|
|
7096
|
+
}, Wb = (e, t) => (vt.has(e) ? vt.get(e).push(t) : vt.set(e, [t]), () => {
|
|
7093
7097
|
const n = vt.get(e).indexOf(t);
|
|
7094
7098
|
vt.get(e).splice(n, 1);
|
|
7095
7099
|
});
|
|
7096
|
-
var
|
|
7100
|
+
var Hb = ct((e, t) => {
|
|
7097
7101
|
let {
|
|
7098
7102
|
cacheKey: n,
|
|
7099
7103
|
cacheTime: r = 6e5,
|
|
@@ -7106,11 +7110,11 @@ var Wb = ct((e, t) => {
|
|
|
7106
7110
|
const o = Pi(n) ? n : () => n, l = D(() => {
|
|
7107
7111
|
});
|
|
7108
7112
|
let u;
|
|
7109
|
-
const f = (w) => a ? a(w) :
|
|
7110
|
-
s ? s(w, y) :
|
|
7113
|
+
const f = (w) => a ? a(w) : Db(w), c = (w, O, y) => {
|
|
7114
|
+
s ? s(w, y) : Nb(w, O, y), Vb(w, y.data);
|
|
7111
7115
|
}, d = (w) => i === -1 || w + i > (/* @__PURE__ */ new Date()).getTime(), p = (w, O) => Object.prototype.hasOwnProperty.call(w, O), m = (w) => {
|
|
7112
7116
|
const O = o(w);
|
|
7113
|
-
return
|
|
7117
|
+
return Wb(O, (y) => {
|
|
7114
7118
|
e.data.value = y;
|
|
7115
7119
|
});
|
|
7116
7120
|
}, h = o(), v = f(h);
|
|
@@ -7130,8 +7134,8 @@ var Wb = ct((e, t) => {
|
|
|
7130
7134
|
},
|
|
7131
7135
|
onQuery(w) {
|
|
7132
7136
|
const O = e.params.value, y = o(O);
|
|
7133
|
-
let $ =
|
|
7134
|
-
return $ && $ !== u ? () => $ : ($ = w(), u = $,
|
|
7137
|
+
let $ = Yb(y);
|
|
7138
|
+
return $ && $ !== u ? () => $ : ($ = w(), u = $, Ub(y, $), () => $);
|
|
7135
7139
|
},
|
|
7136
7140
|
onSuccess(w, O) {
|
|
7137
7141
|
const y = o(O);
|
|
@@ -7151,7 +7155,7 @@ var Wb = ct((e, t) => {
|
|
|
7151
7155
|
}
|
|
7152
7156
|
};
|
|
7153
7157
|
});
|
|
7154
|
-
function
|
|
7158
|
+
function Gb(e) {
|
|
7155
7159
|
let t, n;
|
|
7156
7160
|
class r extends Promise {
|
|
7157
7161
|
constructor(a) {
|
|
@@ -7167,7 +7171,7 @@ function Hb(e) {
|
|
|
7167
7171
|
function jr() {
|
|
7168
7172
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
7169
7173
|
}
|
|
7170
|
-
var
|
|
7174
|
+
var qb = ct((e, t) => {
|
|
7171
7175
|
let {
|
|
7172
7176
|
loadingDelay: n = 0,
|
|
7173
7177
|
loadingKeep: r = 0
|
|
@@ -7188,7 +7192,7 @@ var Gb = ct((e, t) => {
|
|
|
7188
7192
|
onQuery(f) {
|
|
7189
7193
|
if (!s.value)
|
|
7190
7194
|
return () => f();
|
|
7191
|
-
l =
|
|
7195
|
+
l = Gb(s.value + a.value);
|
|
7192
7196
|
const c = async () => {
|
|
7193
7197
|
try {
|
|
7194
7198
|
const p = await f();
|
|
@@ -7235,7 +7239,7 @@ const Is = /* @__PURE__ */ new Set(), Ds = /* @__PURE__ */ new Set(), Ns = /* @_
|
|
|
7235
7239
|
!Ii && (zr = window) !== null && zr !== void 0 && zr.addEventListener && (window.addEventListener("visibilitychange", () => {
|
|
7236
7240
|
As() && Br(Ds);
|
|
7237
7241
|
}, !1), window.addEventListener("focus", () => Br(Is), !1), window.addEventListener("online", () => Br(Ns), !1));
|
|
7238
|
-
var
|
|
7242
|
+
var Xb = ct((e, t) => {
|
|
7239
7243
|
let {
|
|
7240
7244
|
pollingInterval: n,
|
|
7241
7245
|
pollingWhenHidden: r = !1,
|
|
@@ -7247,7 +7251,7 @@ var qb = ct((e, t) => {
|
|
|
7247
7251
|
}, d = () => (
|
|
7248
7252
|
// pollingWhenHidden = true or pollingWhenHidden = false and document is visibility
|
|
7249
7253
|
(r || As()) && // pollingWhenOffline = true or pollingWhenOffline = false and is online
|
|
7250
|
-
(i ||
|
|
7254
|
+
(i || Pb())
|
|
7251
7255
|
), p = (h) => {
|
|
7252
7256
|
if (e.error.value && u.value !== 0)
|
|
7253
7257
|
return;
|
|
@@ -7281,7 +7285,7 @@ var qb = ct((e, t) => {
|
|
|
7281
7285
|
}
|
|
7282
7286
|
};
|
|
7283
7287
|
});
|
|
7284
|
-
const
|
|
7288
|
+
const Qb = (e, t) => {
|
|
7285
7289
|
let n = !1;
|
|
7286
7290
|
return function() {
|
|
7287
7291
|
n || (n = !0, e(...arguments), setTimeout(() => {
|
|
@@ -7289,7 +7293,7 @@ const Xb = (e, t) => {
|
|
|
7289
7293
|
}, t));
|
|
7290
7294
|
};
|
|
7291
7295
|
};
|
|
7292
|
-
var
|
|
7296
|
+
var Zb = ct((e, t) => {
|
|
7293
7297
|
let {
|
|
7294
7298
|
refreshOnWindowFocus: n = !1,
|
|
7295
7299
|
refocusTimespan: r = 5e3
|
|
@@ -7301,15 +7305,15 @@ var Qb = ct((e, t) => {
|
|
|
7301
7305
|
};
|
|
7302
7306
|
return bt(() => {
|
|
7303
7307
|
if (l(), i.value) {
|
|
7304
|
-
const u =
|
|
7308
|
+
const u = Qb(e.context.refresh, a.value);
|
|
7305
7309
|
o(or("VISIBLE_LISTENER", u)), o(or("FOCUS_LISTENER", u));
|
|
7306
7310
|
}
|
|
7307
7311
|
}), wn(() => {
|
|
7308
7312
|
l();
|
|
7309
7313
|
}), {};
|
|
7310
7314
|
});
|
|
7311
|
-
function
|
|
7312
|
-
return
|
|
7315
|
+
function Jb(e, t, n) {
|
|
7316
|
+
return Kb(e, t, [...n || [], qb, kb, Mb, Xb, Fb, Zb, xb, Lb, Hb]);
|
|
7313
7317
|
}
|
|
7314
7318
|
function no(e) {
|
|
7315
7319
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -7336,7 +7340,7 @@ function no(e) {
|
|
|
7336
7340
|
params: d,
|
|
7337
7341
|
run: p,
|
|
7338
7342
|
...m
|
|
7339
|
-
} =
|
|
7343
|
+
} = Jb(e, f), h = (E) => {
|
|
7340
7344
|
const [_, ...b] = d.value || [], S = [{
|
|
7341
7345
|
..._,
|
|
7342
7346
|
...E
|
|
@@ -7395,14 +7399,14 @@ function no(e) {
|
|
|
7395
7399
|
const ro = {
|
|
7396
7400
|
ASC: "升序",
|
|
7397
7401
|
DESC: "降序"
|
|
7398
|
-
},
|
|
7402
|
+
}, ew = Oe({
|
|
7399
7403
|
name: "PageRendererTablePage",
|
|
7400
7404
|
components: {
|
|
7401
7405
|
Conditions: Cy,
|
|
7402
7406
|
Operations: ky,
|
|
7403
7407
|
SummaryBar: Ly,
|
|
7404
7408
|
TableView: yb,
|
|
7405
|
-
ColumnSettingModal:
|
|
7409
|
+
ColumnSettingModal: Tb
|
|
7406
7410
|
},
|
|
7407
7411
|
props: {
|
|
7408
7412
|
page: {
|
|
@@ -7441,7 +7445,7 @@ const ro = {
|
|
|
7441
7445
|
ne(c, () => {
|
|
7442
7446
|
g();
|
|
7443
7447
|
});
|
|
7444
|
-
const { patchEnumerations: S, patchStaticEnumerations: P } = Er(),
|
|
7448
|
+
const { patchEnumerations: S, patchStaticEnumerations: P } = Er(), j = D(null), L = D(null), R = D(null), I = bo(Cs, {}), x = D(r.value.columns), M = Ue({
|
|
7445
7449
|
type: "COLUMN_SETTING",
|
|
7446
7450
|
title: "",
|
|
7447
7451
|
columns: [],
|
|
@@ -7564,13 +7568,13 @@ const ro = {
|
|
|
7564
7568
|
ze.href = it, ze.download = ae, document.body.appendChild(ze), ze.click(), document.body.removeChild(ze), window.URL.revokeObjectURL(it);
|
|
7565
7569
|
}, Dn = () => {
|
|
7566
7570
|
var z, A;
|
|
7567
|
-
(z = R.value) == null || z.resetFields(), (A =
|
|
7571
|
+
(z = R.value) == null || z.resetFields(), (A = j.value) == null || A.clearSort();
|
|
7568
7572
|
}, Or = () => {
|
|
7569
7573
|
var z;
|
|
7570
|
-
(z =
|
|
7574
|
+
(z = j.value) == null || z.clearSelect();
|
|
7571
7575
|
}, _r = () => {
|
|
7572
7576
|
var z;
|
|
7573
|
-
return (z =
|
|
7577
|
+
return (z = j.value) == null ? void 0 : z.toggleTableHeight();
|
|
7574
7578
|
}, qt = () => {
|
|
7575
7579
|
var z;
|
|
7576
7580
|
return (z = L.value) == null ? void 0 : z.fetchSummary();
|
|
@@ -7686,7 +7690,7 @@ const ro = {
|
|
|
7686
7690
|
pageSize: ve,
|
|
7687
7691
|
pageTotal: u,
|
|
7688
7692
|
sort: p,
|
|
7689
|
-
tableView:
|
|
7693
|
+
tableView: j,
|
|
7690
7694
|
conditions: R,
|
|
7691
7695
|
summaryBar: L,
|
|
7692
7696
|
sortedColumns: Y,
|
|
@@ -7703,7 +7707,7 @@ const ro = {
|
|
|
7703
7707
|
};
|
|
7704
7708
|
}
|
|
7705
7709
|
});
|
|
7706
|
-
function
|
|
7710
|
+
function tw(e, t, n, r, i, a) {
|
|
7707
7711
|
var c, d;
|
|
7708
7712
|
const s = U("Conditions"), o = U("Operations"), l = U("SummaryBar"), u = U("TableView"), f = U("ColumnSettingModal");
|
|
7709
7713
|
return e.loaded ? (k(), Z(he, { key: 0 }, [
|
|
@@ -7771,7 +7775,7 @@ function ew(e, t, n, r, i, a) {
|
|
|
7771
7775
|
}, null, 8, ["visible", "has-api-config", "type", "title", "columns", "onChange"])
|
|
7772
7776
|
], 64)) : ge("", !0);
|
|
7773
7777
|
}
|
|
7774
|
-
const Rs = /* @__PURE__ */ Qe(
|
|
7778
|
+
const Rs = /* @__PURE__ */ Qe(ew, [["render", tw]]), nw = Oe({
|
|
7775
7779
|
name: "PageRendererTabsPage",
|
|
7776
7780
|
components: { TablePage: Rs },
|
|
7777
7781
|
props: {
|
|
@@ -7822,7 +7826,7 @@ const Rs = /* @__PURE__ */ Qe(Jb, [["render", ew]]), tw = Oe({
|
|
|
7822
7826
|
} }), { activeChange: a, setItemRef: l };
|
|
7823
7827
|
}
|
|
7824
7828
|
});
|
|
7825
|
-
function
|
|
7829
|
+
function rw(e, t, n, r, i, a) {
|
|
7826
7830
|
const s = U("TablePage"), o = U("a-tab-pane"), l = U("a-tabs");
|
|
7827
7831
|
return k(), X(l, {
|
|
7828
7832
|
type: "card",
|
|
@@ -7832,12 +7836,12 @@ function nw(e, t, n, r, i, a) {
|
|
|
7832
7836
|
"tab-bar-gutter": 0,
|
|
7833
7837
|
onChange: e.activeChange
|
|
7834
7838
|
}, {
|
|
7835
|
-
default:
|
|
7839
|
+
default: F(() => [
|
|
7836
7840
|
(k(!0), Z(he, null, Me(e.pages, (u) => (k(), X(o, {
|
|
7837
7841
|
key: u.name,
|
|
7838
7842
|
tab: u.title
|
|
7839
7843
|
}, {
|
|
7840
|
-
default:
|
|
7844
|
+
default: F(() => [
|
|
7841
7845
|
W(s, {
|
|
7842
7846
|
page: u,
|
|
7843
7847
|
ref_for: !0,
|
|
@@ -7850,7 +7854,7 @@ function nw(e, t, n, r, i, a) {
|
|
|
7850
7854
|
_: 1
|
|
7851
7855
|
}, 8, ["active-key", "onChange"]);
|
|
7852
7856
|
}
|
|
7853
|
-
const
|
|
7857
|
+
const iw = /* @__PURE__ */ Qe(nw, [["render", rw]]), aw = (e) => ({
|
|
7854
7858
|
mounted(t, n) {
|
|
7855
7859
|
var f, c, d;
|
|
7856
7860
|
const i = (f = e.currentRoute.value.meta) == null ? void 0 : f.permissions, { value: a, modifiers: s } = n, o = (c = ke(a)) == null ? void 0 : c.length;
|
|
@@ -7861,10 +7865,10 @@ const rw = /* @__PURE__ */ Qe(tw, [["render", nw]]), iw = (e) => ({
|
|
|
7861
7865
|
a.includes(p) && u++;
|
|
7862
7866
|
}), s.all ? l = u === o : l = u > 0, l || (d = t.parentNode) == null || d.removeChild(t);
|
|
7863
7867
|
}
|
|
7864
|
-
}),
|
|
7865
|
-
const e =
|
|
7866
|
-
e.directives.permission || e.app.directive("permission",
|
|
7867
|
-
},
|
|
7868
|
+
}), ow = () => Et().appContext, sw = () => {
|
|
7869
|
+
const e = ow(), t = ml();
|
|
7870
|
+
e.directives.permission || e.app.directive("permission", aw(t));
|
|
7871
|
+
}, lw = {
|
|
7868
7872
|
// Options.jsx
|
|
7869
7873
|
items_per_page: "条/页",
|
|
7870
7874
|
jump_to: "跳至",
|
|
@@ -7886,7 +7890,7 @@ function bn(e) {
|
|
|
7886
7890
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
7887
7891
|
}, bn(e);
|
|
7888
7892
|
}
|
|
7889
|
-
function
|
|
7893
|
+
function uw(e, t) {
|
|
7890
7894
|
if (bn(e) != "object" || !e)
|
|
7891
7895
|
return e;
|
|
7892
7896
|
var n = e[Symbol.toPrimitive];
|
|
@@ -7898,12 +7902,12 @@ function lw(e, t) {
|
|
|
7898
7902
|
}
|
|
7899
7903
|
return (t === "string" ? String : Number)(e);
|
|
7900
7904
|
}
|
|
7901
|
-
function
|
|
7902
|
-
var t =
|
|
7905
|
+
function cw(e) {
|
|
7906
|
+
var t = uw(e, "string");
|
|
7903
7907
|
return bn(t) == "symbol" ? t : String(t);
|
|
7904
7908
|
}
|
|
7905
|
-
function
|
|
7906
|
-
return t =
|
|
7909
|
+
function fw(e, t, n) {
|
|
7910
|
+
return t = cw(t), t in e ? Object.defineProperty(e, t, {
|
|
7907
7911
|
value: n,
|
|
7908
7912
|
enumerable: !0,
|
|
7909
7913
|
configurable: !0,
|
|
@@ -7924,14 +7928,14 @@ function ao(e) {
|
|
|
7924
7928
|
for (var t = 1; t < arguments.length; t++) {
|
|
7925
7929
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
7926
7930
|
t % 2 ? io(Object(n), !0).forEach(function(r) {
|
|
7927
|
-
|
|
7931
|
+
fw(e, r, n[r]);
|
|
7928
7932
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : io(Object(n)).forEach(function(r) {
|
|
7929
7933
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
7930
7934
|
});
|
|
7931
7935
|
}
|
|
7932
7936
|
return e;
|
|
7933
7937
|
}
|
|
7934
|
-
var
|
|
7938
|
+
var dw = {
|
|
7935
7939
|
locale: "zh_CN",
|
|
7936
7940
|
today: "今天",
|
|
7937
7941
|
now: "此刻",
|
|
@@ -7959,12 +7963,12 @@ var fw = {
|
|
|
7959
7963
|
previousCentury: "上一世纪",
|
|
7960
7964
|
nextCentury: "下一世纪"
|
|
7961
7965
|
};
|
|
7962
|
-
const
|
|
7963
|
-
var
|
|
7966
|
+
const pw = dw;
|
|
7967
|
+
var hw = {
|
|
7964
7968
|
placeholder: "请选择时间",
|
|
7965
7969
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
7966
7970
|
};
|
|
7967
|
-
const Ms =
|
|
7971
|
+
const Ms = hw;
|
|
7968
7972
|
var ks = {
|
|
7969
7973
|
lang: ao({
|
|
7970
7974
|
placeholder: "请选择日期",
|
|
@@ -7977,14 +7981,14 @@ var ks = {
|
|
|
7977
7981
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
7978
7982
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
7979
7983
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
7980
|
-
},
|
|
7984
|
+
}, pw),
|
|
7981
7985
|
timePickerLocale: ao({}, Ms)
|
|
7982
7986
|
};
|
|
7983
7987
|
ks.lang.ok = "确定";
|
|
7984
7988
|
const oo = ks;
|
|
7985
|
-
var Ne = "${label}不是一个有效的${type}",
|
|
7989
|
+
var Ne = "${label}不是一个有效的${type}", gw = {
|
|
7986
7990
|
locale: "zh-cn",
|
|
7987
|
-
Pagination:
|
|
7991
|
+
Pagination: lw,
|
|
7988
7992
|
DatePicker: oo,
|
|
7989
7993
|
TimePicker: Ms,
|
|
7990
7994
|
Calendar: oo,
|
|
@@ -8106,9 +8110,9 @@ var Ne = "${label}不是一个有效的${type}", hw = {
|
|
|
8106
8110
|
preview: "预览"
|
|
8107
8111
|
}
|
|
8108
8112
|
};
|
|
8109
|
-
const
|
|
8110
|
-
name:
|
|
8111
|
-
components: { TablePage: Rs, TabsPage:
|
|
8113
|
+
const mw = gw, [vw] = Cn("page-renderer"), yw = Oe({
|
|
8114
|
+
name: vw,
|
|
8115
|
+
components: { TablePage: Rs, TabsPage: iw, FormModal: So, PreviewMediaModal: mi, ConfigProvider: ol },
|
|
8112
8116
|
props: {
|
|
8113
8117
|
options: {
|
|
8114
8118
|
type: Object,
|
|
@@ -8142,7 +8146,7 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8142
8146
|
m.value = S;
|
|
8143
8147
|
}
|
|
8144
8148
|
), ne(
|
|
8145
|
-
() => m,
|
|
8149
|
+
() => m.value,
|
|
8146
8150
|
(S) => {
|
|
8147
8151
|
p.value = !!S;
|
|
8148
8152
|
}
|
|
@@ -8153,8 +8157,8 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8153
8157
|
);
|
|
8154
8158
|
$i().interceptors.response.use(
|
|
8155
8159
|
(S) => {
|
|
8156
|
-
var P,
|
|
8157
|
-
if (S.data && ((P = S.data) == null ? void 0 : P.type) === "string" && typeof ((
|
|
8160
|
+
var P, j;
|
|
8161
|
+
if (S.data && ((P = S.data) == null ? void 0 : P.type) === "string" && typeof ((j = S.data) == null ? void 0 : j.value) == "string")
|
|
8158
8162
|
try {
|
|
8159
8163
|
S.data = JSON.parse(S.data.value);
|
|
8160
8164
|
} catch {
|
|
@@ -8176,7 +8180,7 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8176
8180
|
if (!e.options && S && P) {
|
|
8177
8181
|
h.value = !0;
|
|
8178
8182
|
try {
|
|
8179
|
-
const
|
|
8183
|
+
const j = await O({
|
|
8180
8184
|
category: S,
|
|
8181
8185
|
tab: P,
|
|
8182
8186
|
pageNumber: 1,
|
|
@@ -8185,7 +8189,7 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8185
8189
|
sorts: {},
|
|
8186
8190
|
filters: {}
|
|
8187
8191
|
});
|
|
8188
|
-
m.value =
|
|
8192
|
+
m.value = j.data;
|
|
8189
8193
|
} catch {
|
|
8190
8194
|
Te.error("页面配置请求失败!");
|
|
8191
8195
|
} finally {
|
|
@@ -8193,25 +8197,25 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8193
8197
|
}
|
|
8194
8198
|
}
|
|
8195
8199
|
}, C = {
|
|
8196
|
-
locale:
|
|
8200
|
+
locale: mw,
|
|
8197
8201
|
transformCellText: ({
|
|
8198
8202
|
text: S,
|
|
8199
8203
|
column: P,
|
|
8200
|
-
record:
|
|
8201
|
-
}) => !P || P.dataIndex === "action" ? S : vn(
|
|
8204
|
+
record: j
|
|
8205
|
+
}) => !P || P.dataIndex === "action" ? S : vn(j[P.dataIndex]) || j[P.dataIndex] === "" ? " - " : S
|
|
8202
8206
|
}, T = (S, P) => {
|
|
8203
|
-
var
|
|
8204
|
-
(
|
|
8207
|
+
var j;
|
|
8208
|
+
(j = o.value) == null || j.open(S, P);
|
|
8205
8209
|
};
|
|
8206
8210
|
Dt("materials", (g = e.config) == null ? void 0 : g.materials), Dt("previewMediaModalOpen", T), Dt("tableCellSlots", e.tableCellSlots || {}), Dt("reloadPage", y), Dt(
|
|
8207
8211
|
"emitHandler",
|
|
8208
|
-
(S, P,
|
|
8212
|
+
(S, P, j) => {
|
|
8209
8213
|
var R, I, x;
|
|
8210
8214
|
const L = gn(P);
|
|
8211
8215
|
if (e.form === void 0 || !e.form[S]) {
|
|
8212
8216
|
const M = (R = e.customEvent) == null ? void 0 : R[S];
|
|
8213
8217
|
if (!M)
|
|
8214
|
-
return v ? v(S, L) : Te.warn("没有找到自定义事件处理函数"),
|
|
8218
|
+
return v ? v(S, L) : Te.warn("没有找到自定义事件处理函数"), j == null ? void 0 : j();
|
|
8215
8219
|
try {
|
|
8216
8220
|
M(L, (V) => {
|
|
8217
8221
|
var ee;
|
|
@@ -8222,7 +8226,7 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8222
8226
|
});
|
|
8223
8227
|
}).finally(() => {
|
|
8224
8228
|
setTimeout(() => {
|
|
8225
|
-
|
|
8229
|
+
j == null || j();
|
|
8226
8230
|
}, 100);
|
|
8227
8231
|
});
|
|
8228
8232
|
} catch (V) {
|
|
@@ -8241,11 +8245,11 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8241
8245
|
u.value = V, d.value = e.form[S], l.value = d.value.needSelectRows === !1 ? [] : L, (Y = s.value) == null || Y.openModal();
|
|
8242
8246
|
}).finally(() => {
|
|
8243
8247
|
setTimeout(() => {
|
|
8244
|
-
|
|
8248
|
+
j == null || j();
|
|
8245
8249
|
}, 100);
|
|
8246
8250
|
});
|
|
8247
8251
|
}
|
|
8248
|
-
),
|
|
8252
|
+
), sw();
|
|
8249
8253
|
const E = () => {
|
|
8250
8254
|
var S, P;
|
|
8251
8255
|
return {
|
|
@@ -8280,19 +8284,19 @@ const gw = hw, [mw] = Cn("page-renderer"), vw = Oe({
|
|
|
8280
8284
|
rendererOptions: m
|
|
8281
8285
|
};
|
|
8282
8286
|
}
|
|
8283
|
-
}),
|
|
8284
|
-
function
|
|
8287
|
+
}), bw = { class: "page-renderer-wrapper" };
|
|
8288
|
+
function ww(e, t, n, r, i, a) {
|
|
8285
8289
|
const s = U("TablePage"), o = U("TabsPage"), l = U("FormModal"), u = U("PreviewMediaModal"), f = U("ConfigProvider");
|
|
8286
8290
|
return e.loaded ? (k(), X(f, It(Ge({ key: 0 }, e.getPopupContainer)), {
|
|
8287
|
-
default:
|
|
8288
|
-
Ae("div",
|
|
8291
|
+
default: F(() => [
|
|
8292
|
+
Ae("div", bw, [
|
|
8289
8293
|
e.rendererOptions.type === "basic" ? (k(), X(s, {
|
|
8290
8294
|
key: 0,
|
|
8291
8295
|
page: e.rendererOptions.page,
|
|
8292
8296
|
config: e.config,
|
|
8293
8297
|
ref: "table"
|
|
8294
8298
|
}, {
|
|
8295
|
-
summaryBar:
|
|
8299
|
+
summaryBar: F(() => [
|
|
8296
8300
|
Lt(e.$slots, "summaryBar")
|
|
8297
8301
|
]),
|
|
8298
8302
|
_: 3
|
|
@@ -8320,24 +8324,24 @@ function bw(e, t, n, r, i, a) {
|
|
|
8320
8324
|
_: 3
|
|
8321
8325
|
}, 16)) : ge("", !0);
|
|
8322
8326
|
}
|
|
8323
|
-
const
|
|
8324
|
-
const
|
|
8327
|
+
const Sw = /* @__PURE__ */ Qe(yw, [["render", ww]]);
|
|
8328
|
+
const Cw = En(Sw);
|
|
8325
8329
|
window["@yzsf2e/render-core"] = { version: Pl.version };
|
|
8326
|
-
const
|
|
8327
|
-
function
|
|
8330
|
+
const Ew = [ai, Ll, fu, mu, fd, Cw], { enumerations: Dw } = Er();
|
|
8331
|
+
function Tw(e) {
|
|
8328
8332
|
return e.replace(/^yzs-/, "").replace(/(?:^|-)([a-z])/g, (t, n) => n.toUpperCase());
|
|
8329
8333
|
}
|
|
8330
|
-
function
|
|
8331
|
-
|
|
8334
|
+
function Ow(e) {
|
|
8335
|
+
Ew.forEach((t) => {
|
|
8332
8336
|
t.install ? (e.use(t), [
|
|
8333
8337
|
"yzs-date-picker",
|
|
8334
8338
|
"yzs-drag-drawer",
|
|
8335
8339
|
"yzs-page-renderer-form-modal",
|
|
8336
8340
|
"yzs-page-renderer"
|
|
8337
|
-
].includes(t.name) && e.component(
|
|
8341
|
+
].includes(t.name) && e.component(Tw(t.name), t)) : t.name && e.component(t.name, t);
|
|
8338
8342
|
});
|
|
8339
8343
|
}
|
|
8340
|
-
const
|
|
8344
|
+
const Nw = { install: Ow };
|
|
8341
8345
|
export {
|
|
8342
8346
|
ai as AIcon,
|
|
8343
8347
|
Ll as DatePicker,
|
|
@@ -8345,11 +8349,11 @@ export {
|
|
|
8345
8349
|
mu as DragModal,
|
|
8346
8350
|
Bn as LOADING_SIGN,
|
|
8347
8351
|
qn as MAP_SIGN,
|
|
8348
|
-
|
|
8352
|
+
Cw as PageRenderer,
|
|
8349
8353
|
fd as PreviewMediaModal,
|
|
8350
8354
|
Ml as datePickerProps,
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
+
Nw as default,
|
|
8356
|
+
Dw as enumerations,
|
|
8357
|
+
Ow as install,
|
|
8358
|
+
Iw as showPreviewMediaModal
|
|
8355
8359
|
};
|