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