@gx-design-vue/pro-table 0.2.0-beta.62 → 0.2.0-beta.63
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/pro-table.js +644 -642
- package/dist/pro-table.umd.cjs +1 -1
- package/package.json +3 -3
package/dist/pro-table.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { pick as
|
|
3
|
-
import { isBoolean as Q, convertValueBoolean as fe, isObject as
|
|
4
|
-
import { useFullscreen as
|
|
5
|
-
import { Form as
|
|
1
|
+
import { reactive as ie, isReactive as Dt, watch as _, computed as w, createVNode as i, mergeProps as U, isVNode as xe, ref as O, unref as y, watchEffect as ve, onUnmounted as kt, onDeactivated as Mt, onMounted as Nt, defineComponent as ae, Fragment as Ie, nextTick as Et, createTextVNode as pe, renderSlot as jt, cloneVNode as zt, toRef as J, toRaw as ke } from "vue";
|
|
2
|
+
import { pick as at, cloneDeep as X, omit as $e } from "lodash-es";
|
|
3
|
+
import { isBoolean as Q, convertValueBoolean as fe, isObject as le, getSlot as nt, isFunction as be, arrayRepeat as Kt, runFunction as At, getSortIndex as Yt, isDeepEqualReact as ut, handleCurrentPage as Lt, genColumnKey as ot, compareArray as Vt, isNumber as it, isString as Ht, isArray as ze, getPrefixCls as Le, getRandomNumber as Ke, handleShowIndex as Wt, classNames as _t, hanndleField as Gt, getSlotVNode as Ce } from "@gx-design-vue/pro-utils";
|
|
4
|
+
import { useFullscreen as st, useWindowSize as qt } from "@vueuse/core";
|
|
5
|
+
import { Form as Ze, Grid as Ve, Space as oe, Button as et, Input as tt, TimePicker as Ut, DatePicker as rt, TreeSelect as Xt, Spin as Ae, Select as Jt, Popover as Qt, Checkbox as Zt, Tooltip as Z, Tree as el, Dropdown as tl, Menu as Fe, Empty as ct, Pagination as ll, Table as al, Typography as nl } from "ant-design-vue";
|
|
6
6
|
import { useProAppContext as ul } from "@gx-design-vue/pro-app";
|
|
7
7
|
import { useContext as ol, useProStyle as Be } from "@gx-design-vue/pro-provider";
|
|
8
|
-
import
|
|
8
|
+
import W from "dayjs";
|
|
9
9
|
import { tryOnUnmounted as il, useMemo as Re } from "@gx-design-vue/pro-hooks";
|
|
10
|
-
import { UpOutlined as sl, DownOutlined as rl, SettingOutlined as
|
|
10
|
+
import { UpOutlined as sl, DownOutlined as rl, SettingOutlined as dt, VerticalAlignTopOutlined as cl, VerticalAlignMiddleOutlined as dl, VerticalAlignBottomOutlined as fl, FullscreenExitOutlined as hl, FullscreenOutlined as vl, ColumnHeightOutlined as ml, InfoCircleOutlined as gl, ReloadOutlined as yl } from "@ant-design/icons-vue";
|
|
11
11
|
function ga(e, a) {
|
|
12
12
|
function t() {
|
|
13
|
-
return a != null && a.defaultValue &&
|
|
13
|
+
return a != null && a.defaultValue && le(a == null ? void 0 : a.defaultValue) ? a == null ? void 0 : a.defaultValue : {};
|
|
14
14
|
}
|
|
15
|
-
const n =
|
|
15
|
+
const n = ie({
|
|
16
16
|
...t(),
|
|
17
17
|
request: async (...u) => {
|
|
18
|
-
var
|
|
19
|
-
return a != null && a.request ? await ((
|
|
18
|
+
var v;
|
|
19
|
+
return a != null && a.request ? await ((v = a == null ? void 0 : a.request) == null ? void 0 : v.call(a, ...u)) : void 0;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
a != null && a.defaultValue && Dt(a.defaultValue) &&
|
|
22
|
+
a != null && a.defaultValue && Dt(a.defaultValue) && _(() => a == null ? void 0 : a.defaultValue, () => {
|
|
23
23
|
Object.assign(n, t());
|
|
24
24
|
}, { deep: !0 });
|
|
25
|
-
const s =
|
|
25
|
+
const s = w(() => {
|
|
26
26
|
var u;
|
|
27
27
|
return (u = e == null ? void 0 : e.value) == null ? void 0 : u.actionRef();
|
|
28
|
-
}), o =
|
|
28
|
+
}), o = w(() => {
|
|
29
29
|
var u;
|
|
30
30
|
return (u = e == null ? void 0 : e.value) == null ? void 0 : u.formRef();
|
|
31
|
-
}), f =
|
|
32
|
-
var
|
|
33
|
-
const u = Q((
|
|
31
|
+
}), f = w(() => {
|
|
32
|
+
var v, c, h, g;
|
|
33
|
+
const u = Q((v = s.value) == null ? void 0 : v.pageParams) ? {} : ((c = s.value) == null ? void 0 : c.pageParams) || {};
|
|
34
34
|
return {
|
|
35
|
-
...
|
|
36
|
-
...((g = (
|
|
35
|
+
...at(u, ["current", "pageSize"]),
|
|
36
|
+
...((g = (h = o.value) == null ? void 0 : h.getFormState) == null ? void 0 : g.call(h)) || {}
|
|
37
37
|
};
|
|
38
38
|
});
|
|
39
39
|
return {
|
|
@@ -41,45 +41,45 @@ function ga(e, a) {
|
|
|
41
41
|
actionRef: s,
|
|
42
42
|
tableState: n,
|
|
43
43
|
requestParams: f,
|
|
44
|
-
loading:
|
|
45
|
-
var u,
|
|
46
|
-
return fe((
|
|
44
|
+
loading: w(() => {
|
|
45
|
+
var u, v;
|
|
46
|
+
return fe((v = (u = e == null ? void 0 : e.value) == null ? void 0 : u.loading) == null ? void 0 : v.value);
|
|
47
47
|
}),
|
|
48
|
-
dataSource:
|
|
49
|
-
var u,
|
|
50
|
-
return ((
|
|
48
|
+
dataSource: w(() => {
|
|
49
|
+
var u, v;
|
|
50
|
+
return ((v = (u = e == null ? void 0 : e.value) == null ? void 0 : u.dataSource) == null ? void 0 : v.value) || [];
|
|
51
51
|
}),
|
|
52
|
-
selectedKey:
|
|
52
|
+
selectedKey: w(() => {
|
|
53
53
|
var u;
|
|
54
54
|
return ((u = s == null ? void 0 : s.value) == null ? void 0 : u.selectedKey) || [];
|
|
55
55
|
}),
|
|
56
|
-
selectedItem:
|
|
56
|
+
selectedItem: w(() => {
|
|
57
57
|
var u;
|
|
58
58
|
return ((u = s == null ? void 0 : s.value) == null ? void 0 : u.selectedItem) || [];
|
|
59
59
|
}),
|
|
60
60
|
mutate: (u) => {
|
|
61
|
-
var
|
|
62
|
-
return (c = (
|
|
61
|
+
var v, c;
|
|
62
|
+
return (c = (v = s.value) == null ? void 0 : v.reSetDataList) == null ? void 0 : c.call(v, u);
|
|
63
63
|
},
|
|
64
|
-
setPageAndReload: (u,
|
|
64
|
+
setPageAndReload: (u, v, c, h) => {
|
|
65
65
|
var g, r;
|
|
66
|
-
return (r = (g = s.value) == null ? void 0 : g.setPageAndReload) == null ? void 0 : r.call(g, u,
|
|
66
|
+
return (r = (g = s.value) == null ? void 0 : g.setPageAndReload) == null ? void 0 : r.call(g, u, v, c, h);
|
|
67
67
|
},
|
|
68
68
|
setPagination: (u) => {
|
|
69
|
-
var
|
|
70
|
-
return (c = (
|
|
69
|
+
var v, c;
|
|
70
|
+
return (c = (v = s.value) == null ? void 0 : v.setPagination) == null ? void 0 : c.call(v, u);
|
|
71
71
|
},
|
|
72
72
|
setLoading: (u) => {
|
|
73
|
-
var
|
|
74
|
-
return (c = (
|
|
73
|
+
var v, c;
|
|
74
|
+
return (c = (v = s.value) == null ? void 0 : v.setLoading) == null ? void 0 : c.call(v, u);
|
|
75
75
|
},
|
|
76
76
|
setData: (u) => {
|
|
77
|
-
var
|
|
78
|
-
return (c = (
|
|
77
|
+
var v, c;
|
|
78
|
+
return (c = (v = s.value) == null ? void 0 : v.setData) == null ? void 0 : c.call(v, u);
|
|
79
79
|
},
|
|
80
80
|
reload: (u) => {
|
|
81
|
-
var
|
|
82
|
-
return (c = (
|
|
81
|
+
var v, c;
|
|
82
|
+
return (c = (v = s.value) == null ? void 0 : v.reload) == null ? void 0 : c.call(v, u);
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
}
|
|
@@ -534,14 +534,14 @@ const bl = () => ({
|
|
|
534
534
|
onColumnsStateChange: Function
|
|
535
535
|
};
|
|
536
536
|
function pl(e) {
|
|
537
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
537
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !xe(e);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Sl(e, a, t, n) {
|
|
540
540
|
if (!a) return e;
|
|
541
541
|
let s = e;
|
|
542
|
-
if (
|
|
542
|
+
if (le(a)) {
|
|
543
543
|
const o = a.node === "a" ? "span" : a.node;
|
|
544
|
-
return i(o,
|
|
544
|
+
return i(o, U((a == null ? void 0 : a.attr) || {}, {
|
|
545
545
|
class: [a.class, a.node === "a" ? `${t}-a` : ""],
|
|
546
546
|
onClick: a.click
|
|
547
547
|
}), pl(e) ? e : {
|
|
@@ -555,36 +555,36 @@ function xl(e, a, t, n) {
|
|
|
555
555
|
}, [e]);
|
|
556
556
|
break;
|
|
557
557
|
case "time":
|
|
558
|
-
s =
|
|
558
|
+
s = W(e).format("HH:mm:ss");
|
|
559
559
|
break;
|
|
560
560
|
case "dateMonth":
|
|
561
|
-
s = `${
|
|
561
|
+
s = `${W(e).month() + 1}月`;
|
|
562
562
|
break;
|
|
563
563
|
case "dateTime":
|
|
564
|
-
s =
|
|
564
|
+
s = W(e).format("YYYY-MM-DD HH:mm:ss");
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
return s;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function xl(e, a) {
|
|
570
570
|
const t = a && a.current || 1, n = a && a.pageSize || 10;
|
|
571
571
|
return e.filter((s, o) => o < t * n && o >= n * (t - 1));
|
|
572
572
|
}
|
|
573
573
|
function wl({ emit: e, loading: a }) {
|
|
574
574
|
var o;
|
|
575
|
-
const t =
|
|
576
|
-
|
|
577
|
-
t.value = Q(f) ? f :
|
|
575
|
+
const t = O(Q(a.value) ? a.value : le(a.value) ? (o = a.value) == null ? void 0 : o.spinning : !1);
|
|
576
|
+
_(() => a.value, (f) => {
|
|
577
|
+
t.value = Q(f) ? f : le(f) ? f == null ? void 0 : f.spinning : t.value;
|
|
578
578
|
});
|
|
579
|
-
const n =
|
|
579
|
+
const n = w(() => y(t) || !1);
|
|
580
580
|
function s(f) {
|
|
581
581
|
t.value = f, e("loadingChange", !0);
|
|
582
582
|
}
|
|
583
583
|
return { loadingStatus: n, setLoading: s };
|
|
584
584
|
}
|
|
585
585
|
function Tl({ size: e, emit: a }) {
|
|
586
|
-
const t =
|
|
587
|
-
|
|
586
|
+
const t = O("middle");
|
|
587
|
+
ve(() => {
|
|
588
588
|
t.value = e.value;
|
|
589
589
|
});
|
|
590
590
|
function n(s) {
|
|
@@ -597,8 +597,8 @@ function $l({
|
|
|
597
597
|
props: a,
|
|
598
598
|
pagination: t
|
|
599
599
|
}) {
|
|
600
|
-
const n =
|
|
601
|
-
|
|
600
|
+
const n = ie({});
|
|
601
|
+
ve(() => {
|
|
602
602
|
if (t.value || t.value === void 0)
|
|
603
603
|
Object.assign(n, {
|
|
604
604
|
...t.value ?? {}
|
|
@@ -607,21 +607,21 @@ function $l({
|
|
|
607
607
|
for (const f in n)
|
|
608
608
|
delete n[f];
|
|
609
609
|
});
|
|
610
|
-
const s =
|
|
610
|
+
const s = w(() => {
|
|
611
611
|
var c;
|
|
612
612
|
if (Q(t.value) && !t.value)
|
|
613
613
|
return !1;
|
|
614
|
-
const f =
|
|
614
|
+
const f = nt(e, y(a), "pageItemRender"), u = be(f) ? {
|
|
615
615
|
itemRender: ({
|
|
616
|
-
page:
|
|
616
|
+
page: h,
|
|
617
617
|
type: g,
|
|
618
618
|
originalElement: r
|
|
619
619
|
}) => f ? f({
|
|
620
|
-
page:
|
|
620
|
+
page: h,
|
|
621
621
|
type: g,
|
|
622
622
|
originalElement: r
|
|
623
623
|
}) : null
|
|
624
|
-
} : null,
|
|
624
|
+
} : null, v = {
|
|
625
625
|
current: 1,
|
|
626
626
|
pageSize: 10,
|
|
627
627
|
size: "default",
|
|
@@ -632,7 +632,7 @@ function $l({
|
|
|
632
632
|
...y(n),
|
|
633
633
|
...u || {}
|
|
634
634
|
};
|
|
635
|
-
return (c = t.value) != null && c.showTotal || (
|
|
635
|
+
return (c = t.value) != null && c.showTotal || (v.showTotal = (h) => `共${h < v.pageSize ? 1 : Math.ceil(h / (v.pageSize || 10))}页 ${h}条记录`), v;
|
|
636
636
|
});
|
|
637
637
|
function o(f) {
|
|
638
638
|
const u = y(s);
|
|
@@ -647,8 +647,8 @@ function $l({
|
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
649
|
function Fl(e, a) {
|
|
650
|
-
const t =
|
|
651
|
-
|
|
650
|
+
const t = O([]), n = O([]);
|
|
651
|
+
_(() => {
|
|
652
652
|
var c;
|
|
653
653
|
return (c = a.value) == null ? void 0 : c.selectedRowKeys;
|
|
654
654
|
}, (c) => {
|
|
@@ -657,43 +657,43 @@ function Fl(e, a) {
|
|
|
657
657
|
deep: !0,
|
|
658
658
|
immediate: !0
|
|
659
659
|
});
|
|
660
|
-
const s = (c,
|
|
661
|
-
e.value && (
|
|
660
|
+
const s = (c, h) => {
|
|
661
|
+
e.value && (h ? c != null && c[e.value] && (t.value.push(c[e.value]), n.value.push(c)) : (t.value = t.value.filter((g) => g !== c[e.value]), n.value = n.value.filter((g) => g[e.value] !== c[e.value])));
|
|
662
662
|
}, o = () => {
|
|
663
|
-
var c,
|
|
664
|
-
a.value && ((
|
|
663
|
+
var c, h;
|
|
664
|
+
a.value && ((h = (c = a.value) == null ? void 0 : c.onChange) == null || h.call(c, t.value, n.value));
|
|
665
665
|
};
|
|
666
666
|
return {
|
|
667
667
|
selectedKey: t,
|
|
668
668
|
selectedItem: n,
|
|
669
669
|
selectRowKey: s,
|
|
670
|
-
selectAllRowKey: (c,
|
|
671
|
-
e.value && (c ?
|
|
670
|
+
selectAllRowKey: (c, h, g) => {
|
|
671
|
+
e.value && (c ? h.map((r) => (t.value.every((p) => p !== (r == null ? void 0 : r[e.value])) && r != null && r[e.value] && (t.value.push(r[e.value]), n.value.push(r)), r)) : g.map((r) => (t.value.includes(r == null ? void 0 : r[e.value]) && (t.value = t.value.filter((p) => p !== r[e.value]), n.value = n.value.filter((p) => p[e.value] !== r[e.value])), r)));
|
|
672
672
|
},
|
|
673
673
|
removeRowKeys: (c) => {
|
|
674
|
-
t.value = t.value.filter((
|
|
674
|
+
t.value = t.value.filter((h) => !c.includes(h)), n.value = n.value.filter((h) => !c.includes(h == null ? void 0 : h[e.value || ""])), o();
|
|
675
675
|
},
|
|
676
676
|
changeRowKey: o,
|
|
677
677
|
syncSelectedRows: (c) => {
|
|
678
678
|
if (e.value && t.value.length !== n.value.length) {
|
|
679
|
-
const
|
|
679
|
+
const h = n.value.map((r) => r[e.value]), g = t.value.filter((r) => !h.includes(r));
|
|
680
680
|
c.forEach((r) => {
|
|
681
|
-
g.includes(r[e.value]) && n.value.push(
|
|
681
|
+
g.includes(r[e.value]) && n.value.push(X(r));
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
};
|
|
686
686
|
}
|
|
687
687
|
function Rl(e, a) {
|
|
688
|
-
const t =
|
|
688
|
+
const t = w(() => a || 0), n = O(), s = O(e);
|
|
689
689
|
function o() {
|
|
690
690
|
n.value && clearTimeout(n.value);
|
|
691
691
|
}
|
|
692
692
|
async function f(...u) {
|
|
693
|
-
return t.value === 0 || t.value === void 0 ? s.value(...u) : (o(), new Promise(async (
|
|
693
|
+
return t.value === 0 || t.value === void 0 ? s.value(...u) : (o(), new Promise(async (v) => {
|
|
694
694
|
var c;
|
|
695
|
-
(c = u[0]) != null && c.immediate ?
|
|
696
|
-
|
|
695
|
+
(c = u[0]) != null && c.immediate ? v(await s.value(...u)) : n.value = setTimeout(async () => {
|
|
696
|
+
v(await s.value(...u));
|
|
697
697
|
}, t.value);
|
|
698
698
|
}));
|
|
699
699
|
}
|
|
@@ -703,7 +703,7 @@ function Rl(e, a) {
|
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
705
|
function Il(e) {
|
|
706
|
-
const a =
|
|
706
|
+
const a = w(() => e.polling), t = w(() => e.debounceTime), n = w(() => e.dataSource);
|
|
707
707
|
return {
|
|
708
708
|
polling: a,
|
|
709
709
|
request: e.request,
|
|
@@ -712,112 +712,112 @@ function Il(e) {
|
|
|
712
712
|
dataSource: n
|
|
713
713
|
};
|
|
714
714
|
}
|
|
715
|
-
function Bl({ polling: e, request: a, postData: t, dataSource: n, waitRequest: s, debounceTime: o }, { columns: f, loadingStatus: u, setLoading:
|
|
716
|
-
const
|
|
715
|
+
function Bl({ polling: e, request: a, postData: t, dataSource: n, waitRequest: s, debounceTime: o }, { columns: f, loadingStatus: u, setLoading: v, setColumns: c, removeRowKeys: h, syncSelectedRows: g, formParamsRef: r, setPagination: p, getPaginationInfo: C, onBeforeSearchSubmit: d, hasCustomRender: x }, I) {
|
|
716
|
+
const T = O(), B = O(!0), k = O(!1), G = O(!1), j = O([]), H = O(), L = async (m = {}) => {
|
|
717
717
|
var we;
|
|
718
|
-
const { pagination:
|
|
718
|
+
const { pagination: M, filters: A = {}, sorter: K = {}, removeKeys: me = [], isPolling: Pe = !1 } = m;
|
|
719
719
|
if (!a || !be(a) || y(s) && u.value || k.value)
|
|
720
720
|
return n.value || [];
|
|
721
|
-
if (k.value = !0, !Pe || y(s) ||
|
|
722
|
-
|
|
721
|
+
if (k.value = !0, !Pe || y(s) || B.value ? v(!0) : S(!0), y(s)) {
|
|
722
|
+
B.value = !1, k.value = !1;
|
|
723
723
|
return;
|
|
724
724
|
}
|
|
725
|
-
|
|
725
|
+
M && p(M);
|
|
726
726
|
try {
|
|
727
727
|
let ne = {};
|
|
728
|
-
if (Q(
|
|
728
|
+
if (Q(M) && !M || Q(C))
|
|
729
729
|
ne = {};
|
|
730
730
|
else {
|
|
731
|
-
const { current:
|
|
732
|
-
ne.pageNum = Lt({ current:
|
|
731
|
+
const { current: z = 1, pageSize: ue = 10, total: q } = y(C) || {};
|
|
732
|
+
ne.pageNum = Lt({ current: z, pageSize: ue, total: q }, me.length), me.length && h(me), ne.pageSize = ue;
|
|
733
733
|
}
|
|
734
|
-
const Te =
|
|
735
|
-
Te.forEach((
|
|
736
|
-
const ue = (
|
|
737
|
-
|
|
734
|
+
const Te = le(K) ? [K] : K;
|
|
735
|
+
Te.forEach((z) => {
|
|
736
|
+
const ue = (z == null ? void 0 : z.columnKey) || (z == null ? void 0 : z.field);
|
|
737
|
+
z && (z != null && z.order) ? c(y(f).map((q) => (q.dataIndex === ue ? q.sortOrder = z == null ? void 0 : z.order : q.sortOrder = null, q))) : z && c(y(f).map((q) => (q.dataIndex === ue && (q.sortOrder = null), q)));
|
|
738
738
|
});
|
|
739
|
-
let
|
|
739
|
+
let he = {
|
|
740
740
|
...ne || {},
|
|
741
741
|
...m.params,
|
|
742
742
|
...r
|
|
743
743
|
};
|
|
744
|
-
d && be(d) && (
|
|
744
|
+
d && be(d) && (he = await d(he, K, A));
|
|
745
745
|
let V = [];
|
|
746
|
-
const
|
|
747
|
-
return k.value = !1,
|
|
748
|
-
total:
|
|
749
|
-
}),
|
|
746
|
+
const ee = await (a == null ? void 0 : a(he, Te, A));
|
|
747
|
+
return k.value = !1, ee && (ee != null && ee.success) ? (V = ee.data || [], t && be(t) && (V = await (t == null ? void 0 : t(V))), g(V), (ee.total || (V == null ? void 0 : V.length) || 0) !== ((we = y(C)) == null ? void 0 : we.total) && p({
|
|
748
|
+
total: ee.total || (V == null ? void 0 : V.length) || 0
|
|
749
|
+
}), F(V), V) : [];
|
|
750
750
|
} catch (ne) {
|
|
751
|
-
|
|
751
|
+
j.value === void 0 && F([]), I("requestError", ne);
|
|
752
752
|
} finally {
|
|
753
|
-
|
|
753
|
+
B.value = !1, v(!1);
|
|
754
754
|
}
|
|
755
755
|
return [];
|
|
756
|
-
},
|
|
757
|
-
|
|
758
|
-
const
|
|
759
|
-
return A &&
|
|
760
|
-
|
|
761
|
-
}, Math.max(A, 2e3))),
|
|
756
|
+
}, D = Rl(async (m) => {
|
|
757
|
+
H.value && clearTimeout(H.value);
|
|
758
|
+
const M = await L(m), A = At(e.value, M);
|
|
759
|
+
return A && !T.value && (H.value = setTimeout(() => {
|
|
760
|
+
D.run({ ...m, isPolling: A });
|
|
761
|
+
}, Math.max(A, 2e3))), M;
|
|
762
762
|
}, o.value || 10);
|
|
763
763
|
kt(() => {
|
|
764
|
-
|
|
764
|
+
T.value = !0, clearTimeout(H.value);
|
|
765
765
|
}), Mt(() => {
|
|
766
|
-
|
|
767
|
-
}),
|
|
768
|
-
e.value ?
|
|
769
|
-
}, { immediate: !0 }),
|
|
770
|
-
fe(a) ? (!
|
|
766
|
+
T.value = !0, clearTimeout(H.value);
|
|
767
|
+
}), _(() => e.value, () => {
|
|
768
|
+
e.value ? D.run({ isPolling: !0 }) : clearTimeout(H.value);
|
|
769
|
+
}, { immediate: !0 }), _([() => s.value, () => n.value, () => r], () => {
|
|
770
|
+
fe(a) ? (!B.value || !e.value) && D.run({ isPolling: !1 }) : F(n.value || []);
|
|
771
771
|
}, {
|
|
772
772
|
deep: !0,
|
|
773
773
|
immediate: !0
|
|
774
774
|
});
|
|
775
|
-
const
|
|
776
|
-
if (
|
|
777
|
-
return y(
|
|
778
|
-
const m = f.value.filter((
|
|
779
|
-
return !y(
|
|
780
|
-
}), l =
|
|
781
|
-
function
|
|
782
|
-
|
|
775
|
+
const re = w(() => {
|
|
776
|
+
if (x.value)
|
|
777
|
+
return y(j);
|
|
778
|
+
const m = f.value.filter((M) => M.show || M.show === void 0);
|
|
779
|
+
return !y(j) || !m || m.length === 0 ? [] : y(j);
|
|
780
|
+
}), l = w(() => y(j).some((m) => m.children && m.children.length > 0));
|
|
781
|
+
function S(m) {
|
|
782
|
+
G.value = m;
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
|
|
784
|
+
function P(m, M, A, K) {
|
|
785
|
+
D.run({ pagination: m, filters: M, sorter: A, extra: K, isPolling: !1 }), I("change", m, M, A, K);
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function F(m) {
|
|
788
788
|
var A;
|
|
789
|
-
const
|
|
790
|
-
if (!
|
|
791
|
-
const K =
|
|
792
|
-
K !== ((A = y(C)) == null ? void 0 : A.total) &&
|
|
789
|
+
const M = Yt(X(m), y(C.value));
|
|
790
|
+
if (!ut(M, j.value) && (j.value = M, !a || !be(a))) {
|
|
791
|
+
const K = M.length || 0;
|
|
792
|
+
K !== ((A = y(C)) == null ? void 0 : A.total) && p({
|
|
793
793
|
total: K
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function N({ key: m, record: M, type: A = "update" }) {
|
|
798
798
|
switch (A) {
|
|
799
799
|
case "update":
|
|
800
|
-
|
|
800
|
+
j.value = j.value.map((K) => m && M[m] === K[m] ? { ...K, ...M } : K);
|
|
801
801
|
break;
|
|
802
802
|
case "push":
|
|
803
|
-
|
|
803
|
+
j.value.push(M);
|
|
804
804
|
break;
|
|
805
805
|
case "unshift":
|
|
806
|
-
|
|
806
|
+
j.value.unshift(M);
|
|
807
807
|
break;
|
|
808
808
|
case "delete":
|
|
809
|
-
|
|
809
|
+
j.value = j.value.filter((K) => m ? m && M[m] !== K[m] : !0);
|
|
810
810
|
break;
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
return {
|
|
814
|
-
dataSource:
|
|
814
|
+
dataSource: re,
|
|
815
815
|
isTreeDataRef: l,
|
|
816
|
-
reSetDataList:
|
|
817
|
-
changeDataValue:
|
|
818
|
-
handleTableChange:
|
|
816
|
+
reSetDataList: F,
|
|
817
|
+
changeDataValue: N,
|
|
818
|
+
handleTableChange: P,
|
|
819
819
|
reload: async (m) => {
|
|
820
|
-
fe(a) ? await
|
|
820
|
+
fe(a) ? await D.run({ ...m, isPolling: !1 }) : I("reload");
|
|
821
821
|
}
|
|
822
822
|
};
|
|
823
823
|
}
|
|
@@ -830,95 +830,95 @@ function Pl(e) {
|
|
|
830
830
|
}), a;
|
|
831
831
|
}
|
|
832
832
|
function Ol({ search: e, searchMap: a, params: t, columns: n, setPagination: s }) {
|
|
833
|
-
const o =
|
|
833
|
+
const o = ie({}), f = ie({}), u = O([]), v = w(() => {
|
|
834
834
|
var g;
|
|
835
|
-
return
|
|
835
|
+
return le(e.value) ? !!((g = e.value) != null && g.showSearch) : !!e.value;
|
|
836
836
|
}), c = (g) => {
|
|
837
|
-
var
|
|
837
|
+
var p, C;
|
|
838
838
|
const r = [];
|
|
839
|
-
if ((g === "all" || g === "searchMap") && ((
|
|
840
|
-
u.value.some((
|
|
841
|
-
...
|
|
839
|
+
if ((g === "all" || g === "searchMap") && ((p = a.value) == null || p.forEach((d) => r.push(d)), r.forEach((d) => {
|
|
840
|
+
u.value.some((x) => x.name === d.name) ? u.value = u.value.map((x) => x.name === d.name ? {
|
|
841
|
+
...x,
|
|
842
842
|
...d
|
|
843
|
-
} :
|
|
843
|
+
} : x) : u.value.push(d);
|
|
844
844
|
})), (g === "all" || g === "columns") && ((C = n.value) != null && C.length) && (n.value && n.value.forEach((d) => {
|
|
845
845
|
d.searchConfig && r.push(d.searchConfig);
|
|
846
846
|
}), r.forEach((d) => {
|
|
847
|
-
u.value.some((
|
|
848
|
-
...
|
|
847
|
+
u.value.some((x) => x.name === d.name) ? u.value = u.value.map((x) => x.name === d.name ? {
|
|
848
|
+
...x,
|
|
849
849
|
...d
|
|
850
|
-
} :
|
|
850
|
+
} : x) : u.value.push(d);
|
|
851
851
|
})), g === "all" || g === "searchMap" || g === "columns") {
|
|
852
852
|
s({ current: 1 });
|
|
853
853
|
const d = Pl(r);
|
|
854
854
|
Object.assign(f, { ...d });
|
|
855
|
-
for (const
|
|
856
|
-
o[
|
|
855
|
+
for (const x in d)
|
|
856
|
+
o[x] || (o[x] = d[x]);
|
|
857
857
|
}
|
|
858
|
-
(g === "all" || g === "params") && !
|
|
858
|
+
(g === "all" || g === "params") && !v.value && (s({ current: 1 }), Object.assign(o, t.value));
|
|
859
859
|
};
|
|
860
860
|
Nt(() => {
|
|
861
861
|
c("all");
|
|
862
|
-
}),
|
|
862
|
+
}), _(() => t.value, () => {
|
|
863
863
|
c("params");
|
|
864
864
|
}, {
|
|
865
865
|
deep: !0
|
|
866
|
-
}),
|
|
866
|
+
}), _(() => a.value, () => {
|
|
867
867
|
c("searchMap");
|
|
868
868
|
}, {
|
|
869
869
|
deep: !0
|
|
870
|
-
}),
|
|
870
|
+
}), _(() => n.value, () => {
|
|
871
871
|
c("columns");
|
|
872
872
|
}, {
|
|
873
873
|
deep: !0
|
|
874
874
|
});
|
|
875
|
-
function
|
|
875
|
+
function h(g) {
|
|
876
876
|
s({ current: 1 }), Object.assign(o, g);
|
|
877
877
|
}
|
|
878
|
-
return { formDataRef: u, formParamsRef: o, defaultParamsRef: f, setFormParams:
|
|
878
|
+
return { formDataRef: u, formParamsRef: o, defaultParamsRef: f, setFormParams: h };
|
|
879
879
|
}
|
|
880
880
|
function Dl({ columns: e, columnsState: a, changeColumns: t }) {
|
|
881
|
-
const n =
|
|
882
|
-
|
|
883
|
-
var
|
|
884
|
-
(
|
|
885
|
-
const d =
|
|
886
|
-
d && (f[d] = { show: g === void 0 ? !0 : g, fixed:
|
|
881
|
+
const n = O(void 0), s = ie({}), o = ie({}), f = ie({}), u = O([]);
|
|
882
|
+
_(() => e.value, () => {
|
|
883
|
+
var h;
|
|
884
|
+
(h = y(e)) == null || h.forEach(({ show: g, key: r, fixed: p }, C) => {
|
|
885
|
+
const d = ot(r, C);
|
|
886
|
+
d && (f[d] = { show: g === void 0 ? !0 : g, fixed: p });
|
|
887
887
|
});
|
|
888
888
|
}, {
|
|
889
889
|
deep: !0,
|
|
890
890
|
immediate: !0
|
|
891
|
-
}),
|
|
892
|
-
const
|
|
893
|
-
c(
|
|
891
|
+
}), _(() => e.value, () => {
|
|
892
|
+
const h = y(e).map((g) => g.key);
|
|
893
|
+
c(h);
|
|
894
894
|
}, {
|
|
895
895
|
deep: !0,
|
|
896
896
|
immediate: !0
|
|
897
|
-
}),
|
|
897
|
+
}), ve(() => {
|
|
898
898
|
var g;
|
|
899
|
-
const
|
|
899
|
+
const h = {
|
|
900
900
|
...(g = y(a)) == null ? void 0 : g.value,
|
|
901
901
|
...y(f)
|
|
902
902
|
};
|
|
903
|
-
Object.assign(s,
|
|
903
|
+
Object.assign(s, h), Object.assign(o, h);
|
|
904
904
|
});
|
|
905
|
-
function h
|
|
906
|
-
n.value = g, Object.assign(s,
|
|
905
|
+
function v(h, g) {
|
|
906
|
+
n.value = g, Object.assign(s, h), t == null || t(s, g === "fixed");
|
|
907
907
|
}
|
|
908
|
-
function c(
|
|
909
|
-
u.value =
|
|
908
|
+
function c(h) {
|
|
909
|
+
u.value = h;
|
|
910
910
|
}
|
|
911
911
|
return {
|
|
912
912
|
columnsMap: s,
|
|
913
913
|
operationType: n,
|
|
914
|
-
setColumnsMap:
|
|
914
|
+
setColumnsMap: v,
|
|
915
915
|
sortKeyColumns: u,
|
|
916
916
|
cacheColumnsMap: o,
|
|
917
917
|
setSortKeyColumns: c
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
function kl(e) {
|
|
921
|
-
const a =
|
|
921
|
+
const a = w(() => e.draggabled), t = w(() => e.neverScroll), n = w(() => e.autoScroll);
|
|
922
922
|
return {
|
|
923
923
|
draggabled: a,
|
|
924
924
|
neverScroll: t,
|
|
@@ -926,8 +926,8 @@ function kl(e) {
|
|
|
926
926
|
};
|
|
927
927
|
}
|
|
928
928
|
function Ml({ scroll: e, columns: a, breakpoint: t, draggabled: n, autoScroll: s, neverScroll: o }) {
|
|
929
|
-
const f =
|
|
930
|
-
|
|
929
|
+
const f = O([]), u = O([]);
|
|
930
|
+
_([
|
|
931
931
|
() => e.value,
|
|
932
932
|
() => a.value,
|
|
933
933
|
() => t.value,
|
|
@@ -935,73 +935,73 @@ function Ml({ scroll: e, columns: a, breakpoint: t, draggabled: n, autoScroll: s
|
|
|
935
935
|
() => s.value,
|
|
936
936
|
() => o.value
|
|
937
937
|
], () => {
|
|
938
|
-
f.value =
|
|
938
|
+
f.value = X(h(y(a))), u.value = X(h(y(a)));
|
|
939
939
|
}, {
|
|
940
940
|
deep: !0,
|
|
941
941
|
immediate: !0
|
|
942
942
|
});
|
|
943
|
-
const
|
|
944
|
-
const C = c(y(f).filter((
|
|
943
|
+
const v = w(() => {
|
|
944
|
+
const C = c(y(f).filter((I) => I.fixed === "left")), d = c(y(f).filter((I) => I.fixed !== "left" && I.fixed !== "right")), x = c(y(f).filter((I) => I.fixed === "right"));
|
|
945
945
|
return [
|
|
946
946
|
...C,
|
|
947
947
|
...d,
|
|
948
|
-
...
|
|
948
|
+
...x
|
|
949
949
|
];
|
|
950
950
|
});
|
|
951
951
|
function c(C) {
|
|
952
|
-
return C.sort((d,
|
|
952
|
+
return C.sort((d, x) => Vt(d, x, "order", 0));
|
|
953
953
|
}
|
|
954
|
-
function
|
|
955
|
-
return
|
|
956
|
-
var
|
|
957
|
-
if (d.dataIndex === "action" ||
|
|
954
|
+
function h(C) {
|
|
955
|
+
return X(C).map((d, x) => {
|
|
956
|
+
var I;
|
|
957
|
+
if (d.dataIndex === "action" || x === C.length - 1 ? d.resizable = !1 : d.resizable = Q(d.resizable) ? d.resizable : !!(it(d.width) && y(n)), !d.width || y(o))
|
|
958
958
|
return d;
|
|
959
959
|
if (d.dataIndex === "action" && y(s))
|
|
960
|
-
if ((
|
|
960
|
+
if ((I = y(e)) != null && I.x || !y(t))
|
|
961
961
|
d.width = d.width || 100, d.fixed = "right";
|
|
962
962
|
else {
|
|
963
|
-
const
|
|
964
|
-
d.width = (
|
|
963
|
+
const T = y(a).find((B) => B.dataIndex === d.dataIndex);
|
|
964
|
+
d.width = (T == null ? void 0 : T.width) || "", d.fixed = T == null ? void 0 : T.fixed;
|
|
965
965
|
}
|
|
966
966
|
return d;
|
|
967
967
|
});
|
|
968
968
|
}
|
|
969
969
|
function g(C, d) {
|
|
970
|
-
f.value = f.value.map((
|
|
970
|
+
f.value = f.value.map((x) => (x.uuid === d.uuid && (x.width = C), x));
|
|
971
971
|
}
|
|
972
972
|
function r(C) {
|
|
973
973
|
if (C.length <= 0) {
|
|
974
974
|
f.value = [];
|
|
975
975
|
return;
|
|
976
976
|
}
|
|
977
|
-
|
|
977
|
+
ut(h(X(C)), f.value) || (f.value = h(X(C)));
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
let d =
|
|
981
|
-
d = d.map((
|
|
982
|
-
var
|
|
983
|
-
const
|
|
984
|
-
show: (
|
|
985
|
-
fixed: (
|
|
986
|
-
order: (k = C[
|
|
979
|
+
function p(C) {
|
|
980
|
+
let d = X(a.value);
|
|
981
|
+
d = d.map((x) => {
|
|
982
|
+
var T, B, k;
|
|
983
|
+
const I = x.key ? {
|
|
984
|
+
show: (T = C[x.key]) == null ? void 0 : T.show,
|
|
985
|
+
fixed: (B = C[x.key]) == null ? void 0 : B.fixed,
|
|
986
|
+
order: (k = C[x.key]) == null ? void 0 : k.order
|
|
987
987
|
} : {};
|
|
988
988
|
return {
|
|
989
|
-
...
|
|
990
|
-
...
|
|
989
|
+
...x,
|
|
990
|
+
...I
|
|
991
991
|
};
|
|
992
992
|
}), r(d);
|
|
993
993
|
}
|
|
994
994
|
return {
|
|
995
995
|
breakpoint: t,
|
|
996
|
-
getProColumns:
|
|
996
|
+
getProColumns: v,
|
|
997
997
|
cacheProColumns: u,
|
|
998
998
|
setColumns: r,
|
|
999
|
-
changeColumns:
|
|
999
|
+
changeColumns: p,
|
|
1000
1000
|
resizeColumnWidth: g
|
|
1001
1001
|
};
|
|
1002
1002
|
}
|
|
1003
1003
|
function Nl(e) {
|
|
1004
|
-
const a =
|
|
1004
|
+
const a = w(() => e.scroll), t = w(() => e.autoScroll), n = w(() => e.modalScroll), s = w(() => e.neverScroll), o = w(() => e.rowSelection), f = w(() => e.scrollBreakpoint);
|
|
1005
1005
|
return {
|
|
1006
1006
|
scroll: a,
|
|
1007
1007
|
neverScroll: s,
|
|
@@ -1011,29 +1011,29 @@ function Nl(e) {
|
|
|
1011
1011
|
scrollBreakpoint: f
|
|
1012
1012
|
};
|
|
1013
1013
|
}
|
|
1014
|
-
function El({ scroll: e, columns: a, autoScroll: t, modalScroll: n, neverScroll: s, rowSelection: o, screens: f, innerWidth: u, scrollBreakpoint:
|
|
1015
|
-
const c =
|
|
1016
|
-
var r,
|
|
1017
|
-
return y(
|
|
1018
|
-
}),
|
|
1014
|
+
function El({ scroll: e, columns: a, autoScroll: t, modalScroll: n, neverScroll: s, rowSelection: o, screens: f, innerWidth: u, scrollBreakpoint: v }) {
|
|
1015
|
+
const c = w(() => {
|
|
1016
|
+
var r, p, C;
|
|
1017
|
+
return y(v) ? it(y(v)) ? u.value > y(v) : Ht(y(v)) ? (r = f.value) == null ? void 0 : r[y(v)] : (p = f.value) == null ? void 0 : p.xl : (C = f.value) == null ? void 0 : C.xl;
|
|
1018
|
+
}), h = w(() => {
|
|
1019
1019
|
let r = 0;
|
|
1020
|
-
const
|
|
1021
|
-
d.forEach((
|
|
1022
|
-
r += Number.parseInt(
|
|
1020
|
+
const p = y(o) ? 60 : 0, C = 150, d = X(y(a));
|
|
1021
|
+
d.forEach((T) => {
|
|
1022
|
+
r += Number.parseInt(T.width) || 0;
|
|
1023
1023
|
});
|
|
1024
|
-
const
|
|
1025
|
-
return
|
|
1024
|
+
const I = d.filter((T) => !Reflect.has(T, "width")).length;
|
|
1025
|
+
return I !== 0 && (r += I * C), p && (r += p), r;
|
|
1026
1026
|
});
|
|
1027
|
-
return { getScrollRef:
|
|
1028
|
-
var r,
|
|
1027
|
+
return { getScrollRef: w(() => {
|
|
1028
|
+
var r, p;
|
|
1029
1029
|
return y(s) ? {} : y(e) && Object.keys(y(e)).length ? y(e) : y(n) ? {
|
|
1030
|
-
y: ((r = y(e)) == null ? void 0 : r.y) || ((
|
|
1031
|
-
} : y(t) ? c.value ? {} : Q(c.value) ? { x: y(
|
|
1030
|
+
y: ((r = y(e)) == null ? void 0 : r.y) || ((p = f.value) != null && p.xl ? 400 : 235)
|
|
1031
|
+
} : y(t) ? c.value ? {} : Q(c.value) ? { x: y(h) } : {} : {};
|
|
1032
1032
|
}), breakpoint: c };
|
|
1033
1033
|
}
|
|
1034
|
-
const { provideContext: jl, useInjectContext:
|
|
1034
|
+
const { provideContext: jl, useInjectContext: se } = ol("pro-table");
|
|
1035
1035
|
function zl(e, a) {
|
|
1036
|
-
const t =
|
|
1036
|
+
const t = ie({});
|
|
1037
1037
|
function n() {
|
|
1038
1038
|
Object.keys(e).forEach((f) => {
|
|
1039
1039
|
s(f, e[f]);
|
|
@@ -1044,7 +1044,7 @@ function zl(e, a) {
|
|
|
1044
1044
|
e[o.rangeEndName || "end"]
|
|
1045
1045
|
] : []);
|
|
1046
1046
|
}
|
|
1047
|
-
|
|
1047
|
+
ve(() => {
|
|
1048
1048
|
n();
|
|
1049
1049
|
});
|
|
1050
1050
|
function s(o, f) {
|
|
@@ -1088,7 +1088,7 @@ const Kl = (e) => ({
|
|
|
1088
1088
|
} = Ve, {
|
|
1089
1089
|
MonthPicker: Yl,
|
|
1090
1090
|
RangePicker: Ll
|
|
1091
|
-
} =
|
|
1091
|
+
} = rt, ft = /* @__PURE__ */ ae({
|
|
1092
1092
|
name: "ProTableForm",
|
|
1093
1093
|
props: {
|
|
1094
1094
|
search: {
|
|
@@ -1118,15 +1118,15 @@ const Kl = (e) => ({
|
|
|
1118
1118
|
hashId: o
|
|
1119
1119
|
} = Be("ProTableForm", [Kl], e.prefixCls), f = Al(), {
|
|
1120
1120
|
formState: u,
|
|
1121
|
-
resetFormState:
|
|
1121
|
+
resetFormState: v,
|
|
1122
1122
|
changeFormState: c
|
|
1123
|
-
} = zl(e.defaultParams || {}, e.searchMap || []),
|
|
1123
|
+
} = zl(e.defaultParams || {}, e.searchMap || []), h = O(!1), g = w(() => {
|
|
1124
1124
|
var l;
|
|
1125
1125
|
return !!((l = e.search) != null && l.showSearch);
|
|
1126
|
-
}), r =
|
|
1127
|
-
var l,
|
|
1128
|
-
return ((l = e.search) == null ? void 0 : l.showReset) === void 0 ? g.value : (
|
|
1129
|
-
}),
|
|
1126
|
+
}), r = w(() => {
|
|
1127
|
+
var l, S;
|
|
1128
|
+
return ((l = e.search) == null ? void 0 : l.showReset) === void 0 ? g.value : (S = e.search) == null ? void 0 : S.showReset;
|
|
1129
|
+
}), p = [{
|
|
1130
1130
|
value: "xxl",
|
|
1131
1131
|
span: 4
|
|
1132
1132
|
}, {
|
|
@@ -1145,115 +1145,115 @@ const Kl = (e) => ({
|
|
|
1145
1145
|
value: "xs",
|
|
1146
1146
|
span: 1
|
|
1147
1147
|
}], C = (l) => {
|
|
1148
|
-
let
|
|
1149
|
-
for (let
|
|
1150
|
-
const
|
|
1151
|
-
if (f.value[
|
|
1152
|
-
|
|
1148
|
+
let S = 4;
|
|
1149
|
+
for (let P = 0; P < p.length; P += 1) {
|
|
1150
|
+
const F = p[P].value;
|
|
1151
|
+
if (f.value[F]) {
|
|
1152
|
+
S = (l == null ? void 0 : l[F]) || (e.modal ? 3 : p[P].span);
|
|
1153
1153
|
break;
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
|
-
return
|
|
1157
|
-
}, d =
|
|
1156
|
+
return S;
|
|
1157
|
+
}, d = w(() => {
|
|
1158
1158
|
var l;
|
|
1159
1159
|
return C((l = e.search) == null ? void 0 : l.span);
|
|
1160
1160
|
});
|
|
1161
|
-
|
|
1161
|
+
_(() => {
|
|
1162
1162
|
var l;
|
|
1163
1163
|
return (l = e.search) == null ? void 0 : l.defaultCollapsed;
|
|
1164
1164
|
}, (l) => {
|
|
1165
|
-
|
|
1165
|
+
h.value = h.value || !!l;
|
|
1166
1166
|
});
|
|
1167
|
-
const
|
|
1168
|
-
|
|
1169
|
-
},
|
|
1170
|
-
...
|
|
1167
|
+
const x = (l) => {
|
|
1168
|
+
h.value = l;
|
|
1169
|
+
}, I = (l, S, P) => (l + 1) % S === 0 ? {
|
|
1170
|
+
...P,
|
|
1171
1171
|
marginRight: 0
|
|
1172
1172
|
} : {
|
|
1173
|
-
...
|
|
1173
|
+
...P,
|
|
1174
1174
|
marginRight: "2%"
|
|
1175
|
-
},
|
|
1176
|
-
const l =
|
|
1177
|
-
return
|
|
1178
|
-
},
|
|
1175
|
+
}, T = () => {
|
|
1176
|
+
const l = X(u), S = e.searchMap.find((N) => N.valueType === "text") || "", P = e.searchMap.find((N) => N.valueType === "dateRange") || "", F = e.searchMap.find((N) => N.valueType === "treeSelect") || "";
|
|
1177
|
+
return S && (l[S.name] = u[S.name] || S.initialValue || ""), P && (l[P.rangeStartName || "start"] = l[P.name] ? l[P.name][0] : "", l[P.rangeEndName || "end"] = l[P.name] ? l[P.name][1] : "", delete l[P.name]), F && (ze(u[F.name]) && (l[F.name] = u[F.name].length ? u[F.name].map((N) => N[F.valueKey === "text" ? "label" : "value"]).join() : ""), F && ze(l[F.name]) && (l[F.name] = l[F.name].length ? l[F.name].map((N) => N[F.valueKey === "text" ? "label" : "value"]) : "")), l;
|
|
1178
|
+
}, B = (l = !1, S) => {
|
|
1179
1179
|
Et(() => {
|
|
1180
|
-
(!g.value || l) && a("search",
|
|
1180
|
+
(!g.value || l) && a("search", T(), !!S);
|
|
1181
1181
|
});
|
|
1182
|
-
}, k = (l,
|
|
1183
|
-
var
|
|
1184
|
-
switch (
|
|
1182
|
+
}, k = (l, S) => {
|
|
1183
|
+
var P, F, N;
|
|
1184
|
+
switch (S.valueType) {
|
|
1185
1185
|
case "text":
|
|
1186
|
-
c(
|
|
1186
|
+
c(S.name || "", l || S.initialValue || "");
|
|
1187
1187
|
break;
|
|
1188
1188
|
case "select":
|
|
1189
|
-
c(
|
|
1189
|
+
c(S.name || "", l || l === 0 ? l : S.initialValue || void 0);
|
|
1190
1190
|
break;
|
|
1191
1191
|
case "treeSelect":
|
|
1192
|
-
c(
|
|
1192
|
+
c(S.name || "", l || l === 0 ? l : S.initialValue || ((P = S.field) != null && P.treeCheckable || (F = S.field) != null && F.multiple ? [] : null));
|
|
1193
1193
|
break;
|
|
1194
1194
|
case "date":
|
|
1195
|
-
c(
|
|
1195
|
+
c(S.name || "", l ? W(l).format(S.valueFormat || "YYYY-MM-DD") : S.initialValue || null);
|
|
1196
1196
|
break;
|
|
1197
1197
|
case "dateMonth":
|
|
1198
|
-
c(
|
|
1198
|
+
c(S.name || "", l ? W(l).format("YYYY-MM") : S.initialValue || null);
|
|
1199
1199
|
break;
|
|
1200
1200
|
case "dateRange":
|
|
1201
|
-
c(
|
|
1201
|
+
c(S.name || "", l && l.length > 0 ? [W(l[0]).format(S.valueFormat || "YYYY-MM-DD"), W(l[1]).format(S.valueFormat || "YYYY-MM-DD")] : S.initialValue || null);
|
|
1202
1202
|
break;
|
|
1203
1203
|
case "time":
|
|
1204
|
-
c(
|
|
1204
|
+
c(S.name || "", l ? W(l).format(S.valueFormat || "HH:mm:ss") : S.initialValue || null);
|
|
1205
1205
|
break;
|
|
1206
1206
|
}
|
|
1207
|
-
(
|
|
1208
|
-
},
|
|
1209
|
-
|
|
1207
|
+
(N = e.search) != null && N.showSearch || S.valueType === "text" || (S.valueType === "treeSelect" || S.valueType, B());
|
|
1208
|
+
}, G = (l = !0) => {
|
|
1209
|
+
v(), B(!0, l);
|
|
1210
1210
|
};
|
|
1211
1211
|
n({
|
|
1212
|
-
getFormState: () =>
|
|
1213
|
-
resetForm:
|
|
1212
|
+
getFormState: () => T(),
|
|
1213
|
+
resetForm: G
|
|
1214
1214
|
});
|
|
1215
|
-
const
|
|
1216
|
-
default: () => [r.value && i(
|
|
1217
|
-
onClick: () =>
|
|
1215
|
+
const j = () => (g.value || r.value) && i(oe, null, {
|
|
1216
|
+
default: () => [r.value && i(et, {
|
|
1217
|
+
onClick: () => G()
|
|
1218
1218
|
}, {
|
|
1219
1219
|
default: () => {
|
|
1220
1220
|
var l;
|
|
1221
1221
|
return [((l = e.search) == null ? void 0 : l.resetText) || "重置"];
|
|
1222
1222
|
}
|
|
1223
|
-
}), g.value && i(
|
|
1223
|
+
}), g.value && i(et, {
|
|
1224
1224
|
loading: e.loading,
|
|
1225
1225
|
type: "primary",
|
|
1226
|
-
onClick: () =>
|
|
1226
|
+
onClick: () => B(!0)
|
|
1227
1227
|
}, {
|
|
1228
1228
|
default: () => {
|
|
1229
1229
|
var l;
|
|
1230
1230
|
return [((l = e.search) == null ? void 0 : l.searchText) || "查询"];
|
|
1231
1231
|
}
|
|
1232
1232
|
})]
|
|
1233
|
-
}),
|
|
1233
|
+
}), H = ({
|
|
1234
1234
|
formItemStyle: l,
|
|
1235
|
-
advanced:
|
|
1236
|
-
showAdvanced:
|
|
1235
|
+
advanced: S,
|
|
1236
|
+
showAdvanced: P = !0
|
|
1237
1237
|
}) => i("div", {
|
|
1238
1238
|
style: l,
|
|
1239
1239
|
class: `${e.prefixCls}-form-collapse-button ${o.value}`
|
|
1240
|
-
}, [i(
|
|
1240
|
+
}, [i(oe, {
|
|
1241
1241
|
size: 16
|
|
1242
1242
|
}, {
|
|
1243
1243
|
default: () => {
|
|
1244
|
-
var
|
|
1245
|
-
return [
|
|
1244
|
+
var F, N;
|
|
1245
|
+
return [j(), P && i("span", {
|
|
1246
1246
|
class: `${e.prefixCls}-a ${o.value}`,
|
|
1247
|
-
onClick: () =>
|
|
1248
|
-
}, [
|
|
1247
|
+
onClick: () => x(!S)
|
|
1248
|
+
}, [S ? "收起" : "展开", (F = e.search) != null && F.collapseRender ? (N = e.search) == null ? void 0 : N.collapseRender() : S ? i(sl, null, null) : i(rl, null, null)])];
|
|
1249
1249
|
}
|
|
1250
|
-
})]),
|
|
1251
|
-
var
|
|
1252
|
-
let
|
|
1253
|
-
const
|
|
1250
|
+
})]), L = (l) => {
|
|
1251
|
+
var F, N;
|
|
1252
|
+
let S;
|
|
1253
|
+
const P = g.value ? tt : tt.Search;
|
|
1254
1254
|
switch (l.valueType) {
|
|
1255
1255
|
case "text":
|
|
1256
|
-
|
|
1256
|
+
S = i(P, U({
|
|
1257
1257
|
style: {
|
|
1258
1258
|
width: "100%"
|
|
1259
1259
|
},
|
|
@@ -1261,11 +1261,11 @@ const Kl = (e) => ({
|
|
|
1261
1261
|
placeholder: l.placeholder || "请输入",
|
|
1262
1262
|
allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
|
|
1263
1263
|
onChange: (m) => k(m.target.value, l),
|
|
1264
|
-
onSearch: (m) =>
|
|
1264
|
+
onSearch: (m) => B()
|
|
1265
1265
|
}, l.field || {}), null);
|
|
1266
1266
|
break;
|
|
1267
1267
|
case "select":
|
|
1268
|
-
|
|
1268
|
+
S = i(Jt, U({
|
|
1269
1269
|
style: {
|
|
1270
1270
|
width: "100%"
|
|
1271
1271
|
},
|
|
@@ -1279,14 +1279,14 @@ const Kl = (e) => ({
|
|
|
1279
1279
|
size: "small"
|
|
1280
1280
|
}, null) : void 0,
|
|
1281
1281
|
onChange: (m) => k(m, l),
|
|
1282
|
-
options: (
|
|
1282
|
+
options: (F = l == null ? void 0 : l.valueEnum) == null ? void 0 : F.map((m) => ({
|
|
1283
1283
|
label: m.text,
|
|
1284
1284
|
value: m.value
|
|
1285
1285
|
}))
|
|
1286
1286
|
}, l.field || {}), null);
|
|
1287
1287
|
break;
|
|
1288
1288
|
case "treeSelect":
|
|
1289
|
-
|
|
1289
|
+
S = i(Xt, U({
|
|
1290
1290
|
style: {
|
|
1291
1291
|
width: "100%"
|
|
1292
1292
|
},
|
|
@@ -1302,11 +1302,11 @@ const Kl = (e) => ({
|
|
|
1302
1302
|
}, l.field || {}), null);
|
|
1303
1303
|
break;
|
|
1304
1304
|
case "date":
|
|
1305
|
-
|
|
1305
|
+
S = i(rt, U({
|
|
1306
1306
|
style: {
|
|
1307
1307
|
width: "100%"
|
|
1308
1308
|
},
|
|
1309
|
-
value: u[l.name] ?
|
|
1309
|
+
value: u[l.name] ? W(u[l.name], l.valueFormat || "YYYY-MM-DD") : void 0,
|
|
1310
1310
|
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
1311
1311
|
placeholder: l.placeholder || "请选择",
|
|
1312
1312
|
allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
|
|
@@ -1317,22 +1317,22 @@ const Kl = (e) => ({
|
|
|
1317
1317
|
}, l.field || {}), null);
|
|
1318
1318
|
break;
|
|
1319
1319
|
case "dateMonth":
|
|
1320
|
-
|
|
1320
|
+
S = i(Yl, U({
|
|
1321
1321
|
style: {
|
|
1322
1322
|
width: "100%"
|
|
1323
1323
|
},
|
|
1324
|
-
value: u[l.name] ?
|
|
1324
|
+
value: u[l.name] ? W(u[l.name], l.valueFormat || "YYYY-MM") : void 0,
|
|
1325
1325
|
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
1326
1326
|
placeholder: l.placeholder || "请选择",
|
|
1327
1327
|
onChange: (m) => k(m, l)
|
|
1328
1328
|
}, l.field || {}), null);
|
|
1329
1329
|
break;
|
|
1330
1330
|
case "dateRange":
|
|
1331
|
-
|
|
1331
|
+
S = i(Ll, U({
|
|
1332
1332
|
style: {
|
|
1333
1333
|
width: "100%"
|
|
1334
1334
|
},
|
|
1335
|
-
value: (
|
|
1335
|
+
value: (N = u[l.name]) != null && N.length ? [W(u[l.name][0], l.valueFormat || "YYYY-MM-DD HH:mm:ss"), W(u[l.name][1], l.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
|
|
1336
1336
|
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
1337
1337
|
placeholder: l.placeholder || ["开始日期", "结束日期"],
|
|
1338
1338
|
format: l.valueFormat || "YYYY-MM-DD HH:mm:ss",
|
|
@@ -1341,11 +1341,11 @@ const Kl = (e) => ({
|
|
|
1341
1341
|
}, l.field || {}), null);
|
|
1342
1342
|
break;
|
|
1343
1343
|
case "time":
|
|
1344
|
-
|
|
1344
|
+
S = i(Ut, U({
|
|
1345
1345
|
style: {
|
|
1346
1346
|
width: "100%"
|
|
1347
1347
|
},
|
|
1348
|
-
value: u[l.name] ?
|
|
1348
|
+
value: u[l.name] ? W(u[l.name], l.valueFormat || "HH:mm:ss") : void 0,
|
|
1349
1349
|
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
1350
1350
|
placeholder: l.placeholder || "请选择",
|
|
1351
1351
|
allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
|
|
@@ -1355,39 +1355,39 @@ const Kl = (e) => ({
|
|
|
1355
1355
|
}, l.field || {}), null);
|
|
1356
1356
|
break;
|
|
1357
1357
|
}
|
|
1358
|
-
return
|
|
1359
|
-
},
|
|
1358
|
+
return S;
|
|
1359
|
+
}, D = ({
|
|
1360
1360
|
formItemStyle: l,
|
|
1361
|
-
item:
|
|
1361
|
+
item: S
|
|
1362
1362
|
}) => i("div", {
|
|
1363
1363
|
class: `${e.prefixCls}-form-item`,
|
|
1364
1364
|
style: l
|
|
1365
|
-
}, [i(
|
|
1366
|
-
default: () => [
|
|
1367
|
-
})]),
|
|
1368
|
-
var
|
|
1369
|
-
const l = [...e.searchMap, ...((
|
|
1370
|
-
return l.map((
|
|
1371
|
-
const
|
|
1365
|
+
}, [i(Ze.Item, null, {
|
|
1366
|
+
default: () => [S.__v_isVNode ? S : L(S)]
|
|
1367
|
+
})]), re = () => {
|
|
1368
|
+
var S;
|
|
1369
|
+
const l = [...e.searchMap, ...((S = t.default) == null ? void 0 : S.call(t)) || []];
|
|
1370
|
+
return l.map((P, F) => {
|
|
1371
|
+
const N = {
|
|
1372
1372
|
width: `${(100 - (d.value - 1) * 2) / d.value}%`
|
|
1373
|
-
}, m = F
|
|
1374
|
-
return l.length < d.value ||
|
|
1373
|
+
}, m = I(F, d.value, N);
|
|
1374
|
+
return l.length < d.value || h.value ? i(Ie, null, [D({
|
|
1375
1375
|
formItemStyle: m,
|
|
1376
|
-
item:
|
|
1377
|
-
}),
|
|
1376
|
+
item: P
|
|
1377
|
+
}), F === l.length - 1 && H({
|
|
1378
1378
|
formItemStyle: {
|
|
1379
1379
|
flex: 1,
|
|
1380
1380
|
justifyContent: "flex-end"
|
|
1381
1381
|
},
|
|
1382
|
-
advanced:
|
|
1383
|
-
showAdvanced:
|
|
1384
|
-
})]) : i(Ie, null, [
|
|
1382
|
+
advanced: h.value,
|
|
1383
|
+
showAdvanced: h.value
|
|
1384
|
+
})]) : i(Ie, null, [F < d.value - 1 && D({
|
|
1385
1385
|
formItemStyle: m,
|
|
1386
|
-
item:
|
|
1387
|
-
}),
|
|
1386
|
+
item: P
|
|
1387
|
+
}), F === d.value - 1 && (d.value - 1 === 0 || l.length === d.value) && D({
|
|
1388
1388
|
formItemStyle: m,
|
|
1389
|
-
item:
|
|
1390
|
-
}),
|
|
1389
|
+
item: P
|
|
1390
|
+
}), F === d.value - 1 && l.length !== d.value && H({
|
|
1391
1391
|
formItemStyle: {
|
|
1392
1392
|
flex: 1,
|
|
1393
1393
|
justifyContent: "flex-end"
|
|
@@ -1398,25 +1398,25 @@ const Kl = (e) => ({
|
|
|
1398
1398
|
});
|
|
1399
1399
|
};
|
|
1400
1400
|
return () => {
|
|
1401
|
-
var l,
|
|
1401
|
+
var l, S;
|
|
1402
1402
|
return s(i("div", {
|
|
1403
1403
|
class: {
|
|
1404
1404
|
[`${o.value}`]: !0,
|
|
1405
1405
|
[`${y(e.prefixCls)}-search`]: !0,
|
|
1406
|
-
[`${(l = e.search) == null ? void 0 : l.className}`]: (
|
|
1406
|
+
[`${(l = e.search) == null ? void 0 : l.className}`]: (S = e.search) == null ? void 0 : S.className
|
|
1407
1407
|
}
|
|
1408
|
-
}, [i(
|
|
1408
|
+
}, [i(Ze, {
|
|
1409
1409
|
class: `${y(e.prefixCls)}-form ${o.value}`,
|
|
1410
1410
|
layout: "horizontal"
|
|
1411
1411
|
}, {
|
|
1412
1412
|
default: () => [i("div", {
|
|
1413
1413
|
class: `${y(e.prefixCls)}-form-container ${o.value}`
|
|
1414
|
-
}, [
|
|
1414
|
+
}, [re()])]
|
|
1415
1415
|
})]));
|
|
1416
1416
|
};
|
|
1417
1417
|
}
|
|
1418
1418
|
});
|
|
1419
|
-
|
|
1419
|
+
ft.inheritAttrs = !1;
|
|
1420
1420
|
function Vl(e, a) {
|
|
1421
1421
|
const t = Ye({}, e);
|
|
1422
1422
|
for (let n = 0; n < a.length; n += 1) {
|
|
@@ -1425,8 +1425,8 @@ function Vl(e, a) {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
return t;
|
|
1427
1427
|
}
|
|
1428
|
-
const
|
|
1429
|
-
const a =
|
|
1428
|
+
const Se = (e) => {
|
|
1429
|
+
const a = O(null);
|
|
1430
1430
|
return a.value = e, (...t) => {
|
|
1431
1431
|
var n;
|
|
1432
1432
|
return (n = a.value) == null ? void 0 : n.call(a, ...t);
|
|
@@ -1524,22 +1524,22 @@ const xe = (e) => {
|
|
|
1524
1524
|
const {
|
|
1525
1525
|
cacheColumns: o,
|
|
1526
1526
|
settingsAction: f
|
|
1527
|
-
} =
|
|
1527
|
+
} = se();
|
|
1528
1528
|
return a ? i(Z, {
|
|
1529
1529
|
title: e
|
|
1530
1530
|
}, {
|
|
1531
1531
|
default: () => {
|
|
1532
1532
|
var u;
|
|
1533
1533
|
return [i("span", {
|
|
1534
|
-
onClick: (
|
|
1535
|
-
var
|
|
1536
|
-
|
|
1537
|
-
const c = ((C = (
|
|
1538
|
-
if (typeof
|
|
1534
|
+
onClick: (v) => {
|
|
1535
|
+
var p, C, d;
|
|
1536
|
+
v.stopPropagation(), v.preventDefault();
|
|
1537
|
+
const c = ((C = (p = y(o)) == null ? void 0 : p.find((x) => x.uuid === t)) == null ? void 0 : C.key) || "", h = (f == null ? void 0 : f.columnsMap[c]) || {};
|
|
1538
|
+
if (typeof h.disable == "boolean" ? h.disable : (d = h.disable) == null ? void 0 : d.icon) return;
|
|
1539
1539
|
const r = {
|
|
1540
1540
|
...f == null ? void 0 : f.columnsMap,
|
|
1541
1541
|
[c]: {
|
|
1542
|
-
...
|
|
1542
|
+
...h,
|
|
1543
1543
|
fixed: n
|
|
1544
1544
|
}
|
|
1545
1545
|
};
|
|
@@ -1548,7 +1548,7 @@ const xe = (e) => {
|
|
|
1548
1548
|
}, [(u = s.default) == null ? void 0 : u.call(s)])];
|
|
1549
1549
|
}
|
|
1550
1550
|
}) : null;
|
|
1551
|
-
}, Wl = /* @__PURE__ */
|
|
1551
|
+
}, Wl = /* @__PURE__ */ ae({
|
|
1552
1552
|
props: {
|
|
1553
1553
|
treeKey: String,
|
|
1554
1554
|
hashId: String,
|
|
@@ -1560,10 +1560,10 @@ const xe = (e) => {
|
|
|
1560
1560
|
setup(e) {
|
|
1561
1561
|
const {
|
|
1562
1562
|
cacheColumns: a
|
|
1563
|
-
} =
|
|
1563
|
+
} = se(), t = w(() => {
|
|
1564
1564
|
var s, o;
|
|
1565
1565
|
return ((o = (s = y(a)) == null ? void 0 : s.find((f) => f.uuid === e.treeKey)) == null ? void 0 : o.key) || "";
|
|
1566
|
-
}), n =
|
|
1566
|
+
}), n = w(() => t.value === "action" && e.autoScroll);
|
|
1567
1567
|
return () => {
|
|
1568
1568
|
const s = i("span", {
|
|
1569
1569
|
class: [`${e.className}-list-item-option`, e.hashId]
|
|
@@ -1597,7 +1597,7 @@ const xe = (e) => {
|
|
|
1597
1597
|
}, [e.title]), s]);
|
|
1598
1598
|
};
|
|
1599
1599
|
}
|
|
1600
|
-
}), Ne = /* @__PURE__ */
|
|
1600
|
+
}), Ne = /* @__PURE__ */ ae({
|
|
1601
1601
|
props: {
|
|
1602
1602
|
list: Array,
|
|
1603
1603
|
keys: Array,
|
|
@@ -1612,100 +1612,100 @@ const xe = (e) => {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
},
|
|
1614
1614
|
setup(e) {
|
|
1615
|
-
const a =
|
|
1615
|
+
const a = O(Ke().uuid(15)), t = w(() => e.list && e.list.length > 0), n = O([]), s = O([]), {
|
|
1616
1616
|
cacheColumns: o,
|
|
1617
1617
|
slots: f,
|
|
1618
1618
|
settingsAction: u
|
|
1619
|
-
} =
|
|
1619
|
+
} = se(), v = (r, p) => r.map(({
|
|
1620
1620
|
key: C,
|
|
1621
1621
|
children: d,
|
|
1622
|
-
uuid:
|
|
1623
|
-
...
|
|
1622
|
+
uuid: x,
|
|
1623
|
+
...I
|
|
1624
1624
|
}) => {
|
|
1625
|
-
var
|
|
1626
|
-
const
|
|
1625
|
+
var G;
|
|
1626
|
+
const T = (u == null ? void 0 : u.columnsMap[C || "null"]) || {
|
|
1627
1627
|
show: !0
|
|
1628
1628
|
};
|
|
1629
|
-
let
|
|
1630
|
-
|
|
1629
|
+
let B = !1;
|
|
1630
|
+
T.show !== !1 && (p == null ? void 0 : p.show) !== !1 && !d && (B = !0);
|
|
1631
1631
|
const k = {
|
|
1632
|
-
key:
|
|
1633
|
-
...Vl(
|
|
1634
|
-
checked:
|
|
1632
|
+
key: x || "",
|
|
1633
|
+
...Vl(I, ["dataIndex"]),
|
|
1634
|
+
checked: B,
|
|
1635
1635
|
selectable: !1,
|
|
1636
|
-
disabled:
|
|
1637
|
-
disableCheckbox: typeof
|
|
1636
|
+
disabled: T.disable === !0,
|
|
1637
|
+
disableCheckbox: typeof T.disable == "boolean" ? T.disable : (G = T.disable) == null ? void 0 : G.checkbox,
|
|
1638
1638
|
isLeaf: !0
|
|
1639
1639
|
};
|
|
1640
|
-
return d && (k.children =
|
|
1640
|
+
return d && (k.children = v(d, T)), k;
|
|
1641
1641
|
});
|
|
1642
|
-
|
|
1643
|
-
const r =
|
|
1644
|
-
n.value = r, s.value = r.filter((
|
|
1642
|
+
ve(() => {
|
|
1643
|
+
const r = v(e.list || []);
|
|
1644
|
+
n.value = r, s.value = r.filter((p) => p.checked).map((p) => p.key), (u == null ? void 0 : u.operationType.value) === "fixed" && (a.value = Ke().uuid(15));
|
|
1645
1645
|
});
|
|
1646
|
-
const c =
|
|
1647
|
-
var
|
|
1648
|
-
const d = ((
|
|
1646
|
+
const c = Se((r, p, C) => {
|
|
1647
|
+
var H, L;
|
|
1648
|
+
const d = ((H = y(o).find((D) => D.uuid === r)) == null ? void 0 : H.key) || "", x = ((L = y(o).find((D) => D.uuid === p)) == null ? void 0 : L.key) || "", I = {
|
|
1649
1649
|
...u == null ? void 0 : u.columnsMap
|
|
1650
|
-
},
|
|
1651
|
-
if (
|
|
1650
|
+
}, T = [...u.sortKeyColumns.value], B = T.findIndex((D) => D === d), k = T.findIndex((D) => D === x), G = C > B;
|
|
1651
|
+
if (B < 0)
|
|
1652
1652
|
return;
|
|
1653
|
-
const
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
...
|
|
1657
|
-
order:
|
|
1653
|
+
const j = T[B];
|
|
1654
|
+
T.splice(B, 1), C === 0 ? T.unshift(j) : T.splice(G ? k : k + 1, 0, j), T.forEach((D, re) => {
|
|
1655
|
+
I[D] = {
|
|
1656
|
+
...I[D] || {},
|
|
1657
|
+
order: re
|
|
1658
1658
|
};
|
|
1659
|
-
}), u == null || u.setColumnsMap(
|
|
1660
|
-
}),
|
|
1661
|
-
var
|
|
1662
|
-
const
|
|
1659
|
+
}), u == null || u.setColumnsMap(I, "drop"), u == null || u.setSortKeyColumns(T);
|
|
1660
|
+
}), h = Se((r) => {
|
|
1661
|
+
var T;
|
|
1662
|
+
const p = r.node.key, C = ((T = y(o).find((B) => B.uuid === p)) == null ? void 0 : T.key) || "", x = {
|
|
1663
1663
|
...(u == null ? void 0 : u.columnsMap[C]) || {}
|
|
1664
1664
|
};
|
|
1665
|
-
|
|
1666
|
-
const
|
|
1665
|
+
x.show = r.checked;
|
|
1666
|
+
const I = {
|
|
1667
1667
|
...u == null ? void 0 : u.columnsMap,
|
|
1668
|
-
[C]:
|
|
1668
|
+
[C]: x
|
|
1669
1669
|
};
|
|
1670
|
-
u == null || u.setColumnsMap(
|
|
1670
|
+
u == null || u.setColumnsMap(I, "show");
|
|
1671
1671
|
}), g = (r) => {
|
|
1672
|
-
const
|
|
1672
|
+
const p = y(o).find((C) => C.uuid === r.key);
|
|
1673
1673
|
return r.title || jt(f, "headerCell", {
|
|
1674
|
-
title:
|
|
1675
|
-
column:
|
|
1676
|
-
}, () => [
|
|
1674
|
+
title: p.title,
|
|
1675
|
+
column: p
|
|
1676
|
+
}, () => [p.title]);
|
|
1677
1677
|
};
|
|
1678
1678
|
return () => {
|
|
1679
|
-
var r,
|
|
1679
|
+
var r, p;
|
|
1680
1680
|
return t.value ? i(Ie, null, [e.showTitle && i("span", {
|
|
1681
1681
|
class: [`${e.className}-list-title`, e.hashId]
|
|
1682
1682
|
}, [e.title]), i(el, {
|
|
1683
1683
|
key: a.value,
|
|
1684
|
-
draggable: e.draggable && !!((r = n.value) != null && r.length) && ((
|
|
1684
|
+
draggable: e.draggable && !!((r = n.value) != null && r.length) && ((p = n.value) == null ? void 0 : p.length) > 1,
|
|
1685
1685
|
checkable: e.checkable,
|
|
1686
1686
|
blockNode: !0,
|
|
1687
1687
|
showLine: !1,
|
|
1688
1688
|
checkedKeys: s.value,
|
|
1689
1689
|
height: 280,
|
|
1690
1690
|
onDrop: (C) => {
|
|
1691
|
-
const d = C.node.key,
|
|
1692
|
-
dropPosition:
|
|
1693
|
-
dropToGap:
|
|
1694
|
-
} = C,
|
|
1695
|
-
c(
|
|
1691
|
+
const d = C.node.key, x = C.dragNode.key, {
|
|
1692
|
+
dropPosition: I,
|
|
1693
|
+
dropToGap: T
|
|
1694
|
+
} = C, B = I === -1 || !T ? I + 1 : I;
|
|
1695
|
+
c(x, d, B);
|
|
1696
1696
|
},
|
|
1697
|
-
onCheck: (C, d) =>
|
|
1697
|
+
onCheck: (C, d) => h(d),
|
|
1698
1698
|
treeData: n.value
|
|
1699
1699
|
}, {
|
|
1700
1700
|
title: (C) => {
|
|
1701
|
-
var
|
|
1701
|
+
var x;
|
|
1702
1702
|
const d = {
|
|
1703
1703
|
...C,
|
|
1704
1704
|
children: void 0,
|
|
1705
1705
|
title: g(C),
|
|
1706
|
-
autoScroll: (
|
|
1706
|
+
autoScroll: (x = u == null ? void 0 : u.autoScroll) == null ? void 0 : x.value
|
|
1707
1707
|
};
|
|
1708
|
-
return i(Wl,
|
|
1708
|
+
return i(Wl, U({
|
|
1709
1709
|
hashId: e.hashId,
|
|
1710
1710
|
className: e.className
|
|
1711
1711
|
}, d, {
|
|
@@ -1715,7 +1715,7 @@ const xe = (e) => {
|
|
|
1715
1715
|
})]) : null;
|
|
1716
1716
|
};
|
|
1717
1717
|
}
|
|
1718
|
-
}), _l = /* @__PURE__ */
|
|
1718
|
+
}), _l = /* @__PURE__ */ ae({
|
|
1719
1719
|
props: {
|
|
1720
1720
|
hashId: String,
|
|
1721
1721
|
className: String,
|
|
@@ -1725,21 +1725,21 @@ const xe = (e) => {
|
|
|
1725
1725
|
setup(e) {
|
|
1726
1726
|
const {
|
|
1727
1727
|
columns: a
|
|
1728
|
-
} =
|
|
1729
|
-
|
|
1730
|
-
t.value = [], n.value = [], s.value = [],
|
|
1728
|
+
} = se(), t = O([]), n = O([]), s = O([]), o = O([]);
|
|
1729
|
+
_(() => a.value, (v) => {
|
|
1730
|
+
t.value = [], n.value = [], s.value = [], v.forEach((c) => {
|
|
1731
1731
|
if (c.hideInSetting)
|
|
1732
1732
|
return;
|
|
1733
1733
|
const {
|
|
1734
|
-
fixed:
|
|
1734
|
+
fixed: h,
|
|
1735
1735
|
show: g,
|
|
1736
1736
|
uuid: r
|
|
1737
1737
|
} = c;
|
|
1738
|
-
if ((g || g === void 0) && r && o.value.push(r),
|
|
1738
|
+
if ((g || g === void 0) && r && o.value.push(r), h === "left") {
|
|
1739
1739
|
n.value.push(c);
|
|
1740
1740
|
return;
|
|
1741
1741
|
}
|
|
1742
|
-
if (
|
|
1742
|
+
if (h === "right") {
|
|
1743
1743
|
t.value.push(c);
|
|
1744
1744
|
return;
|
|
1745
1745
|
}
|
|
@@ -1748,7 +1748,7 @@ const xe = (e) => {
|
|
|
1748
1748
|
}, {
|
|
1749
1749
|
immediate: !0
|
|
1750
1750
|
});
|
|
1751
|
-
const f =
|
|
1751
|
+
const f = w(() => t.value && t.value.length > 0), u = w(() => n.value && n.value.length > 0);
|
|
1752
1752
|
return () => i("div", {
|
|
1753
1753
|
class: {
|
|
1754
1754
|
[`${e.hashId}`]: !0,
|
|
@@ -1782,7 +1782,7 @@ const xe = (e) => {
|
|
|
1782
1782
|
className: e.className
|
|
1783
1783
|
}, null)]);
|
|
1784
1784
|
}
|
|
1785
|
-
}), Gl = /* @__PURE__ */
|
|
1785
|
+
}), Gl = /* @__PURE__ */ ae({
|
|
1786
1786
|
props: {
|
|
1787
1787
|
draggable: {
|
|
1788
1788
|
type: Boolean,
|
|
@@ -1805,44 +1805,44 @@ const xe = (e) => {
|
|
|
1805
1805
|
} = Be("ColumnSetting", [Hl], a), {
|
|
1806
1806
|
columns: s,
|
|
1807
1807
|
settingsAction: o
|
|
1808
|
-
} =
|
|
1809
|
-
const r = {},
|
|
1808
|
+
} = se(), f = Se((g = !0) => {
|
|
1809
|
+
const r = {}, p = (C) => {
|
|
1810
1810
|
C.forEach(({
|
|
1811
1811
|
key: d,
|
|
1812
|
-
fixed:
|
|
1813
|
-
index:
|
|
1814
|
-
children:
|
|
1812
|
+
fixed: x,
|
|
1813
|
+
index: I,
|
|
1814
|
+
children: T
|
|
1815
1815
|
}) => {
|
|
1816
|
-
const
|
|
1817
|
-
|
|
1816
|
+
const B = ot(d, I);
|
|
1817
|
+
B && (r[B] = {
|
|
1818
1818
|
show: g,
|
|
1819
|
-
fixed:
|
|
1820
|
-
}),
|
|
1819
|
+
fixed: x
|
|
1820
|
+
}), T && p(T);
|
|
1821
1821
|
});
|
|
1822
1822
|
};
|
|
1823
|
-
|
|
1824
|
-
}), u =
|
|
1823
|
+
p(s.value), o == null || o.setColumnsMap(r, "show");
|
|
1824
|
+
}), u = Se((g) => {
|
|
1825
1825
|
g.target.checked ? f() : f(!1);
|
|
1826
|
-
}),
|
|
1826
|
+
}), v = Se(() => {
|
|
1827
1827
|
o == null || o.setColumnsMap(o == null ? void 0 : o.cacheColumnsMap, "fixed");
|
|
1828
|
-
}), c =
|
|
1828
|
+
}), c = w(() => (
|
|
1829
1829
|
// @ts-ignore
|
|
1830
1830
|
Object.values(o == null ? void 0 : o.columnsMap).filter((g) => !g || g.show === !1)
|
|
1831
|
-
)),
|
|
1831
|
+
)), h = w(() => y(c).length > 0 && y(c).length !== s.value.length);
|
|
1832
1832
|
return () => t(i(Qt, {
|
|
1833
1833
|
arrowPointAtCenter: !0,
|
|
1834
1834
|
title: i("div", {
|
|
1835
1835
|
class: [`${a}-title`, n.value]
|
|
1836
1836
|
}, [i(Zt, {
|
|
1837
|
-
indeterminate:
|
|
1837
|
+
indeterminate: h.value,
|
|
1838
1838
|
checked: y(c).length === 0 && y(c).length !== s.value.length,
|
|
1839
1839
|
onChange: (g) => u(g)
|
|
1840
1840
|
}, {
|
|
1841
1841
|
default: () => [pe("列展示")]
|
|
1842
1842
|
}), e.checkedReset ? i("a", {
|
|
1843
|
-
onClick:
|
|
1843
|
+
onClick: v,
|
|
1844
1844
|
class: [`${a}-action-rest-button`, n.value]
|
|
1845
|
-
}, [pe("重置")]) : null, e != null && e.extra ? i(
|
|
1845
|
+
}, [pe("重置")]) : null, e != null && e.extra ? i(oe, {
|
|
1846
1846
|
size: 12,
|
|
1847
1847
|
align: "center"
|
|
1848
1848
|
}, {
|
|
@@ -1861,15 +1861,15 @@ const xe = (e) => {
|
|
|
1861
1861
|
default: () => [i(Z, {
|
|
1862
1862
|
title: "列设置"
|
|
1863
1863
|
}, {
|
|
1864
|
-
default: () => [i(
|
|
1864
|
+
default: () => [i(dt, null, null)]
|
|
1865
1865
|
})]
|
|
1866
1866
|
}));
|
|
1867
1867
|
}
|
|
1868
|
-
}),
|
|
1868
|
+
}), ht = /* @__PURE__ */ ae({
|
|
1869
1869
|
setup() {
|
|
1870
1870
|
const {
|
|
1871
1871
|
isFullscreen: e
|
|
1872
|
-
} =
|
|
1872
|
+
} = st();
|
|
1873
1873
|
return () => e.value ? i(Z, {
|
|
1874
1874
|
title: "退出全屏"
|
|
1875
1875
|
}, {
|
|
@@ -1884,7 +1884,7 @@ const xe = (e) => {
|
|
|
1884
1884
|
const {
|
|
1885
1885
|
action: e,
|
|
1886
1886
|
tableSize: a
|
|
1887
|
-
} =
|
|
1887
|
+
} = se();
|
|
1888
1888
|
return i(tl, {
|
|
1889
1889
|
overlay: i(Fe, {
|
|
1890
1890
|
selectedKeys: [a.value],
|
|
@@ -1962,14 +1962,14 @@ const xe = (e) => {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
1964
1964
|
});
|
|
1965
|
-
function
|
|
1966
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1965
|
+
function lt(e) {
|
|
1966
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !xe(e);
|
|
1967
1967
|
}
|
|
1968
1968
|
const {
|
|
1969
1969
|
useBreakpoint: Xl
|
|
1970
1970
|
} = Ve;
|
|
1971
1971
|
function Jl(e) {
|
|
1972
|
-
if (
|
|
1972
|
+
if (xe(e))
|
|
1973
1973
|
return e;
|
|
1974
1974
|
if (e) {
|
|
1975
1975
|
const a = e, {
|
|
@@ -1991,7 +1991,7 @@ function Jl(e) {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
return null;
|
|
1993
1993
|
}
|
|
1994
|
-
const
|
|
1994
|
+
const vt = /* @__PURE__ */ ae({
|
|
1995
1995
|
props: {
|
|
1996
1996
|
actions: de.toolBarBtn,
|
|
1997
1997
|
settings: [Array],
|
|
@@ -2007,18 +2007,18 @@ const ht = /* @__PURE__ */ le({
|
|
|
2007
2007
|
hashId: t
|
|
2008
2008
|
} = Be("ListToolBar", [Ul], e.prefixCls), n = Xl(), {
|
|
2009
2009
|
isMobile: s
|
|
2010
|
-
} =
|
|
2010
|
+
} = se(), o = w(() => {
|
|
2011
2011
|
var r;
|
|
2012
2012
|
return !!(e.titleTip || e.headerTitle || (r = e.actions) != null && r.length);
|
|
2013
|
-
}), f =
|
|
2013
|
+
}), f = w(() => {
|
|
2014
2014
|
var r;
|
|
2015
2015
|
return !!((r = e.settings) != null && r.length || e.optionsExtra);
|
|
2016
|
-
}), u =
|
|
2017
|
-
var
|
|
2016
|
+
}), u = w(() => !!(e.titleTip || e.headerTitle)), v = w(() => {
|
|
2017
|
+
var p;
|
|
2018
2018
|
let r;
|
|
2019
|
-
return Array.isArray(e.actions) ? ((
|
|
2019
|
+
return Array.isArray(e.actions) ? ((p = e.actions) == null ? void 0 : p.length) < 1 ? null : i(oe, {
|
|
2020
2020
|
align: "center"
|
|
2021
|
-
},
|
|
2021
|
+
}, lt(r = e.actions.map((C, d) => xe(C) ? zt(C, {
|
|
2022
2022
|
key: d,
|
|
2023
2023
|
...C == null ? void 0 : C.props
|
|
2024
2024
|
}) : i("template", {
|
|
@@ -2028,7 +2028,7 @@ const ht = /* @__PURE__ */ le({
|
|
|
2028
2028
|
}) : e.actions;
|
|
2029
2029
|
}), c = Re(() => !o.value && f.value ? i("div", {
|
|
2030
2030
|
class: `${e.prefixCls}-left ${t.value}`
|
|
2031
|
-
}, null) : u.value ? i(
|
|
2031
|
+
}, null) : u.value ? i(oe, {
|
|
2032
2032
|
class: `${e.prefixCls}-left ${t.value}`
|
|
2033
2033
|
}, {
|
|
2034
2034
|
default: () => [i("div", {
|
|
@@ -2037,41 +2037,41 @@ const ht = /* @__PURE__ */ le({
|
|
|
2037
2037
|
title: e.titleTipText
|
|
2038
2038
|
}, {
|
|
2039
2039
|
default: () => [Q(e.titleTip) && e.titleTip ? i(gl, null, null) : e.titleTip]
|
|
2040
|
-
})]),
|
|
2040
|
+
})]), v.value && i("div", {
|
|
2041
2041
|
class: `${e.prefixCls}-actions ${t.value}`
|
|
2042
|
-
}, [
|
|
2043
|
-
}) : i(
|
|
2042
|
+
}, [v.value])]
|
|
2043
|
+
}) : i(oe, {
|
|
2044
2044
|
class: `${e.prefixCls}-left ${t.value}`
|
|
2045
2045
|
}, {
|
|
2046
|
-
default: () => [
|
|
2046
|
+
default: () => [v.value && i("div", {
|
|
2047
2047
|
class: `${e.prefixCls}-actions`
|
|
2048
|
-
}, [
|
|
2049
|
-
}), [() => o.value, () => f.value, () => u.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]),
|
|
2048
|
+
}, [v.value])]
|
|
2049
|
+
}), [() => o.value, () => f.value, () => u.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), h = Re(() => {
|
|
2050
2050
|
let r;
|
|
2051
|
-
return f.value ? i(
|
|
2051
|
+
return f.value ? i(oe, {
|
|
2052
2052
|
size: 16,
|
|
2053
2053
|
class: `${e.prefixCls}-right ${t.value}`,
|
|
2054
2054
|
align: n.value.lg ? "center" : "end",
|
|
2055
2055
|
direction: n.value.lg ? "horizontal" : "vertical"
|
|
2056
2056
|
}, {
|
|
2057
2057
|
default: () => {
|
|
2058
|
-
var
|
|
2059
|
-
return [e.optionsExtra, (
|
|
2058
|
+
var p;
|
|
2059
|
+
return [e.optionsExtra, (p = e.settings) != null && p.length ? i(oe, {
|
|
2060
2060
|
size: 12,
|
|
2061
2061
|
align: "center",
|
|
2062
2062
|
class: `${e.prefixCls}-setting-items`
|
|
2063
|
-
},
|
|
2064
|
-
const
|
|
2063
|
+
}, lt(r = e.settings.map((C, d) => {
|
|
2064
|
+
const x = Jl(C);
|
|
2065
2065
|
return i("div", {
|
|
2066
2066
|
key: d,
|
|
2067
2067
|
class: `${e.prefixCls}-setting-item`
|
|
2068
|
-
}, [
|
|
2068
|
+
}, [x]);
|
|
2069
2069
|
})) ? r : {
|
|
2070
2070
|
default: () => [r]
|
|
2071
2071
|
}) : null];
|
|
2072
2072
|
}
|
|
2073
2073
|
}) : null;
|
|
2074
|
-
}, [() => n.value, () => f.value, () => e.prefixCls, () => u.value, () =>
|
|
2074
|
+
}, [() => n.value, () => f.value, () => e.prefixCls, () => u.value, () => v.value, () => e.settings]), g = Re(() => {
|
|
2075
2075
|
if (!f.value && !o.value) return null;
|
|
2076
2076
|
const r = {
|
|
2077
2077
|
[`${t.value}`]: !0,
|
|
@@ -2080,14 +2080,14 @@ const ht = /* @__PURE__ */ le({
|
|
|
2080
2080
|
};
|
|
2081
2081
|
return i("div", {
|
|
2082
2082
|
class: r
|
|
2083
|
-
}, [c.value,
|
|
2084
|
-
}, [() => s.value, () => o.value, () => f.value, () => c.value, () => e.prefixCls, () =>
|
|
2083
|
+
}, [c.value, h.value]);
|
|
2084
|
+
}, [() => s.value, () => o.value, () => f.value, () => c.value, () => e.prefixCls, () => h.value]);
|
|
2085
2085
|
return () => a(i("div", {
|
|
2086
2086
|
class: `${e.prefixCls} ${t.value}`
|
|
2087
2087
|
}, [g.value]));
|
|
2088
2088
|
}
|
|
2089
2089
|
});
|
|
2090
|
-
|
|
2090
|
+
vt.inheritAttrs = !1;
|
|
2091
2091
|
function Ql() {
|
|
2092
2092
|
return {
|
|
2093
2093
|
reload: {
|
|
@@ -2100,11 +2100,11 @@ function Ql() {
|
|
|
2100
2100
|
},
|
|
2101
2101
|
setting: {
|
|
2102
2102
|
text: "列设置",
|
|
2103
|
-
icon: i(
|
|
2103
|
+
icon: i(dt, null, null)
|
|
2104
2104
|
},
|
|
2105
2105
|
fullScreen: {
|
|
2106
2106
|
text: "全屏",
|
|
2107
|
-
icon: i(
|
|
2107
|
+
icon: i(ht, null, null)
|
|
2108
2108
|
}
|
|
2109
2109
|
};
|
|
2110
2110
|
}
|
|
@@ -2116,14 +2116,14 @@ function Zl(e, a) {
|
|
|
2116
2116
|
let s = n === !0 ? a[t] : () => n == null ? void 0 : n();
|
|
2117
2117
|
if (typeof s != "function" && (s = () => {
|
|
2118
2118
|
}), t === "setting")
|
|
2119
|
-
return i(Gl,
|
|
2119
|
+
return i(Gl, U(e[t], {
|
|
2120
2120
|
key: t
|
|
2121
2121
|
}), null);
|
|
2122
2122
|
if (t === "fullScreen")
|
|
2123
2123
|
return i("span", {
|
|
2124
2124
|
key: t,
|
|
2125
2125
|
onClick: s
|
|
2126
|
-
}, [i(
|
|
2126
|
+
}, [i(ht, null, null)]);
|
|
2127
2127
|
const o = Ql()[t];
|
|
2128
2128
|
return o ? i("span", {
|
|
2129
2129
|
key: t,
|
|
@@ -2143,7 +2143,7 @@ const ea = {
|
|
|
2143
2143
|
titleTipText: [String],
|
|
2144
2144
|
toolBarBtn: [Function, Boolean, Object, Array],
|
|
2145
2145
|
headerTitle: [Function, Boolean, Object, Array, String]
|
|
2146
|
-
}, ta = /* @__PURE__ */
|
|
2146
|
+
}, ta = /* @__PURE__ */ ae({
|
|
2147
2147
|
props: ea,
|
|
2148
2148
|
inheritAttrs: !1,
|
|
2149
2149
|
setup(e) {
|
|
@@ -2152,7 +2152,7 @@ const ea = {
|
|
|
2152
2152
|
isPor: !0
|
|
2153
2153
|
}), {
|
|
2154
2154
|
action: t
|
|
2155
|
-
} =
|
|
2155
|
+
} = se(), n = Re(() => {
|
|
2156
2156
|
var f;
|
|
2157
2157
|
const s = {
|
|
2158
2158
|
reload: () => t == null ? void 0 : t.reload(),
|
|
@@ -2171,7 +2171,7 @@ const ea = {
|
|
|
2171
2171
|
}, [() => t, () => e.options]);
|
|
2172
2172
|
return () => {
|
|
2173
2173
|
const s = e.toolBarBtn || [];
|
|
2174
|
-
return i(
|
|
2174
|
+
return i(vt, {
|
|
2175
2175
|
prefixCls: a,
|
|
2176
2176
|
optionsExtra: e.optionsExtra,
|
|
2177
2177
|
headerTitle: e.headerTitle,
|
|
@@ -2377,14 +2377,14 @@ const ea = {
|
|
|
2377
2377
|
[`${e.antCls}-table-content`]: Ee
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
|
-
}), aa =
|
|
2380
|
+
}), aa = ct.PRESENTED_IMAGE_SIMPLE, {
|
|
2381
2381
|
useBreakpoint: na
|
|
2382
2382
|
} = Ve, ua = {
|
|
2383
2383
|
reload: !0,
|
|
2384
2384
|
density: !0,
|
|
2385
2385
|
setting: !0,
|
|
2386
2386
|
fullScreen: !0
|
|
2387
|
-
}, je = /* @__PURE__ */
|
|
2387
|
+
}, je = /* @__PURE__ */ ae({
|
|
2388
2388
|
name: "GProTable",
|
|
2389
2389
|
inheritAttrs: !1,
|
|
2390
2390
|
props: de,
|
|
@@ -2402,95 +2402,92 @@ const ea = {
|
|
|
2402
2402
|
}), {
|
|
2403
2403
|
wrapSSR: f,
|
|
2404
2404
|
hashId: u
|
|
2405
|
-
} = Be("ProBaseTable", [la], o),
|
|
2405
|
+
} = Be("ProBaseTable", [la], o), v = na(), {
|
|
2406
2406
|
width: c
|
|
2407
|
-
} = qt(),
|
|
2408
|
-
|
|
2409
|
-
indicator: g
|
|
2410
|
-
} = ul(), r = D(), x = D(), C = D(e.waitRequest);
|
|
2411
|
-
he(() => C.value = e.waitRequest);
|
|
2407
|
+
} = qt(), h = ul(), g = O(), r = O(), p = O(e.waitRequest);
|
|
2408
|
+
ve(() => p.value = e.waitRequest);
|
|
2412
2409
|
const {
|
|
2413
|
-
toggle:
|
|
2414
|
-
isFullscreen:
|
|
2415
|
-
} =
|
|
2410
|
+
toggle: C,
|
|
2411
|
+
isFullscreen: d
|
|
2412
|
+
} = st(g), x = w(() => ({
|
|
2416
2413
|
...e
|
|
2417
|
-
})),
|
|
2418
|
-
var
|
|
2419
|
-
return e.virtualScroll && Cl(!((
|
|
2420
|
-
}),
|
|
2421
|
-
const
|
|
2422
|
-
|
|
2423
|
-
key:
|
|
2424
|
-
align:
|
|
2414
|
+
})), I = w(() => !v.value.xl), T = w(() => {
|
|
2415
|
+
var b, $;
|
|
2416
|
+
return e.virtualScroll && Cl(!((b = e.scroll) != null && b.y), "参数scroll的Y值不能为空!"), !!(($ = e.scroll) != null && $.y && e.virtualScroll);
|
|
2417
|
+
}), B = w(() => {
|
|
2418
|
+
const b = (e.columns || []).filter(($) => $.key || $.dataIndex).map(($) => ({
|
|
2419
|
+
...$,
|
|
2420
|
+
key: $.key || $.dataIndex,
|
|
2421
|
+
align: $.align || e.align,
|
|
2425
2422
|
uuid: Ke().uuid(15)
|
|
2426
2423
|
}));
|
|
2427
|
-
return Wt(
|
|
2424
|
+
return Wt(b, {
|
|
2428
2425
|
align: e.align || "left",
|
|
2429
2426
|
showIndex: e.showIndex || !1
|
|
2430
2427
|
});
|
|
2431
2428
|
}), {
|
|
2432
|
-
loadingStatus:
|
|
2433
|
-
setLoading:
|
|
2429
|
+
loadingStatus: k,
|
|
2430
|
+
setLoading: G
|
|
2434
2431
|
} = wl({
|
|
2435
2432
|
emit: a,
|
|
2436
2433
|
loading: J(e, "loading")
|
|
2437
2434
|
}), {
|
|
2438
|
-
sizeRef:
|
|
2439
|
-
setTableSize:
|
|
2435
|
+
sizeRef: j,
|
|
2436
|
+
setTableSize: H
|
|
2440
2437
|
} = Tl({
|
|
2441
2438
|
emit: a,
|
|
2442
2439
|
size: J(e, "size")
|
|
2443
2440
|
}), {
|
|
2444
|
-
getPaginationInfo:
|
|
2445
|
-
setPagination:
|
|
2441
|
+
getPaginationInfo: L,
|
|
2442
|
+
setPagination: D
|
|
2446
2443
|
} = $l({
|
|
2447
2444
|
slots: t,
|
|
2448
|
-
props:
|
|
2445
|
+
props: x,
|
|
2449
2446
|
pagination: J(e, "pagination")
|
|
2450
|
-
}),
|
|
2451
|
-
getScrollRef:
|
|
2452
|
-
breakpoint:
|
|
2447
|
+
}), re = Nl(e), {
|
|
2448
|
+
getScrollRef: l,
|
|
2449
|
+
breakpoint: S
|
|
2453
2450
|
} = El({
|
|
2454
|
-
...
|
|
2451
|
+
...re,
|
|
2455
2452
|
innerWidth: c,
|
|
2456
|
-
columns:
|
|
2457
|
-
screens:
|
|
2458
|
-
}),
|
|
2459
|
-
getProColumns:
|
|
2460
|
-
cacheProColumns:
|
|
2461
|
-
setColumns:
|
|
2462
|
-
changeColumns:
|
|
2463
|
-
resizeColumnWidth:
|
|
2453
|
+
columns: B,
|
|
2454
|
+
screens: v
|
|
2455
|
+
}), P = kl(e), {
|
|
2456
|
+
getProColumns: F,
|
|
2457
|
+
cacheProColumns: N,
|
|
2458
|
+
setColumns: m,
|
|
2459
|
+
changeColumns: M,
|
|
2460
|
+
resizeColumnWidth: A
|
|
2464
2461
|
} = Ml({
|
|
2465
|
-
...
|
|
2466
|
-
breakpoint:
|
|
2467
|
-
scroll:
|
|
2468
|
-
columns:
|
|
2462
|
+
...P,
|
|
2463
|
+
breakpoint: S,
|
|
2464
|
+
scroll: l,
|
|
2465
|
+
columns: B
|
|
2469
2466
|
}), {
|
|
2470
|
-
columnsMap:
|
|
2471
|
-
operationType:
|
|
2472
|
-
setColumnsMap:
|
|
2473
|
-
sortKeyColumns:
|
|
2474
|
-
cacheColumnsMap:
|
|
2475
|
-
setSortKeyColumns:
|
|
2467
|
+
columnsMap: K,
|
|
2468
|
+
operationType: me,
|
|
2469
|
+
setColumnsMap: Pe,
|
|
2470
|
+
sortKeyColumns: we,
|
|
2471
|
+
cacheColumnsMap: ne,
|
|
2472
|
+
setSortKeyColumns: Te
|
|
2476
2473
|
} = Dl({
|
|
2477
|
-
columns:
|
|
2474
|
+
columns: N,
|
|
2478
2475
|
columnsState: J(e, "columnsState"),
|
|
2479
|
-
changeColumns:
|
|
2476
|
+
changeColumns: M
|
|
2480
2477
|
}), {
|
|
2481
|
-
formDataRef:
|
|
2482
|
-
formParamsRef:
|
|
2483
|
-
defaultParamsRef:
|
|
2484
|
-
setFormParams:
|
|
2478
|
+
formDataRef: he,
|
|
2479
|
+
formParamsRef: V,
|
|
2480
|
+
defaultParamsRef: ee,
|
|
2481
|
+
setFormParams: z
|
|
2485
2482
|
} = Ol({
|
|
2486
2483
|
search: J(e, "search"),
|
|
2487
2484
|
searchMap: J(e, "searchMap"),
|
|
2488
2485
|
params: J(e, "params"),
|
|
2489
|
-
columns:
|
|
2490
|
-
setPagination:
|
|
2486
|
+
columns: B,
|
|
2487
|
+
setPagination: D
|
|
2491
2488
|
}), {
|
|
2492
|
-
selectedKey:
|
|
2493
|
-
selectedItem:
|
|
2489
|
+
selectedKey: ue,
|
|
2490
|
+
selectedItem: q,
|
|
2494
2491
|
changeRowKey: mt,
|
|
2495
2492
|
selectRowKey: gt,
|
|
2496
2493
|
selectAllRowKey: yt,
|
|
@@ -2498,82 +2495,83 @@ const ea = {
|
|
|
2498
2495
|
removeRowKeys: bt
|
|
2499
2496
|
} = Fl(J(e, "rowKey"), J(e, "rowSelection")), pt = Il(e), {
|
|
2500
2497
|
reload: Oe,
|
|
2501
|
-
reSetDataList:
|
|
2502
|
-
changeDataValue:
|
|
2498
|
+
reSetDataList: St,
|
|
2499
|
+
changeDataValue: xt,
|
|
2503
2500
|
isTreeDataRef: He,
|
|
2504
2501
|
dataSource: ge,
|
|
2505
2502
|
handleTableChange: We
|
|
2506
2503
|
} = Bl({
|
|
2507
2504
|
...pt,
|
|
2508
|
-
waitRequest:
|
|
2505
|
+
waitRequest: p
|
|
2509
2506
|
}, {
|
|
2510
|
-
loadingStatus:
|
|
2511
|
-
getPaginationInfo:
|
|
2512
|
-
setPagination:
|
|
2507
|
+
loadingStatus: k,
|
|
2508
|
+
getPaginationInfo: L,
|
|
2509
|
+
setPagination: D,
|
|
2513
2510
|
removeRowKeys: bt,
|
|
2514
2511
|
syncSelectedRows: Ct,
|
|
2515
|
-
setLoading:
|
|
2516
|
-
setColumns:
|
|
2517
|
-
columns:
|
|
2518
|
-
formParamsRef:
|
|
2512
|
+
setLoading: G,
|
|
2513
|
+
setColumns: m,
|
|
2514
|
+
columns: F,
|
|
2515
|
+
formParamsRef: V,
|
|
2519
2516
|
onBeforeSearchSubmit: e.onBeforeSearchSubmit,
|
|
2520
|
-
hasCustomRender:
|
|
2521
|
-
}, a), ye =
|
|
2517
|
+
hasCustomRender: w(() => fe(e.customRender || (t == null ? void 0 : t.customRender)))
|
|
2518
|
+
}, a), ye = w(() => e.options ? {
|
|
2522
2519
|
...ua,
|
|
2523
|
-
...
|
|
2524
|
-
} : !1), _e =
|
|
2525
|
-
|
|
2526
|
-
|
|
2520
|
+
...X(le(e.options) ? e.options : {})
|
|
2521
|
+
} : !1), _e = w(() => {
|
|
2522
|
+
var $, R;
|
|
2523
|
+
const b = le(e.loading) ? $e(e.loading, "spinning") : {};
|
|
2524
|
+
return !b.indicator && (($ = h == null ? void 0 : h.indicator) != null && $.value) && (b.indicator = (R = h == null ? void 0 : h.indicator) == null ? void 0 : R.value), $e({
|
|
2527
2525
|
...($e(n), ["class", "style", "id"]),
|
|
2528
2526
|
...e,
|
|
2529
|
-
virtualScroll:
|
|
2530
|
-
size: y(
|
|
2531
|
-
scroll: y(
|
|
2527
|
+
virtualScroll: T.value,
|
|
2528
|
+
size: y(j),
|
|
2529
|
+
scroll: y(l),
|
|
2532
2530
|
loading: {
|
|
2533
|
-
spinning: e.showLoading ? fe(
|
|
2534
|
-
...
|
|
2531
|
+
spinning: e.showLoading ? fe(k.value) : !1,
|
|
2532
|
+
...b
|
|
2535
2533
|
},
|
|
2536
|
-
columns: ke(y(
|
|
2537
|
-
pagination: ke(y(
|
|
2534
|
+
columns: ke(y(F).filter((E) => E.show || E.show === void 0)),
|
|
2535
|
+
pagination: ke(y(L)),
|
|
2538
2536
|
dataSource: ge.value
|
|
2539
2537
|
}, ["class", "onChange", "onExpand", "onExpandedRowsChange"]);
|
|
2540
|
-
}), Ge =
|
|
2541
|
-
var
|
|
2542
|
-
let
|
|
2543
|
-
const
|
|
2544
|
-
if (
|
|
2545
|
-
const
|
|
2546
|
-
!
|
|
2538
|
+
}), Ge = w(() => {
|
|
2539
|
+
var E;
|
|
2540
|
+
let b;
|
|
2541
|
+
const $ = y(x).direction === "rtl" ? "bottomLeft" : "right", R = (E = y(L)) == null ? void 0 : E.position;
|
|
2542
|
+
if (R !== null && Array.isArray(R)) {
|
|
2543
|
+
const Y = R.find((ce) => ce.includes("top")), te = R.find((ce) => ce.includes("bottom")), De = R.every((ce) => `${ce}` == "none");
|
|
2544
|
+
!Y && !te && !De && (b = $), Y && (b = Y.toLowerCase().replace("top", "")), te && (b = te.toLowerCase().replace("bottom", ""));
|
|
2547
2545
|
} else
|
|
2548
|
-
|
|
2549
|
-
return
|
|
2550
|
-
}), qe = async (
|
|
2551
|
-
var
|
|
2552
|
-
|
|
2553
|
-
...
|
|
2546
|
+
b = $;
|
|
2547
|
+
return b;
|
|
2548
|
+
}), qe = async (b) => {
|
|
2549
|
+
var $;
|
|
2550
|
+
le(e.search) && (($ = e.search) != null && $.showSearch) ? (z({
|
|
2551
|
+
...b,
|
|
2554
2552
|
...e.params || {}
|
|
2555
|
-
}), await Oe()) :
|
|
2556
|
-
}, wt = async (
|
|
2557
|
-
|
|
2558
|
-
}, Ue = (
|
|
2559
|
-
|
|
2560
|
-
}, Tt = (
|
|
2561
|
-
var
|
|
2562
|
-
|
|
2563
|
-
current:
|
|
2564
|
-
pageSize:
|
|
2553
|
+
}), await Oe()) : z(b);
|
|
2554
|
+
}, wt = async (b, $) => {
|
|
2555
|
+
$ ? (a("reset", b), e.request && await qe(b)) : e.request ? (a("submit", b), await qe(b)) : a("submit", b);
|
|
2556
|
+
}, Ue = (b, $, R, E) => {
|
|
2557
|
+
D(at(b, ["current", "pageSize"])), We(b, $, R, E);
|
|
2558
|
+
}, Tt = (b, $) => {
|
|
2559
|
+
var R;
|
|
2560
|
+
D({
|
|
2561
|
+
current: b,
|
|
2562
|
+
pageSize: $
|
|
2565
2563
|
}), We({
|
|
2566
|
-
current:
|
|
2567
|
-
pageSize:
|
|
2568
|
-
total:
|
|
2564
|
+
current: b,
|
|
2565
|
+
pageSize: $,
|
|
2566
|
+
total: L.value && ((R = L.value) == null ? void 0 : R.total) || 0
|
|
2569
2567
|
}, {}, {});
|
|
2570
|
-
}, $t = (
|
|
2571
|
-
a("expandedRowsChange",
|
|
2572
|
-
}, Ft = (
|
|
2573
|
-
a("expand",
|
|
2574
|
-
}, Rt = (
|
|
2575
|
-
const
|
|
2576
|
-
return
|
|
2568
|
+
}, $t = (b) => {
|
|
2569
|
+
a("expandedRowsChange", b);
|
|
2570
|
+
}, Ft = (b, $) => {
|
|
2571
|
+
a("expand", b, $);
|
|
2572
|
+
}, Rt = (b, $) => A(b, $), It = (b, $, R) => {
|
|
2573
|
+
const E = R.align === "center" ? "top" : R.align === "left" || !R.align ? "topLeft" : "topRight";
|
|
2574
|
+
return $ && R.copyable ? i(nl.Paragraph, {
|
|
2577
2575
|
class: `${o}-copyable`,
|
|
2578
2576
|
style: {
|
|
2579
2577
|
margin: "0",
|
|
@@ -2583,166 +2581,167 @@ const ea = {
|
|
|
2583
2581
|
copyable: !0
|
|
2584
2582
|
}, {
|
|
2585
2583
|
default: () => [i(Z, {
|
|
2586
|
-
title:
|
|
2587
|
-
placement:
|
|
2584
|
+
title: b,
|
|
2585
|
+
placement: E
|
|
2588
2586
|
}, {
|
|
2589
2587
|
default: () => [i("div", {
|
|
2590
2588
|
class: `${o}-ellipsis`
|
|
2591
|
-
}, [
|
|
2589
|
+
}, [b])]
|
|
2592
2590
|
})]
|
|
2593
|
-
}) :
|
|
2594
|
-
title:
|
|
2595
|
-
placement:
|
|
2591
|
+
}) : $ && !R.copyable ? i(Z, {
|
|
2592
|
+
title: b,
|
|
2593
|
+
placement: E
|
|
2596
2594
|
}, {
|
|
2597
|
-
default: () => [He.value ?
|
|
2595
|
+
default: () => [He.value ? b : i("div", {
|
|
2598
2596
|
class: `${o}-ellipsis`
|
|
2599
|
-
}, [
|
|
2600
|
-
}) :
|
|
2597
|
+
}, [b])]
|
|
2598
|
+
}) : b;
|
|
2601
2599
|
}, Bt = () => {
|
|
2602
|
-
var
|
|
2603
|
-
const
|
|
2604
|
-
if (
|
|
2605
|
-
if (!((
|
|
2600
|
+
var $, R;
|
|
2601
|
+
const b = nt(t, e, "customRender");
|
|
2602
|
+
if (b) {
|
|
2603
|
+
if (!(($ = ge.value) != null && $.length)) return ((R = h == null ? void 0 : h.emptyText) == null ? void 0 : R.value) || i(ct, {
|
|
2606
2604
|
image: aa
|
|
2607
2605
|
}, null);
|
|
2608
|
-
const
|
|
2609
|
-
return
|
|
2606
|
+
const E = X(y(ge));
|
|
2607
|
+
return b == null ? void 0 : b(xl(E, L.value), E);
|
|
2610
2608
|
}
|
|
2611
2609
|
return i(Ie, null, null);
|
|
2612
|
-
}, Pt = (
|
|
2613
|
-
var
|
|
2614
|
-
const
|
|
2610
|
+
}, Pt = (b) => {
|
|
2611
|
+
var Y, te;
|
|
2612
|
+
const $ = Ce(t, e, "headerTitle"), R = Ce(t, e, "titleTip"), E = Ce(t, e, "toolBarBtn");
|
|
2615
2613
|
return i(ta, {
|
|
2616
|
-
headerTitle:
|
|
2617
|
-
titleTip:
|
|
2614
|
+
headerTitle: $,
|
|
2615
|
+
titleTip: R,
|
|
2618
2616
|
titleTipText: e.titleTipText,
|
|
2619
2617
|
options: Q(ye.value) ? ye.value : {
|
|
2620
2618
|
...ye.value,
|
|
2621
|
-
setting:
|
|
2622
|
-
density:
|
|
2619
|
+
setting: b ? !1 : (Y = ye.value) == null ? void 0 : Y.setting,
|
|
2620
|
+
density: b ? !1 : (te = ye.value) == null ? void 0 : te.density
|
|
2623
2621
|
},
|
|
2624
2622
|
settingExtra: Ce(t, e, "settingExtra"),
|
|
2625
2623
|
optionsExtra: Ce(t, e, "optionsExtra"),
|
|
2626
|
-
toolBarBtn:
|
|
2624
|
+
toolBarBtn: E
|
|
2627
2625
|
}, null);
|
|
2628
2626
|
};
|
|
2629
2627
|
return jl({
|
|
2630
|
-
tableSize:
|
|
2631
|
-
columns:
|
|
2632
|
-
cacheColumns:
|
|
2633
|
-
isMobile:
|
|
2628
|
+
tableSize: j,
|
|
2629
|
+
columns: F,
|
|
2630
|
+
cacheColumns: B,
|
|
2631
|
+
isMobile: I,
|
|
2634
2632
|
action: {
|
|
2635
|
-
setTableSize:
|
|
2636
|
-
reload: (
|
|
2637
|
-
toggle:
|
|
2633
|
+
setTableSize: H,
|
|
2634
|
+
reload: (b) => Oe(b),
|
|
2635
|
+
toggle: C
|
|
2638
2636
|
},
|
|
2639
2637
|
settingsAction: {
|
|
2640
2638
|
autoScroll: J(e, "autoScroll"),
|
|
2641
|
-
columnsMap:
|
|
2642
|
-
operationType:
|
|
2643
|
-
setColumnsMap:
|
|
2644
|
-
sortKeyColumns:
|
|
2645
|
-
cacheColumnsMap:
|
|
2646
|
-
setSortKeyColumns:
|
|
2639
|
+
columnsMap: K,
|
|
2640
|
+
operationType: me,
|
|
2641
|
+
setColumnsMap: Pe,
|
|
2642
|
+
sortKeyColumns: we,
|
|
2643
|
+
cacheColumnsMap: ne,
|
|
2644
|
+
setSortKeyColumns: Te
|
|
2647
2645
|
},
|
|
2648
|
-
setPagination:
|
|
2649
|
-
changeColumns:
|
|
2646
|
+
setPagination: D,
|
|
2647
|
+
changeColumns: M,
|
|
2650
2648
|
slots: t
|
|
2651
2649
|
}), s({
|
|
2652
|
-
loading:
|
|
2650
|
+
loading: k,
|
|
2653
2651
|
dataSource: ge,
|
|
2654
2652
|
formRef: () => ({
|
|
2655
|
-
getFormState: () => y(
|
|
2653
|
+
getFormState: () => y(V),
|
|
2656
2654
|
getFormInnerState: () => {
|
|
2657
|
-
var
|
|
2658
|
-
return ((
|
|
2655
|
+
var b;
|
|
2656
|
+
return ((b = r.value) == null ? void 0 : b.getFormState()) || {};
|
|
2659
2657
|
},
|
|
2660
|
-
restFormState: (
|
|
2661
|
-
var
|
|
2662
|
-
|
|
2658
|
+
restFormState: (b) => {
|
|
2659
|
+
var $;
|
|
2660
|
+
p.value = !0, b && (b == null || b()), ($ = r.value) == null || $.resetForm(!1), p.value = !1;
|
|
2663
2661
|
}
|
|
2664
2662
|
}),
|
|
2665
2663
|
actionRef: () => ({
|
|
2666
|
-
pageParams:
|
|
2667
|
-
selectedKey:
|
|
2668
|
-
selectedItem:
|
|
2664
|
+
pageParams: L.value,
|
|
2665
|
+
selectedKey: ue.value,
|
|
2666
|
+
selectedItem: q.value,
|
|
2669
2667
|
reload: Oe,
|
|
2670
|
-
getLoadingStatus: () => y(
|
|
2671
|
-
reloadAndRest: async (
|
|
2672
|
-
|
|
2668
|
+
getLoadingStatus: () => y(k),
|
|
2669
|
+
reloadAndRest: async (b) => {
|
|
2670
|
+
p.value = !0, D({
|
|
2673
2671
|
current: 1,
|
|
2674
2672
|
pageSize: 10
|
|
2675
|
-
}),
|
|
2673
|
+
}), b && (b == null || b()), p.value = !1;
|
|
2676
2674
|
},
|
|
2677
|
-
reSetDataList:
|
|
2675
|
+
reSetDataList: St,
|
|
2678
2676
|
setPageAndReload: Ue,
|
|
2679
|
-
setPagination:
|
|
2680
|
-
setData:
|
|
2681
|
-
setLoading:
|
|
2677
|
+
setPagination: D,
|
|
2678
|
+
setData: xt,
|
|
2679
|
+
setLoading: G
|
|
2682
2680
|
})
|
|
2683
2681
|
}), () => {
|
|
2684
|
-
|
|
2682
|
+
var $;
|
|
2683
|
+
const b = fe(e.customRender || t.customRender);
|
|
2685
2684
|
return f(i("div", {
|
|
2686
|
-
ref:
|
|
2685
|
+
ref: g,
|
|
2687
2686
|
class: _t([{
|
|
2688
2687
|
[`${u.value}`]: !0,
|
|
2689
2688
|
[`${o}`]: !0,
|
|
2690
2689
|
[`${n.class}`]: n.class,
|
|
2691
|
-
[`${o}-no-scroll`]: !Object.keys(y(
|
|
2690
|
+
[`${o}-no-scroll`]: !Object.keys(y(l) || {}).length,
|
|
2692
2691
|
[`${o}-table-tree`]: He.value,
|
|
2693
|
-
[`${o}-full-screen`]:
|
|
2692
|
+
[`${o}-full-screen`]: d.value
|
|
2694
2693
|
}]),
|
|
2695
2694
|
style: n.style
|
|
2696
2695
|
}, [i("div", {
|
|
2697
2696
|
class: [`${o}-content`, u.value]
|
|
2698
|
-
}, [(
|
|
2699
|
-
ref:
|
|
2697
|
+
}, [(he.value.length > 0 || fe(t.search)) && i(ft, {
|
|
2698
|
+
ref: r,
|
|
2700
2699
|
search: e.search,
|
|
2701
2700
|
modal: e.modalScroll,
|
|
2702
|
-
searchMap:
|
|
2701
|
+
searchMap: he.value,
|
|
2703
2702
|
prefixCls: o,
|
|
2704
|
-
loading: !!y(
|
|
2703
|
+
loading: !!y(k),
|
|
2705
2704
|
onSearch: wt,
|
|
2706
|
-
defaultParams:
|
|
2705
|
+
defaultParams: ee
|
|
2707
2706
|
}, {
|
|
2708
2707
|
default: t.search ? () => {
|
|
2709
|
-
var
|
|
2710
|
-
return (
|
|
2708
|
+
var R;
|
|
2709
|
+
return (R = t.search) == null ? void 0 : R.call(t);
|
|
2711
2710
|
} : null
|
|
2712
|
-
}), !
|
|
2711
|
+
}), !T.value && Pt(b), b ? i(Ae, y(_e).loading, {
|
|
2713
2712
|
default: () => {
|
|
2714
|
-
var
|
|
2713
|
+
var R;
|
|
2715
2714
|
return [i("div", {
|
|
2716
2715
|
class: `${o}-wrapper ${u.value}`
|
|
2717
|
-
}, [Bt(), e.pagination !== !1 && ((
|
|
2716
|
+
}, [Bt(), e.pagination !== !1 && ((R = ge.value) == null ? void 0 : R.length) > 0 && i(ll, U({
|
|
2718
2717
|
class: {
|
|
2719
2718
|
[`${o}-pagination ${u.value}`]: !0,
|
|
2720
2719
|
[`${o}-pagination-${Ge.value} ${u.value}`]: !!Ge.value
|
|
2721
2720
|
}
|
|
2722
|
-
}, ke(y(
|
|
2721
|
+
}, ke(y(L)), {
|
|
2723
2722
|
onChange: Tt
|
|
2724
2723
|
}), null)])];
|
|
2725
2724
|
}
|
|
2726
|
-
}) : i(al,
|
|
2725
|
+
}) : i(al, U(_e.value, {
|
|
2727
2726
|
style: e.tableStyle || void 0,
|
|
2728
2727
|
class: e.tableClassName,
|
|
2729
|
-
rowKey: (
|
|
2730
|
-
transformCellText: (
|
|
2731
|
-
var
|
|
2728
|
+
rowKey: (R) => R[e.rowKey || "sortIndex"],
|
|
2729
|
+
transformCellText: (R) => {
|
|
2730
|
+
var Je, Qe;
|
|
2732
2731
|
const {
|
|
2733
|
-
text:
|
|
2734
|
-
column:
|
|
2735
|
-
} =
|
|
2736
|
-
if (
|
|
2732
|
+
text: E,
|
|
2733
|
+
column: Y
|
|
2734
|
+
} = R, te = ze(E) ? E == null ? void 0 : E[0] : E;
|
|
2735
|
+
if (xe(te)) return E;
|
|
2737
2736
|
const {
|
|
2738
|
-
value:
|
|
2739
|
-
success:
|
|
2740
|
-
} = Gt(
|
|
2741
|
-
return
|
|
2737
|
+
value: De,
|
|
2738
|
+
success: ce
|
|
2739
|
+
} = Gt(te, (Y == null ? void 0 : Y.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || ""), Xe = Sl(De, ((Qe = (Je = e.columns) == null ? void 0 : Je.find((Ot) => Ot.key === Y.key)) == null ? void 0 : Qe.valueType) || Y.valueType, o, u.value);
|
|
2740
|
+
return Y != null && Y.ellipsis ? It(Xe, ce, Y) : Xe;
|
|
2742
2741
|
},
|
|
2743
2742
|
rowSelection: e.rowSelection ? {
|
|
2744
2743
|
...$e(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
|
|
2745
|
-
selectedRowKeys:
|
|
2744
|
+
selectedRowKeys: ue.value,
|
|
2746
2745
|
onSelect: gt,
|
|
2747
2746
|
onSelectAll: yt,
|
|
2748
2747
|
onChange: mt
|
|
@@ -2750,10 +2749,13 @@ const ea = {
|
|
|
2750
2749
|
onChange: Ue,
|
|
2751
2750
|
onExpandedRowsChange: $t,
|
|
2752
2751
|
onExpand: Ft,
|
|
2753
|
-
onResizeColumn: (
|
|
2752
|
+
onResizeColumn: (R, E) => Rt(R, E)
|
|
2754
2753
|
}), {
|
|
2755
2754
|
...t,
|
|
2756
|
-
emptyText:
|
|
2755
|
+
emptyText: ($ = h == null ? void 0 : h.emptyText) != null && $.value ? () => {
|
|
2756
|
+
var R;
|
|
2757
|
+
return (R = h == null ? void 0 : h.emptyText) == null ? void 0 : R.value;
|
|
2758
|
+
} : null
|
|
2757
2759
|
})])]));
|
|
2758
2760
|
};
|
|
2759
2761
|
}
|