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