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