@gx-design-vue/pro-table 0.2.0-beta.88 → 0.2.0-beta.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ProTable.d.ts +10 -1
- package/dist/_utils/ant-design-vue/index.d.ts +1 -0
- package/dist/hooks/useColums.d.ts +67 -0
- package/dist/hooks/useRowSelection.d.ts +2 -2
- package/dist/hooks/useTable.d.ts +2 -2
- package/dist/pro-table.js +752 -730
- package/dist/pro-table.umd.cjs +1 -1
- package/dist/props.d.ts +4 -0
- package/dist/types/ColumnTypings.d.ts +7 -1
- package/dist/types/SlotsTypings.d.ts +1 -1
- package/dist/types/TableTypings.d.ts +6 -4
- package/package.json +4 -4
package/dist/pro-table.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { isObject as
|
|
2
|
-
import { reactive as
|
|
1
|
+
import { isObject as G, isBoolean as ue, getSlot as wt, isFunction as Ee, arrayRepeat as Ut, runFunction as Xt, convertValueBoolean as Re, isArray as Q, getSortIndex as Jt, isDeepEqualReact as Ve, handleCurrentPage as Qt, genColumnKey as Tt, compareArray as Zt, isNumber as Ye, isString as pt, filterEmpty as $t, classNames as We, getPrefixCls as at, getRandomNumber as tt, handleShowIndex as el, hanndleEmptyField as tl, getTextWidth as ll, getSlotVNode as Fe } from "@gx-design-vue/pro-utils";
|
|
2
|
+
import { reactive as ge, isReactive as al, watch as _, computed as p, ref as E, toRaw as Se, createVNode as d, mergeProps as U, isVNode as ye, watchEffect as ze, unref as C, onUnmounted as nl, onDeactivated as ul, onMounted as il, defineComponent as de, Fragment as _e, nextTick as sl, h as Ft, cloneVNode as nt, createTextVNode as Ne, renderSlot as ol, toRef as ae } from "vue";
|
|
3
3
|
import "ant-design-vue/es/_util/props-util";
|
|
4
|
-
import { warning as
|
|
5
|
-
import { omit as
|
|
6
|
-
import { tableProps as
|
|
7
|
-
import { UpOutlined as
|
|
8
|
-
import { useFullscreen as
|
|
9
|
-
import { Form as
|
|
10
|
-
import { useProAppContext as
|
|
11
|
-
import { useContext as
|
|
12
|
-
import
|
|
13
|
-
import { tryOnUnmounted as
|
|
14
|
-
function
|
|
4
|
+
import { warning as rl } from "ant-design-vue/es/vc-util/warning";
|
|
5
|
+
import { omit as Ge, cloneDeep as re, pick as gt } from "lodash-es";
|
|
6
|
+
import { tableProps as cl } from "ant-design-vue/es/table/Table";
|
|
7
|
+
import { UpOutlined as dl, DownOutlined as fl, SettingOutlined as Rt, VerticalAlignTopOutlined as hl, VerticalAlignMiddleOutlined as ml, VerticalAlignBottomOutlined as vl, FullscreenExitOutlined as gl, FullscreenOutlined as yl, ColumnHeightOutlined as bl, InfoCircleOutlined as Cl, ReloadOutlined as xl, CopyOutlined as Sl } from "@ant-design/icons-vue";
|
|
8
|
+
import { useFullscreen as Bt, useWindowSize as wl } from "@vueuse/core";
|
|
9
|
+
import { Form as yt, Grid as ut, Space as ve, Button as bt, Input as Ct, TimePicker as Tl, DatePicker as It, TreeSelect as pl, Spin as lt, Select as $l, Popover as Fl, Checkbox as Rl, Tooltip as ce, Tree as Bl, Dropdown as Il, Menu as Le, Pagination as Ol, Table as kl, message as jl, Empty as Pl } from "ant-design-vue";
|
|
10
|
+
import { useProAppContext as Ot } from "@gx-design-vue/pro-app";
|
|
11
|
+
import { useContext as El, useProStyle as qe } from "@gx-design-vue/pro-provider";
|
|
12
|
+
import ne from "dayjs";
|
|
13
|
+
import { tryOnUnmounted as Nl, useMemo as He } from "@gx-design-vue/pro-hooks";
|
|
14
|
+
function Ma(e, t) {
|
|
15
15
|
var v, S, f, x;
|
|
16
16
|
function a() {
|
|
17
|
-
return t != null && t.state &&
|
|
17
|
+
return t != null && t.state && G(t == null ? void 0 : t.state) ? Se(t == null ? void 0 : t.state) : {};
|
|
18
18
|
}
|
|
19
|
-
const i =
|
|
19
|
+
const i = ge({
|
|
20
20
|
params: ((v = t == null ? void 0 : t.state) == null ? void 0 : v.params) || {},
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
request: async (...u) => {
|
|
@@ -24,22 +24,22 @@ function Na(e, t) {
|
|
|
24
24
|
return t != null && t.request ? await ((n = t == null ? void 0 : t.request) == null ? void 0 : n.call(t, ...u)) : void 0;
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
t != null && t.state && (
|
|
27
|
+
t != null && t.state && (al(t.state) ? _(() => t == null ? void 0 : t.state, () => {
|
|
28
28
|
Object.assign(i, a());
|
|
29
29
|
}, { deep: !0, immediate: !0 }) : Object.assign(i, a()));
|
|
30
|
-
const o =
|
|
30
|
+
const o = p(() => {
|
|
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
|
-
}), s =
|
|
33
|
+
}), s = p(() => {
|
|
34
34
|
var u, n;
|
|
35
35
|
return (n = (u = e == null ? void 0 : e.value) == null ? void 0 : u.formRef) == null ? void 0 : n.call(u);
|
|
36
|
-
}), c =
|
|
36
|
+
}), c = p(() => {
|
|
37
37
|
var u, n, r;
|
|
38
38
|
return {
|
|
39
39
|
...((u = o.value) == null ? void 0 : u.pageState) || {},
|
|
40
40
|
...((r = (n = s.value) == null ? void 0 : n.getFormState) == null ? void 0 : r.call(n)) || {}
|
|
41
41
|
};
|
|
42
|
-
}), m =
|
|
42
|
+
}), m = E(!!((f = (S = o.value) == null ? void 0 : S.loading) != null && f.value));
|
|
43
43
|
return _(() => {
|
|
44
44
|
var u, n;
|
|
45
45
|
return (n = (u = o.value) == null ? void 0 : u.loading) == null ? void 0 : n.value;
|
|
@@ -54,17 +54,17 @@ function Na(e, t) {
|
|
|
54
54
|
tableState: i,
|
|
55
55
|
requestParams: c,
|
|
56
56
|
loading: m,
|
|
57
|
-
dataSource:
|
|
57
|
+
dataSource: p(() => {
|
|
58
58
|
var u, n;
|
|
59
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: p(() => {
|
|
62
62
|
var u, n;
|
|
63
|
-
return ((n = (u = o == null ? void 0 : o.value) == null ? void 0 : 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: p(() => {
|
|
66
66
|
var u, n;
|
|
67
|
-
return ((n = (u = o == null ? void 0 : o.value) == null ? void 0 : u.
|
|
67
|
+
return ((n = (u = o == null ? void 0 : o.value) == null ? void 0 : u.selectedItems) == null ? void 0 : n.value) || [];
|
|
68
68
|
}),
|
|
69
69
|
rowsSelection: (x = o == null ? void 0 : o.value) == null ? void 0 : x.rowsSelection,
|
|
70
70
|
mutate: (u) => {
|
|
@@ -76,8 +76,8 @@ function Na(e, t) {
|
|
|
76
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 w,
|
|
80
|
-
return (
|
|
79
|
+
var w, I;
|
|
80
|
+
return (I = (w = o.value) == null ? void 0 : w.setPageAndReload) == null ? void 0 : I.call(w, u, n, r, y);
|
|
81
81
|
},
|
|
82
82
|
setPagination: (u) => {
|
|
83
83
|
var n, r;
|
|
@@ -94,8 +94,8 @@ function Na(e, t) {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
...
|
|
97
|
+
const Dl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], kt = {
|
|
98
|
+
...Ge(cl(), Dl),
|
|
99
99
|
transformCellText: Function,
|
|
100
100
|
/**
|
|
101
101
|
* @Author gx12358
|
|
@@ -115,8 +115,8 @@ const Nl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
|
|
|
115
115
|
type: Object,
|
|
116
116
|
default: void 0
|
|
117
117
|
}
|
|
118
|
-
},
|
|
119
|
-
...
|
|
118
|
+
}, we = {
|
|
119
|
+
...kt,
|
|
120
120
|
rowSelection: {
|
|
121
121
|
type: Object,
|
|
122
122
|
default: void 0
|
|
@@ -144,6 +144,10 @@ const Nl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
|
|
|
144
144
|
type: Boolean,
|
|
145
145
|
default: !1
|
|
146
146
|
},
|
|
147
|
+
showSearch: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
default: !0
|
|
150
|
+
},
|
|
147
151
|
// 轮训时间间隔设置
|
|
148
152
|
polling: Number,
|
|
149
153
|
// 防抖时间设置
|
|
@@ -370,18 +374,18 @@ const Nl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
|
|
|
370
374
|
onBeforeSearchSubmit: Function,
|
|
371
375
|
onColumnsStateChange: Function
|
|
372
376
|
};
|
|
373
|
-
function
|
|
374
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
377
|
+
function Ml(e) {
|
|
378
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ye(e);
|
|
375
379
|
}
|
|
376
|
-
function
|
|
380
|
+
function zl(e, t, a, i) {
|
|
377
381
|
if (!t) return e;
|
|
378
382
|
let o = e;
|
|
379
|
-
if (
|
|
383
|
+
if (G(t)) {
|
|
380
384
|
const s = t.node === "a" ? "span" : t.node;
|
|
381
|
-
return d(s,
|
|
385
|
+
return d(s, U((t == null ? void 0 : t.attr) || {}, {
|
|
382
386
|
class: [t.class, t.node === "a" ? `${a}-a` : ""],
|
|
383
387
|
onClick: t.click
|
|
384
|
-
}),
|
|
388
|
+
}), Ml(e) ? e : {
|
|
385
389
|
default: () => [e]
|
|
386
390
|
});
|
|
387
391
|
}
|
|
@@ -392,40 +396,40 @@ function Dl(e, t, a, i) {
|
|
|
392
396
|
}, [e]);
|
|
393
397
|
break;
|
|
394
398
|
case "time":
|
|
395
|
-
o =
|
|
399
|
+
o = ne(e).format("HH:mm:ss");
|
|
396
400
|
break;
|
|
397
401
|
case "dateMonth":
|
|
398
|
-
o = `${
|
|
402
|
+
o = `${ne(e).month() + 1}月`;
|
|
399
403
|
break;
|
|
400
404
|
case "dateTime":
|
|
401
|
-
o =
|
|
405
|
+
o = ne(e).format("YYYY-MM-DD HH:mm:ss");
|
|
402
406
|
break;
|
|
403
407
|
}
|
|
404
408
|
return o;
|
|
405
409
|
}
|
|
406
|
-
function
|
|
410
|
+
function Al(e, t) {
|
|
407
411
|
const a = t && t.current || 1, i = t && t.pageSize || 10;
|
|
408
412
|
return e.filter((o, s) => s < a * i && s >= i * (a - 1));
|
|
409
413
|
}
|
|
410
|
-
function
|
|
414
|
+
function Kl(e) {
|
|
411
415
|
const t = document.createElement("textarea");
|
|
412
416
|
t.style.position = "absolute", t.style.opacity = "0", t.value = e, document.body.appendChild(t), t.select(), document.execCommand("copy"), document.body.removeChild(t);
|
|
413
417
|
}
|
|
414
|
-
function
|
|
418
|
+
function Ll({ emit: e, loading: t }) {
|
|
415
419
|
var s;
|
|
416
|
-
const a =
|
|
420
|
+
const a = E(ue(t.value) ? t.value : G(t.value) ? (s = t.value) == null ? void 0 : s.spinning : !1);
|
|
417
421
|
_(() => t.value, (c) => {
|
|
418
|
-
a.value =
|
|
422
|
+
a.value = ue(c) ? c : G(c) ? c == null ? void 0 : c.spinning : a.value;
|
|
419
423
|
});
|
|
420
|
-
const i =
|
|
424
|
+
const i = p(() => a.value);
|
|
421
425
|
function o(c) {
|
|
422
426
|
a.value = c, e("loadingChange", !0);
|
|
423
427
|
}
|
|
424
428
|
return { loadingComputed: i, loading: a, setLoading: o };
|
|
425
429
|
}
|
|
426
|
-
function
|
|
427
|
-
const a =
|
|
428
|
-
|
|
430
|
+
function Vl({ size: e, emit: t }) {
|
|
431
|
+
const a = E("middle");
|
|
432
|
+
ze(() => {
|
|
429
433
|
a.value = e.value;
|
|
430
434
|
});
|
|
431
435
|
function i(o) {
|
|
@@ -433,19 +437,19 @@ function Kl({ size: e, emit: t }) {
|
|
|
433
437
|
}
|
|
434
438
|
return { sizeRef: a, setTableSize: i };
|
|
435
439
|
}
|
|
436
|
-
function
|
|
440
|
+
function Wl({
|
|
437
441
|
slots: e,
|
|
438
442
|
props: t,
|
|
439
443
|
pagination: a
|
|
440
444
|
}) {
|
|
441
|
-
const i =
|
|
445
|
+
const i = ge({}), o = E();
|
|
442
446
|
_(() => a.value, () => {
|
|
443
447
|
var S;
|
|
444
|
-
if (
|
|
448
|
+
if (ue(a.value) && !a.value) {
|
|
445
449
|
o.value = !1;
|
|
446
450
|
return;
|
|
447
451
|
}
|
|
448
|
-
const c =
|
|
452
|
+
const c = wt(e, C(t), "pageItemRender"), m = Ee(c) ? {
|
|
449
453
|
itemRender: ({
|
|
450
454
|
page: f,
|
|
451
455
|
type: x,
|
|
@@ -474,11 +478,11 @@ function Ll({
|
|
|
474
478
|
immediate: !0
|
|
475
479
|
});
|
|
476
480
|
function s(c) {
|
|
477
|
-
if (
|
|
481
|
+
if (G(o.value) && G(c)) {
|
|
478
482
|
const m = {};
|
|
479
483
|
Object.keys(c).forEach((v) => {
|
|
480
484
|
Object.prototype.hasOwnProperty.call(c, v) && o.value[v] === c[v] || (m[v] = c[v]);
|
|
481
|
-
}), Object.keys(m).length > 0 && (Object.assign(o.value, m),
|
|
485
|
+
}), Object.keys(m).length > 0 && (Object.assign(o.value, m), Hl(m) && Object.assign(i, m));
|
|
482
486
|
}
|
|
483
487
|
}
|
|
484
488
|
return {
|
|
@@ -487,19 +491,19 @@ function Ll({
|
|
|
487
491
|
setPagination: s
|
|
488
492
|
};
|
|
489
493
|
}
|
|
490
|
-
function
|
|
494
|
+
function Hl(e) {
|
|
491
495
|
if (typeof e != "object" || e === null)
|
|
492
496
|
return !1;
|
|
493
497
|
const t = Object.keys(e);
|
|
494
498
|
return t.length === 2 && t.includes("pageNum") && t.includes("pageSize");
|
|
495
499
|
}
|
|
496
|
-
function
|
|
497
|
-
const a =
|
|
500
|
+
function Yl(e, t) {
|
|
501
|
+
const a = E([]), i = E([]);
|
|
498
502
|
_(() => {
|
|
499
503
|
var f;
|
|
500
504
|
return (f = t.value) == null ? void 0 : f.selectedRowKeys;
|
|
501
505
|
}, (f) => {
|
|
502
|
-
a.value =
|
|
506
|
+
a.value = Ut([...f || []]);
|
|
503
507
|
}, {
|
|
504
508
|
deep: !0,
|
|
505
509
|
immediate: !0
|
|
@@ -511,8 +515,8 @@ function Hl(e, t) {
|
|
|
511
515
|
t.value && ((x = (f = t.value) == null ? void 0 : f.onChange) == null || x.call(f, a.value, i.value));
|
|
512
516
|
};
|
|
513
517
|
return {
|
|
514
|
-
|
|
515
|
-
|
|
518
|
+
selectedKeys: a,
|
|
519
|
+
selectedItems: i,
|
|
516
520
|
selectRowKey: o,
|
|
517
521
|
selectAllRowKey: (f, x, u) => {
|
|
518
522
|
e.value && (f ? x.map((n) => (a.value.every((r) => r !== (n == null ? void 0 : n[e.value])) && n != null && n[e.value] && (a.value.push(n[e.value]), i.value.push(n)), n)) : u.map((n) => (a.value.includes(n == null ? void 0 : n[e.value]) && (a.value = a.value.filter((r) => r !== n[e.value]), i.value = i.value.filter((r) => r[e.value] !== n[e.value])), n)));
|
|
@@ -525,7 +529,7 @@ function Hl(e, t) {
|
|
|
525
529
|
if (e.value && a.value.length !== i.value.length) {
|
|
526
530
|
const x = i.value.map((n) => n[e.value]), u = a.value.filter((n) => !x.includes(n));
|
|
527
531
|
f.forEach((n) => {
|
|
528
|
-
u.includes(n[e.value]) && i.value.push(
|
|
532
|
+
u.includes(n[e.value]) && i.value.push(re(n));
|
|
529
533
|
});
|
|
530
534
|
}
|
|
531
535
|
},
|
|
@@ -534,8 +538,8 @@ function Hl(e, t) {
|
|
|
534
538
|
}
|
|
535
539
|
};
|
|
536
540
|
}
|
|
537
|
-
function
|
|
538
|
-
const a =
|
|
541
|
+
function _l(e, t) {
|
|
542
|
+
const a = p(() => t || 0), i = E(), o = E(e);
|
|
539
543
|
function s() {
|
|
540
544
|
i.value && clearTimeout(i.value);
|
|
541
545
|
}
|
|
@@ -547,13 +551,13 @@ function Wl(e, t) {
|
|
|
547
551
|
}, a.value);
|
|
548
552
|
}));
|
|
549
553
|
}
|
|
550
|
-
return
|
|
554
|
+
return Nl(s), {
|
|
551
555
|
cancel: s,
|
|
552
556
|
run: c
|
|
553
557
|
};
|
|
554
558
|
}
|
|
555
|
-
function
|
|
556
|
-
const t =
|
|
559
|
+
function Gl(e) {
|
|
560
|
+
const t = p(() => e.polling), a = p(() => e.debounceTime), i = p(() => e.dataSource);
|
|
557
561
|
return {
|
|
558
562
|
polling: t,
|
|
559
563
|
request: e.request,
|
|
@@ -562,105 +566,105 @@ function Yl(e) {
|
|
|
562
566
|
dataSource: i
|
|
563
567
|
};
|
|
564
568
|
}
|
|
565
|
-
function
|
|
566
|
-
const
|
|
567
|
-
var
|
|
568
|
-
return
|
|
569
|
-
}),
|
|
570
|
-
var
|
|
571
|
-
const { pagination: g, filters: Y = {}, sorter: V = {}, removeKeys:
|
|
572
|
-
if (!t || !
|
|
569
|
+
function ql({ polling: e, request: t, postData: a, dataSource: i, waitRequest: o, debounceTime: s }, { search: c, columns: m, loading: v, setLoading: S, setColumns: f, removeRowKeys: x, syncSelectedRows: u, formParamsRef: n, setPagination: r, paginationInfo: y, onBeforeSearchSubmit: w, hasCustomRender: I }, R) {
|
|
570
|
+
const P = E(), K = E(!0), L = E(!1), Z = E(!1), z = E([]), q = E(), M = p(() => {
|
|
571
|
+
var O;
|
|
572
|
+
return G(c.value) ? ((O = c.value) == null ? void 0 : O.type) === "button" : !!c.value;
|
|
573
|
+
}), ee = async (O = {}) => {
|
|
574
|
+
var Ae;
|
|
575
|
+
const { pagination: g, filters: Y = {}, sorter: V = {}, removeKeys: Be = [], isPolling: Ue = !1 } = O;
|
|
576
|
+
if (!t || !Ee(t) || C(o) && v.value || L.value)
|
|
573
577
|
return i.value || [];
|
|
574
|
-
if (L.value = !0, !
|
|
578
|
+
if (L.value = !0, !Ue || C(o) || K.value ? S(!0) : j(!0), C(o)) {
|
|
575
579
|
K.value = !1, L.value = !1;
|
|
576
580
|
return;
|
|
577
581
|
}
|
|
578
582
|
g && r(g);
|
|
579
583
|
try {
|
|
580
|
-
let
|
|
581
|
-
if (
|
|
582
|
-
|
|
584
|
+
let fe = {};
|
|
585
|
+
if (ue(g) && !g || ue(y))
|
|
586
|
+
fe = {};
|
|
583
587
|
else {
|
|
584
|
-
const { current: A = 1, pageSize:
|
|
585
|
-
|
|
588
|
+
const { current: A = 1, pageSize: Ce = 10, total: X } = C(y) || {};
|
|
589
|
+
fe.pageNum = Qt({ current: A, pageSize: Ce, total: X }, Be.length), Be.length && x(Be), fe.pageSize = Ce;
|
|
586
590
|
}
|
|
587
|
-
const
|
|
588
|
-
|
|
589
|
-
const
|
|
590
|
-
A && (A != null && A.order) ? f(
|
|
591
|
+
const Ie = G(V) ? [V] : V;
|
|
592
|
+
Ie.forEach((A) => {
|
|
593
|
+
const Ce = (A == null ? void 0 : A.columnKey) || (A == null ? void 0 : A.field);
|
|
594
|
+
A && (A != null && A.order) ? f(C(m).map((X) => (X.dataIndex === Ce ? X.sortOrder = A == null ? void 0 : A.order : X.sortOrder = null, X))) : A && f(C(m).map((X) => (X.dataIndex === Ce && (X.sortOrder = null), X)));
|
|
591
595
|
});
|
|
592
|
-
let
|
|
593
|
-
...
|
|
594
|
-
...
|
|
596
|
+
let pe = {
|
|
597
|
+
...fe || {},
|
|
598
|
+
...O.params,
|
|
595
599
|
...n
|
|
596
600
|
};
|
|
597
|
-
w &&
|
|
601
|
+
w && Ee(w) && (pe = await w(pe, V, Y));
|
|
598
602
|
let J = [];
|
|
599
|
-
const
|
|
600
|
-
if (L.value = !1,
|
|
601
|
-
J =
|
|
602
|
-
const A =
|
|
603
|
-
return A !== ((
|
|
603
|
+
const ie = await (t == null ? void 0 : t(pe, Ie, Y));
|
|
604
|
+
if (L.value = !1, ie && (ie != null && ie.success)) {
|
|
605
|
+
J = ie.data || [], a && Ee(a) && (J = await (a == null ? void 0 : a(J))), u(J);
|
|
606
|
+
const A = ie.total || (J == null ? void 0 : J.length) || 0;
|
|
607
|
+
return A !== ((Ae = C(y)) == null ? void 0 : Ae.total) && r({
|
|
604
608
|
total: A || 0
|
|
605
609
|
}), N(J), J;
|
|
606
610
|
} else
|
|
607
611
|
return [];
|
|
608
|
-
} catch (
|
|
609
|
-
z.value === void 0 && N([]),
|
|
612
|
+
} catch (fe) {
|
|
613
|
+
z.value === void 0 && N([]), R("requestError", fe);
|
|
610
614
|
} finally {
|
|
611
615
|
K.value = !1, S(!1);
|
|
612
616
|
}
|
|
613
617
|
return [];
|
|
614
|
-
},
|
|
615
|
-
|
|
616
|
-
const g = await
|
|
617
|
-
return Y && !
|
|
618
|
-
|
|
618
|
+
}, W = _l(async (O) => {
|
|
619
|
+
q.value && clearTimeout(q.value);
|
|
620
|
+
const g = await ee(O), Y = Xt(e.value, g);
|
|
621
|
+
return Y && !P.value && (q.value = setTimeout(() => {
|
|
622
|
+
W.run({ ...O, isPolling: Y });
|
|
619
623
|
}, Math.max(Y, 2e3))), g;
|
|
620
624
|
}, s.value || 10);
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
}),
|
|
624
|
-
|
|
625
|
+
nl(() => {
|
|
626
|
+
P.value = !0, clearTimeout(q.value);
|
|
627
|
+
}), ul(() => {
|
|
628
|
+
P.value = !0, clearTimeout(q.value);
|
|
625
629
|
}), _(() => e.value, () => {
|
|
626
|
-
e.value ?
|
|
630
|
+
e.value ? W.run({ isPolling: !0 }) : clearTimeout(q.value);
|
|
627
631
|
}, { immediate: !0 }), _([() => o.value, () => i.value], () => {
|
|
628
|
-
|
|
632
|
+
Te();
|
|
629
633
|
}, { deep: !0, immediate: !0 }), _([() => n], () => {
|
|
630
|
-
M.value ||
|
|
634
|
+
M.value || Te();
|
|
631
635
|
}, {
|
|
632
636
|
deep: !0,
|
|
633
637
|
immediate: !0
|
|
634
638
|
});
|
|
635
|
-
function
|
|
636
|
-
|
|
639
|
+
function Te() {
|
|
640
|
+
Re(t) ? (!K.value || !e.value) && W.run({ isPolling: !1 }) : N(i.value || []);
|
|
637
641
|
}
|
|
638
|
-
const l =
|
|
639
|
-
if (
|
|
640
|
-
return
|
|
641
|
-
const
|
|
642
|
-
return !
|
|
643
|
-
}),
|
|
644
|
-
function O
|
|
645
|
-
|
|
642
|
+
const l = p(() => {
|
|
643
|
+
if (I.value)
|
|
644
|
+
return C(z);
|
|
645
|
+
const O = m.value.filter((g) => g.show || g.show === void 0);
|
|
646
|
+
return !C(z) || !O || O.length === 0 ? [] : C(z);
|
|
647
|
+
}), b = p(() => C(z).some((O) => Q(O.children) && O.children.length > 0));
|
|
648
|
+
function j(O) {
|
|
649
|
+
Z.value = O;
|
|
646
650
|
}
|
|
647
|
-
function
|
|
648
|
-
|
|
651
|
+
function $(O, g, Y, V) {
|
|
652
|
+
W.run({ pagination: O, filters: g, sorter: Y, extra: V, isPolling: !1 }), R("change", O, g, Y, V);
|
|
649
653
|
}
|
|
650
|
-
function N(
|
|
654
|
+
function N(O) {
|
|
651
655
|
var Y;
|
|
652
|
-
const g =
|
|
653
|
-
if (!
|
|
656
|
+
const g = Jt(re(O), C(y.value));
|
|
657
|
+
if (!Ve(g, z.value) && (z.value = g, !t || !Ee(t))) {
|
|
654
658
|
const V = g.length || 0;
|
|
655
|
-
V !== ((Y =
|
|
659
|
+
V !== ((Y = C(y)) == null ? void 0 : Y.total) && r({
|
|
656
660
|
total: V
|
|
657
661
|
});
|
|
658
662
|
}
|
|
659
663
|
}
|
|
660
|
-
function
|
|
664
|
+
function te({ key: O, record: g, type: Y = "update" }) {
|
|
661
665
|
switch (Y) {
|
|
662
666
|
case "update":
|
|
663
|
-
z.value = z.value.map((V) =>
|
|
667
|
+
z.value = z.value.map((V) => O && g[O] === V[O] ? { ...V, ...g } : V);
|
|
664
668
|
break;
|
|
665
669
|
case "push":
|
|
666
670
|
z.value.push(g);
|
|
@@ -669,22 +673,22 @@ function _l({ polling: e, request: t, postData: a, dataSource: i, waitRequest: o
|
|
|
669
673
|
z.value.unshift(g);
|
|
670
674
|
break;
|
|
671
675
|
case "delete":
|
|
672
|
-
z.value = z.value.filter((V) =>
|
|
676
|
+
z.value = z.value.filter((V) => O ? O && g[O] !== V[O] : !0);
|
|
673
677
|
break;
|
|
674
678
|
}
|
|
675
679
|
}
|
|
676
680
|
return {
|
|
677
681
|
dataSource: l,
|
|
678
|
-
isTreeDataRef:
|
|
682
|
+
isTreeDataRef: b,
|
|
679
683
|
reSetDataList: N,
|
|
680
|
-
changeDataValue:
|
|
681
|
-
handleTableChange:
|
|
682
|
-
reload: async (
|
|
683
|
-
|
|
684
|
+
changeDataValue: te,
|
|
685
|
+
handleTableChange: $,
|
|
686
|
+
reload: async (O) => {
|
|
687
|
+
Re(t) ? await W.run({ ...O, isPolling: !1 }) : R("reload");
|
|
684
688
|
}
|
|
685
689
|
};
|
|
686
690
|
}
|
|
687
|
-
function
|
|
691
|
+
function Ul(e) {
|
|
688
692
|
const t = {};
|
|
689
693
|
return e.forEach((a) => {
|
|
690
694
|
let i = a.initialValue;
|
|
@@ -692,8 +696,8 @@ function Gl(e) {
|
|
|
692
696
|
!i && o.includes(a.valueType) ? i = void 0 : !i && s.includes(a.valueType) ? i = null : i || (i = ""), a.name === "dateRange" ? (t[a.rangeStartName || "start"] = i ? i[0] : null, t[a.rangeEndName || "end"] = i ? i[1] : null) : a.name && (t[a.name] = i);
|
|
693
697
|
}), t;
|
|
694
698
|
}
|
|
695
|
-
function
|
|
696
|
-
const o =
|
|
699
|
+
function Xl({ searchMap: e, params: t, columns: a, setPagination: i }) {
|
|
700
|
+
const o = ge({}), s = ge({}), c = E([]), m = (S) => {
|
|
697
701
|
var x, u;
|
|
698
702
|
const f = [];
|
|
699
703
|
if ((S === "all" || S === "searchMap") && ((x = e.value) == null || x.forEach((n) => f.push(n)), f.forEach((n) => {
|
|
@@ -710,14 +714,14 @@ function ql({ searchMap: e, params: t, columns: a, setPagination: i }) {
|
|
|
710
714
|
} : r) : c.value.push(n);
|
|
711
715
|
})), S === "all" || S === "searchMap" || S === "columns") {
|
|
712
716
|
i({ current: 1 });
|
|
713
|
-
const n =
|
|
717
|
+
const n = Ul(f);
|
|
714
718
|
Object.assign(s, { ...n });
|
|
715
719
|
for (const r in n)
|
|
716
720
|
o[r] || (o[r] = n[r]);
|
|
717
721
|
}
|
|
718
722
|
(S === "all" || S === "params") && (i({ current: 1 }), Object.assign(o, t.value));
|
|
719
723
|
};
|
|
720
|
-
|
|
724
|
+
il(() => {
|
|
721
725
|
m("all");
|
|
722
726
|
}), _(() => t.value, () => {
|
|
723
727
|
m("params");
|
|
@@ -731,21 +735,21 @@ function ql({ searchMap: e, params: t, columns: a, setPagination: i }) {
|
|
|
731
735
|
}
|
|
732
736
|
return { formDataRef: c, formParamsRef: o, defaultParamsRef: s, setFormParams: v };
|
|
733
737
|
}
|
|
734
|
-
function
|
|
735
|
-
const i =
|
|
738
|
+
function Jl({ columns: e, columnsState: t, changeColumns: a }) {
|
|
739
|
+
const i = E(void 0), o = ge({}), s = ge({}), c = ge({}), m = E([]);
|
|
736
740
|
_(() => e.value, () => {
|
|
737
741
|
var x;
|
|
738
|
-
(x =
|
|
739
|
-
const w =
|
|
742
|
+
(x = C(e)) == null || x.forEach(({ show: u, key: n, fixed: r }, y) => {
|
|
743
|
+
const w = Tt(n, y);
|
|
740
744
|
w && (c[w] = { show: u === void 0 ? !0 : u, fixed: r });
|
|
741
745
|
});
|
|
742
|
-
const f =
|
|
746
|
+
const f = C(e).map((u) => u.key);
|
|
743
747
|
S(f);
|
|
744
|
-
}, { deep: !0, immediate: !0 }),
|
|
748
|
+
}, { deep: !0, immediate: !0 }), ze(() => {
|
|
745
749
|
var x;
|
|
746
750
|
const f = {
|
|
747
|
-
...(x =
|
|
748
|
-
...
|
|
751
|
+
...(x = C(t)) == null ? void 0 : x.value,
|
|
752
|
+
...C(c)
|
|
749
753
|
};
|
|
750
754
|
Object.assign(o, f), Object.assign(s, f);
|
|
751
755
|
});
|
|
@@ -764,16 +768,16 @@ function Ul({ columns: e, columnsState: t, changeColumns: a }) {
|
|
|
764
768
|
setSortKeyColumns: S
|
|
765
769
|
};
|
|
766
770
|
}
|
|
767
|
-
function
|
|
768
|
-
const t =
|
|
771
|
+
function Ql(e) {
|
|
772
|
+
const t = p(() => e.draggabled), a = p(() => e.neverScroll), i = p(() => e.autoScroll);
|
|
769
773
|
return {
|
|
770
774
|
draggabled: t,
|
|
771
775
|
neverScroll: a,
|
|
772
776
|
autoScroll: i
|
|
773
777
|
};
|
|
774
778
|
}
|
|
775
|
-
function
|
|
776
|
-
const c =
|
|
779
|
+
function Zl({ scroll: e, columns: t, breakpoint: a, draggabled: i, autoScroll: o, neverScroll: s }) {
|
|
780
|
+
const c = E([]), m = E([]);
|
|
777
781
|
_([
|
|
778
782
|
() => e.value,
|
|
779
783
|
() => t.value,
|
|
@@ -783,14 +787,14 @@ function Jl({ scroll: e, columns: t, breakpoint: a, draggabled: i, autoScroll: o
|
|
|
783
787
|
() => o.value,
|
|
784
788
|
() => s.value
|
|
785
789
|
], () => {
|
|
786
|
-
const r = f(
|
|
787
|
-
|
|
790
|
+
const r = f(Se(t.value));
|
|
791
|
+
Ve(r, Se(c.value)) || (c.value = re(r)), Ve(r, Se(m.value)) || (m.value = re(r));
|
|
788
792
|
}, {
|
|
789
793
|
deep: !0,
|
|
790
794
|
immediate: !0
|
|
791
795
|
});
|
|
792
|
-
const v =
|
|
793
|
-
const r = S(
|
|
796
|
+
const v = p(() => {
|
|
797
|
+
const r = S(C(c).filter((I) => I.fixed === "left")), y = S(C(c).filter((I) => I.fixed !== "left" && I.fixed !== "right")), w = S(C(c).filter((I) => I.fixed === "right"));
|
|
794
798
|
return [
|
|
795
799
|
...r,
|
|
796
800
|
...y,
|
|
@@ -798,19 +802,19 @@ function Jl({ scroll: e, columns: t, breakpoint: a, draggabled: i, autoScroll: o
|
|
|
798
802
|
];
|
|
799
803
|
});
|
|
800
804
|
function S(r) {
|
|
801
|
-
return r.sort((y, w) =>
|
|
805
|
+
return r.sort((y, w) => Zt(y, w, "order", 0));
|
|
802
806
|
}
|
|
803
807
|
function f(r) {
|
|
804
|
-
return
|
|
805
|
-
var
|
|
806
|
-
if (y.dataIndex === "action" || w === r.length - 1 ? y.resizable = !1 : y.resizable =
|
|
808
|
+
return re(r).map((y, w) => {
|
|
809
|
+
var I;
|
|
810
|
+
if (y.dataIndex === "action" || w === r.length - 1 ? y.resizable = !1 : y.resizable = ue(y.resizable) ? y.resizable : !!(Ye(y.width) && C(i)), !y.width || C(s))
|
|
807
811
|
return y;
|
|
808
|
-
if (y.dataIndex === "action" &&
|
|
809
|
-
if ((
|
|
812
|
+
if (y.dataIndex === "action" && C(o))
|
|
813
|
+
if ((I = C(e)) != null && I.x || !C(a))
|
|
810
814
|
y.width = y.width || 100, y.fixed = "right";
|
|
811
815
|
else {
|
|
812
|
-
const
|
|
813
|
-
y.width = (
|
|
816
|
+
const R = C(t).find((P) => P.dataIndex === y.dataIndex);
|
|
817
|
+
y.width = (R == null ? void 0 : R.width) || "", y.fixed = R == null ? void 0 : R.fixed;
|
|
814
818
|
}
|
|
815
819
|
return y;
|
|
816
820
|
});
|
|
@@ -823,15 +827,15 @@ function Jl({ scroll: e, columns: t, breakpoint: a, draggabled: i, autoScroll: o
|
|
|
823
827
|
c.value = [];
|
|
824
828
|
return;
|
|
825
829
|
}
|
|
826
|
-
|
|
830
|
+
Ve(f(r), Se(c.value)) || (c.value = f(r));
|
|
827
831
|
}
|
|
828
832
|
function n(r) {
|
|
829
|
-
u(
|
|
830
|
-
var
|
|
833
|
+
u(re(Se(t.value)).map((y) => {
|
|
834
|
+
var I, R, P;
|
|
831
835
|
const w = y.key ? {
|
|
832
|
-
show: (
|
|
833
|
-
fixed: (
|
|
834
|
-
order: (
|
|
836
|
+
show: (I = r[y.key]) == null ? void 0 : I.show,
|
|
837
|
+
fixed: (R = r[y.key]) == null ? void 0 : R.fixed,
|
|
838
|
+
order: (P = r[y.key]) == null ? void 0 : P.order
|
|
835
839
|
} : {};
|
|
836
840
|
return { ...y, ...w };
|
|
837
841
|
}));
|
|
@@ -845,8 +849,8 @@ function Jl({ scroll: e, columns: t, breakpoint: a, draggabled: i, autoScroll: o
|
|
|
845
849
|
resizeColumnWidth: x
|
|
846
850
|
};
|
|
847
851
|
}
|
|
848
|
-
function
|
|
849
|
-
const t =
|
|
852
|
+
function ea(e) {
|
|
853
|
+
const t = p(() => e.scroll), a = p(() => e.autoScroll), i = p(() => e.modalScroll), o = p(() => e.neverScroll), s = p(() => e.rowSelection), c = p(() => e.scrollBreakpoint);
|
|
850
854
|
return {
|
|
851
855
|
scroll: t,
|
|
852
856
|
neverScroll: o,
|
|
@@ -856,29 +860,29 @@ function Ql(e) {
|
|
|
856
860
|
scrollBreakpoint: c
|
|
857
861
|
};
|
|
858
862
|
}
|
|
859
|
-
function
|
|
860
|
-
const S =
|
|
863
|
+
function ta({ scroll: e, columns: t, autoScroll: a, modalScroll: i, neverScroll: o, rowSelection: s, screens: c, innerWidth: m, scrollBreakpoint: v }) {
|
|
864
|
+
const S = p(() => {
|
|
861
865
|
var u, n, r;
|
|
862
|
-
return
|
|
863
|
-
}), f =
|
|
866
|
+
return C(v) ? Ye(C(v)) ? m.value > C(v) : pt(C(v)) ? (u = c.value) == null ? void 0 : u[C(v)] : (n = c.value) == null ? void 0 : n.xl : (r = c.value) == null ? void 0 : r.xl;
|
|
867
|
+
}), f = p(() => {
|
|
864
868
|
let u = 0;
|
|
865
|
-
const n =
|
|
866
|
-
y.forEach((
|
|
867
|
-
u += Number.parseInt(String(
|
|
869
|
+
const n = C(s) ? 60 : 0, r = 150, y = re(C(t));
|
|
870
|
+
y.forEach((R) => {
|
|
871
|
+
u += Number.parseInt(String(R.width)) || 0;
|
|
868
872
|
});
|
|
869
|
-
const
|
|
870
|
-
return
|
|
873
|
+
const I = y.filter((R) => !Reflect.has(R, "width")).length;
|
|
874
|
+
return I !== 0 && (u += I * r), n && (u += n), u;
|
|
871
875
|
});
|
|
872
|
-
return { proScroll:
|
|
876
|
+
return { proScroll: p(() => {
|
|
873
877
|
var u, n;
|
|
874
|
-
return
|
|
875
|
-
y: ((u =
|
|
876
|
-
} :
|
|
878
|
+
return C(o) ? {} : C(e) && Object.keys(C(e)).length ? C(e) : C(i) ? {
|
|
879
|
+
y: ((u = C(e)) == null ? void 0 : u.y) || ((n = c.value) != null && n.xl ? 400 : 235)
|
|
880
|
+
} : C(a) ? S.value ? {} : ue(S.value) ? { x: C(f) } : {} : {};
|
|
877
881
|
}), breakpoint: S };
|
|
878
882
|
}
|
|
879
|
-
const { provideContext:
|
|
880
|
-
function
|
|
881
|
-
const a =
|
|
883
|
+
const { provideContext: la, useInjectContext: be } = El("pro-table");
|
|
884
|
+
function aa(e, t) {
|
|
885
|
+
const a = ge({});
|
|
882
886
|
function i() {
|
|
883
887
|
Object.keys(e).forEach((c) => {
|
|
884
888
|
o(c, e[c]);
|
|
@@ -889,7 +893,7 @@ function ta(e, t) {
|
|
|
889
893
|
e[s.rangeEndName || "end"]
|
|
890
894
|
] : []);
|
|
891
895
|
}
|
|
892
|
-
|
|
896
|
+
ze(() => {
|
|
893
897
|
i();
|
|
894
898
|
});
|
|
895
899
|
function o(s, c) {
|
|
@@ -901,7 +905,7 @@ function ta(e, t) {
|
|
|
901
905
|
changeFormState: o
|
|
902
906
|
};
|
|
903
907
|
}
|
|
904
|
-
const
|
|
908
|
+
const na = (e) => ({
|
|
905
909
|
[`${e.componentCls}-form`]: {
|
|
906
910
|
"&-collapse-button": {
|
|
907
911
|
display: "flex",
|
|
@@ -935,28 +939,28 @@ const la = (e) => ({
|
|
|
935
939
|
alignItems: "center"
|
|
936
940
|
}
|
|
937
941
|
});
|
|
938
|
-
function
|
|
939
|
-
return typeof t == "function" ? t(
|
|
942
|
+
function De(e, t) {
|
|
943
|
+
return typeof t == "function" ? t(ne(e)) : ne(e).format(t);
|
|
940
944
|
}
|
|
941
|
-
function
|
|
945
|
+
function Pe(e, t) {
|
|
942
946
|
return t ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
|
|
943
947
|
}
|
|
944
|
-
const
|
|
948
|
+
const xt = (e, t, a = "string") => {
|
|
945
949
|
if (Q(e)) {
|
|
946
950
|
const [i, o] = e;
|
|
947
951
|
let s, c;
|
|
948
952
|
if (Array.isArray(t) ? (s = t[0], c = t[1]) : typeof t == "object" && t.type === "mask" ? (s = t.format, c = t.format) : (s = t, c = t), a === "string") {
|
|
949
|
-
const m = i ?
|
|
953
|
+
const m = i ? De(i, s) : "", v = o ? De(o, c) : "";
|
|
950
954
|
return [m, v];
|
|
951
955
|
}
|
|
952
|
-
return [
|
|
956
|
+
return [ne(i), ne(o)];
|
|
953
957
|
}
|
|
954
958
|
}, {
|
|
955
|
-
useBreakpoint:
|
|
956
|
-
} =
|
|
957
|
-
MonthPicker:
|
|
958
|
-
RangePicker:
|
|
959
|
-
} =
|
|
959
|
+
useBreakpoint: ua
|
|
960
|
+
} = ut, {
|
|
961
|
+
MonthPicker: ia,
|
|
962
|
+
RangePicker: sa
|
|
963
|
+
} = It, jt = /* @__PURE__ */ de({
|
|
960
964
|
name: "ProTableForm",
|
|
961
965
|
props: {
|
|
962
966
|
search: {
|
|
@@ -966,7 +970,7 @@ const bt = (e, t, a = "string") => {
|
|
|
966
970
|
searchText: "查询"
|
|
967
971
|
})
|
|
968
972
|
},
|
|
969
|
-
modal:
|
|
973
|
+
modal: we.modalScroll,
|
|
970
974
|
searchMap: {
|
|
971
975
|
type: Array,
|
|
972
976
|
default: () => []
|
|
@@ -984,16 +988,16 @@ const bt = (e, t, a = "string") => {
|
|
|
984
988
|
const {
|
|
985
989
|
wrapSSR: o,
|
|
986
990
|
hashId: s
|
|
987
|
-
} =
|
|
991
|
+
} = qe("ProTableForm", [na], e.prefixCls), c = Ot(), m = ua(), {
|
|
988
992
|
formState: v,
|
|
989
993
|
resetFormState: S,
|
|
990
994
|
changeFormState: f
|
|
991
|
-
} =
|
|
995
|
+
} = aa(e.defaultParams || {}, e.searchMap || []), x = E(!1), u = p(() => {
|
|
992
996
|
var l;
|
|
993
|
-
return
|
|
994
|
-
}), n =
|
|
995
|
-
var l,
|
|
996
|
-
return ((l = e.search) == null ? void 0 : l.
|
|
997
|
+
return G(e.search) ? ((l = e.search) == null ? void 0 : l.type) === "button" : !1;
|
|
998
|
+
}), n = p(() => {
|
|
999
|
+
var l, b;
|
|
1000
|
+
return ue((l = e.search) == null ? void 0 : l.reetButton) ? (b = e.search) == null ? void 0 : b.reetButton : u.value;
|
|
997
1001
|
}), r = [{
|
|
998
1002
|
value: "xxl",
|
|
999
1003
|
span: 4
|
|
@@ -1013,16 +1017,16 @@ const bt = (e, t, a = "string") => {
|
|
|
1013
1017
|
value: "xs",
|
|
1014
1018
|
span: 1
|
|
1015
1019
|
}], y = (l) => {
|
|
1016
|
-
let
|
|
1017
|
-
for (let
|
|
1018
|
-
const
|
|
1019
|
-
if (m.value[
|
|
1020
|
-
|
|
1020
|
+
let b = 4;
|
|
1021
|
+
for (let j = 0; j < r.length; j += 1) {
|
|
1022
|
+
const $ = r[j].value;
|
|
1023
|
+
if (m.value[$]) {
|
|
1024
|
+
b = (l == null ? void 0 : l[$]) || (e.modal ? 3 : r[j].span);
|
|
1021
1025
|
break;
|
|
1022
1026
|
}
|
|
1023
1027
|
}
|
|
1024
|
-
return
|
|
1025
|
-
}, w =
|
|
1028
|
+
return b;
|
|
1029
|
+
}, w = p(() => {
|
|
1026
1030
|
var l;
|
|
1027
1031
|
return y((l = e.search) == null ? void 0 : l.span);
|
|
1028
1032
|
});
|
|
@@ -1032,72 +1036,72 @@ const bt = (e, t, a = "string") => {
|
|
|
1032
1036
|
}, (l) => {
|
|
1033
1037
|
x.value = x.value || !!l;
|
|
1034
1038
|
});
|
|
1035
|
-
const
|
|
1039
|
+
const I = (l) => {
|
|
1036
1040
|
x.value = l;
|
|
1037
|
-
},
|
|
1038
|
-
...
|
|
1041
|
+
}, R = (l, b, j) => (l + 1) % b === 0 ? {
|
|
1042
|
+
...j,
|
|
1039
1043
|
marginRight: 0
|
|
1040
1044
|
} : {
|
|
1041
|
-
...
|
|
1045
|
+
...j,
|
|
1042
1046
|
marginRight: "2%"
|
|
1043
|
-
},
|
|
1044
|
-
const l =
|
|
1045
|
-
return
|
|
1046
|
-
}, K = (l = !1,
|
|
1047
|
-
|
|
1048
|
-
(!u.value || l) && t("search",
|
|
1047
|
+
}, P = () => {
|
|
1048
|
+
const l = re(v), b = e.searchMap.find((N) => N.valueType === "text") || "", j = e.searchMap.find((N) => N.valueType === "dateRange") || "", $ = e.searchMap.find((N) => N.valueType === "treeSelect");
|
|
1049
|
+
return b && (l[b.name] = v[b.name] || b.initialValue || ""), j && (l[j.rangeStartName || "start"] = l[j.name] ? l[j.name][0] : "", l[j.rangeEndName || "end"] = l[j.name] ? l[j.name][1] : "", delete l[j.name]), $ && ($ != null && $.name && Q(v[$ == null ? void 0 : $.name]) && (l[$.name] = v[$.name].length ? v[$.name].map((N) => N[$.valueKey === "text" ? "label" : "value"]).join() : ""), $ != null && $.name && Q(l[$ == null ? void 0 : $.name]) && (l[$.name] = l[$.name].length ? l[$.name].map((N) => N[$.valueKey === "text" ? "label" : "value"]) : "")), l;
|
|
1050
|
+
}, K = (l = !1, b) => {
|
|
1051
|
+
sl(() => {
|
|
1052
|
+
(!u.value || l) && t("search", P(), !!b);
|
|
1049
1053
|
});
|
|
1050
|
-
}, L = (l,
|
|
1051
|
-
var
|
|
1052
|
-
switch (
|
|
1054
|
+
}, L = (l, b) => {
|
|
1055
|
+
var j, $;
|
|
1056
|
+
switch (b.valueType) {
|
|
1053
1057
|
case "text":
|
|
1054
|
-
f(
|
|
1058
|
+
f(b.name || "", l || b.initialValue || "");
|
|
1055
1059
|
break;
|
|
1056
1060
|
case "select":
|
|
1057
|
-
f(
|
|
1061
|
+
f(b.name || "", l || l === 0 ? l : b.initialValue || void 0);
|
|
1058
1062
|
break;
|
|
1059
1063
|
case "treeSelect":
|
|
1060
|
-
f(
|
|
1064
|
+
f(b.name || "", l || l === 0 ? l : b.initialValue || ((j = b.field) != null && j.treeCheckable || ($ = b.field) != null && $.multiple ? [] : null));
|
|
1061
1065
|
break;
|
|
1062
1066
|
case "date":
|
|
1063
|
-
f(
|
|
1067
|
+
f(b.name || "", l ? De(l, Pe(b.valueFormat, b.showTime)) : b.initialValue || null);
|
|
1064
1068
|
break;
|
|
1065
1069
|
case "dateMonth":
|
|
1066
|
-
f(
|
|
1070
|
+
f(b.name || "", l ? De(l, "YYYY-MM") : b.initialValue || null);
|
|
1067
1071
|
break;
|
|
1068
1072
|
case "dateRange":
|
|
1069
|
-
f(
|
|
1073
|
+
f(b.name || "", l && Q(l) && l.length === 2 ? xt(l, Pe(b.valueFormat, b.showTime)) : b.initialValue || null);
|
|
1070
1074
|
break;
|
|
1071
1075
|
case "time":
|
|
1072
|
-
f(
|
|
1076
|
+
f(b.name || "", l ? De(l, b.valueFormat || "HH:mm:ss") : b.initialValue || null);
|
|
1073
1077
|
break;
|
|
1074
1078
|
}
|
|
1075
|
-
|
|
1076
|
-
},
|
|
1079
|
+
b.valueType === "treeSelect" || b.valueType, K();
|
|
1080
|
+
}, Z = (l = !0) => {
|
|
1077
1081
|
S(), K(!0, l);
|
|
1078
1082
|
};
|
|
1079
1083
|
i({
|
|
1080
|
-
getFormState: () =>
|
|
1081
|
-
resetForm:
|
|
1084
|
+
getFormState: () => P(),
|
|
1085
|
+
resetForm: Z
|
|
1082
1086
|
});
|
|
1083
1087
|
const z = () => {
|
|
1084
|
-
var
|
|
1085
|
-
const l = (
|
|
1088
|
+
var b;
|
|
1089
|
+
const l = (b = c == null ? void 0 : c.emptyText) == null ? void 0 : b.value;
|
|
1086
1090
|
if (l) {
|
|
1087
|
-
const
|
|
1091
|
+
const j = ye(l), $ = j ? Ft(l) : $t(l || []);
|
|
1088
1092
|
return d("div", {
|
|
1089
|
-
class:
|
|
1090
|
-
}, [
|
|
1093
|
+
class: We(`${e.prefixCls}-search-empty-text`, s.value)
|
|
1094
|
+
}, [j ? $ : Q($) ? $.map((N) => nt(N)) : void 0]);
|
|
1091
1095
|
}
|
|
1092
|
-
},
|
|
1093
|
-
default: () => [n.value && d(
|
|
1094
|
-
onClick: () =>
|
|
1096
|
+
}, q = () => (u.value || n.value) && d(ve, null, {
|
|
1097
|
+
default: () => [n.value && d(bt, {
|
|
1098
|
+
onClick: () => Z()
|
|
1095
1099
|
}, {
|
|
1096
1100
|
default: () => {
|
|
1097
1101
|
var l;
|
|
1098
1102
|
return [((l = e.search) == null ? void 0 : l.resetText) || "重置"];
|
|
1099
1103
|
}
|
|
1100
|
-
}), u.value && d(
|
|
1104
|
+
}), u.value && d(bt, {
|
|
1101
1105
|
loading: e.loading,
|
|
1102
1106
|
type: "primary",
|
|
1103
1107
|
onClick: () => K(!0)
|
|
@@ -1109,28 +1113,28 @@ const bt = (e, t, a = "string") => {
|
|
|
1109
1113
|
})]
|
|
1110
1114
|
}), M = ({
|
|
1111
1115
|
formItemStyle: l,
|
|
1112
|
-
advanced:
|
|
1113
|
-
showAdvanced:
|
|
1116
|
+
advanced: b,
|
|
1117
|
+
showAdvanced: j = !0
|
|
1114
1118
|
}) => d("div", {
|
|
1115
1119
|
style: l,
|
|
1116
1120
|
class: `${e.prefixCls}-form-collapse-button ${s.value}`
|
|
1117
|
-
}, [d(
|
|
1121
|
+
}, [d(ve, {
|
|
1118
1122
|
size: 16
|
|
1119
1123
|
}, {
|
|
1120
1124
|
default: () => {
|
|
1121
|
-
var
|
|
1122
|
-
return [
|
|
1125
|
+
var $, N;
|
|
1126
|
+
return [q(), j && d("span", {
|
|
1123
1127
|
class: `${e.prefixCls}-a ${s.value}`,
|
|
1124
|
-
onClick: () =>
|
|
1125
|
-
}, [
|
|
1128
|
+
onClick: () => I(!b)
|
|
1129
|
+
}, [b ? "收起" : "展开", ($ = e.search) != null && $.collapseRender ? (N = e.search) == null ? void 0 : N.collapseRender(b) : b ? d(dl, null, null) : d(fl, null, null)])];
|
|
1126
1130
|
}
|
|
1127
|
-
})]),
|
|
1128
|
-
var
|
|
1129
|
-
let
|
|
1130
|
-
const
|
|
1131
|
+
})]), ee = (l) => {
|
|
1132
|
+
var $, N, te, O;
|
|
1133
|
+
let b;
|
|
1134
|
+
const j = u.value ? Ct : Ct.Search;
|
|
1131
1135
|
switch (l.valueType) {
|
|
1132
1136
|
case "text":
|
|
1133
|
-
|
|
1137
|
+
b = d(j, U({
|
|
1134
1138
|
style: {
|
|
1135
1139
|
width: "100%"
|
|
1136
1140
|
},
|
|
@@ -1142,7 +1146,7 @@ const bt = (e, t, a = "string") => {
|
|
|
1142
1146
|
}, l.field || {}), null);
|
|
1143
1147
|
break;
|
|
1144
1148
|
case "select":
|
|
1145
|
-
|
|
1149
|
+
b = d($l, U({
|
|
1146
1150
|
style: {
|
|
1147
1151
|
width: "100%"
|
|
1148
1152
|
},
|
|
@@ -1152,9 +1156,9 @@ const bt = (e, t, a = "string") => {
|
|
|
1152
1156
|
showSearch: l.showSearch,
|
|
1153
1157
|
allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
|
|
1154
1158
|
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
1155
|
-
notFoundContent: l.loading === void 0 ? void 0 : l.loading ? d(
|
|
1159
|
+
notFoundContent: l.loading === void 0 ? void 0 : l.loading ? d(lt, {
|
|
1156
1160
|
size: "small",
|
|
1157
|
-
indicator: (
|
|
1161
|
+
indicator: ($ = c == null ? void 0 : c.indicator) == null ? void 0 : $.value
|
|
1158
1162
|
}, null) : z(),
|
|
1159
1163
|
onChange: (g) => L(g, l),
|
|
1160
1164
|
options: l.loading ? [] : (N = l == null ? void 0 : l.valueEnum) == null ? void 0 : N.map((g) => ({
|
|
@@ -1164,7 +1168,7 @@ const bt = (e, t, a = "string") => {
|
|
|
1164
1168
|
}, l.field || {}), null);
|
|
1165
1169
|
break;
|
|
1166
1170
|
case "treeSelect":
|
|
1167
|
-
|
|
1171
|
+
b = d(pl, U({
|
|
1168
1172
|
style: {
|
|
1169
1173
|
width: "100%"
|
|
1170
1174
|
},
|
|
@@ -1173,58 +1177,58 @@ const bt = (e, t, a = "string") => {
|
|
|
1173
1177
|
allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
|
|
1174
1178
|
treeData: l.loading ? [] : l.valueEnum,
|
|
1175
1179
|
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
1176
|
-
notFoundContent: l.loading === void 0 ? void 0 : l.loading ? d(
|
|
1180
|
+
notFoundContent: l.loading === void 0 ? void 0 : l.loading ? d(lt, {
|
|
1177
1181
|
size: "small",
|
|
1178
|
-
indicator: (
|
|
1182
|
+
indicator: (te = c == null ? void 0 : c.indicator) == null ? void 0 : te.value
|
|
1179
1183
|
}, null) : z(),
|
|
1180
1184
|
onChange: (g) => L(g, l)
|
|
1181
1185
|
}, l.field || {}), null);
|
|
1182
1186
|
break;
|
|
1183
1187
|
case "date":
|
|
1184
|
-
|
|
1188
|
+
b = d(It, U({
|
|
1185
1189
|
style: {
|
|
1186
1190
|
width: "100%"
|
|
1187
1191
|
},
|
|
1188
|
-
value: v[l.name] ?
|
|
1192
|
+
value: v[l.name] ? ne(v[l.name]) : void 0,
|
|
1189
1193
|
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
1190
1194
|
placeholder: l.placeholder || "请选择",
|
|
1191
1195
|
allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
|
|
1192
|
-
format:
|
|
1196
|
+
format: Pe(l.valueFormat, l.showTime),
|
|
1193
1197
|
showTime: l.showTime,
|
|
1194
1198
|
showToday: l.showToday || !0,
|
|
1195
1199
|
onChange: (g) => L(g, l)
|
|
1196
1200
|
}, l.field || {}), null);
|
|
1197
1201
|
break;
|
|
1198
1202
|
case "dateMonth":
|
|
1199
|
-
|
|
1203
|
+
b = d(ia, U({
|
|
1200
1204
|
style: {
|
|
1201
1205
|
width: "100%"
|
|
1202
1206
|
},
|
|
1203
|
-
value: v[l.name] ?
|
|
1207
|
+
value: v[l.name] ? ne(v[l.name], l.valueFormat || "YYYY-MM") : void 0,
|
|
1204
1208
|
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
1205
1209
|
placeholder: l.placeholder || "请选择",
|
|
1206
1210
|
onChange: (g) => L(g, l)
|
|
1207
1211
|
}, l.field || {}), null);
|
|
1208
1212
|
break;
|
|
1209
1213
|
case "dateRange":
|
|
1210
|
-
|
|
1214
|
+
b = d(sa, U({
|
|
1211
1215
|
style: {
|
|
1212
1216
|
width: "100%"
|
|
1213
1217
|
},
|
|
1214
|
-
value: v[l.name] && Q(v[l.name]) && ((
|
|
1218
|
+
value: v[l.name] && Q(v[l.name]) && ((O = v[l.name]) == null ? void 0 : O.length) === 2 ? xt(v[l.name], Pe(l.valueFormat, l.showTime), "dayjs") : void 0,
|
|
1215
1219
|
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
1216
1220
|
placeholder: l.placeholder || ["开始日期", "结束日期"],
|
|
1217
|
-
format:
|
|
1221
|
+
format: Pe(l.valueFormat, l.showTime),
|
|
1218
1222
|
showTime: l.showTime,
|
|
1219
1223
|
onChange: (g) => L(g, l)
|
|
1220
1224
|
}, l.field || {}), null);
|
|
1221
1225
|
break;
|
|
1222
1226
|
case "time":
|
|
1223
|
-
|
|
1227
|
+
b = d(Tl, U({
|
|
1224
1228
|
style: {
|
|
1225
1229
|
width: "100%"
|
|
1226
1230
|
},
|
|
1227
|
-
value: v[l.name] ?
|
|
1231
|
+
value: v[l.name] ? ne(v[l.name], l.valueFormat || "HH:mm:ss") : void 0,
|
|
1228
1232
|
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
1229
1233
|
placeholder: l.placeholder || "请选择",
|
|
1230
1234
|
allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
|
|
@@ -1234,25 +1238,25 @@ const bt = (e, t, a = "string") => {
|
|
|
1234
1238
|
}, l.field || {}), null);
|
|
1235
1239
|
break;
|
|
1236
1240
|
}
|
|
1237
|
-
return
|
|
1238
|
-
},
|
|
1241
|
+
return b;
|
|
1242
|
+
}, W = ({
|
|
1239
1243
|
formItemStyle: l,
|
|
1240
|
-
item:
|
|
1244
|
+
item: b
|
|
1241
1245
|
}) => d("div", {
|
|
1242
1246
|
class: `${e.prefixCls}-form-item`,
|
|
1243
1247
|
style: l
|
|
1244
|
-
}, [d(
|
|
1245
|
-
default: () => [
|
|
1246
|
-
})]),
|
|
1247
|
-
var
|
|
1248
|
-
const l = [...e.searchMap, ...((
|
|
1248
|
+
}, [d(yt.Item, null, {
|
|
1249
|
+
default: () => [b.__v_isVNode ? b : ee(b)]
|
|
1250
|
+
})]), Te = () => {
|
|
1251
|
+
var j;
|
|
1252
|
+
const l = [...e.searchMap, ...((j = a.default) == null ? void 0 : j.call(a)) || []], b = {
|
|
1249
1253
|
width: `${(100 - (w.value - 1) * 2) / w.value}%`
|
|
1250
1254
|
};
|
|
1251
|
-
return l.map((
|
|
1252
|
-
const
|
|
1253
|
-
return l.length < w.value || x.value ? d(
|
|
1254
|
-
formItemStyle:
|
|
1255
|
-
item:
|
|
1255
|
+
return l.map(($, N) => {
|
|
1256
|
+
const te = R(N, w.value, b);
|
|
1257
|
+
return l.length < w.value || x.value ? d(_e, null, [W({
|
|
1258
|
+
formItemStyle: te,
|
|
1259
|
+
item: $
|
|
1256
1260
|
}), N === l.length - 1 && M({
|
|
1257
1261
|
formItemStyle: {
|
|
1258
1262
|
flex: 1,
|
|
@@ -1260,12 +1264,12 @@ const bt = (e, t, a = "string") => {
|
|
|
1260
1264
|
},
|
|
1261
1265
|
advanced: x.value,
|
|
1262
1266
|
showAdvanced: x.value
|
|
1263
|
-
})]) : d(
|
|
1264
|
-
formItemStyle:
|
|
1265
|
-
item:
|
|
1266
|
-
}), N === w.value - 1 && (w.value - 1 === 0 || l.length === w.value) &&
|
|
1267
|
-
formItemStyle:
|
|
1268
|
-
item:
|
|
1267
|
+
})]) : d(_e, null, [N < w.value - 1 && W({
|
|
1268
|
+
formItemStyle: te,
|
|
1269
|
+
item: $
|
|
1270
|
+
}), N === w.value - 1 && (w.value - 1 === 0 || l.length === w.value) && W({
|
|
1271
|
+
formItemStyle: te,
|
|
1272
|
+
item: $
|
|
1269
1273
|
}), N === w.value - 1 && l.length >= w.value && M({
|
|
1270
1274
|
formItemStyle: {
|
|
1271
1275
|
flex: 1,
|
|
@@ -1277,32 +1281,32 @@ const bt = (e, t, a = "string") => {
|
|
|
1277
1281
|
});
|
|
1278
1282
|
};
|
|
1279
1283
|
return () => {
|
|
1280
|
-
var l,
|
|
1284
|
+
var l, b;
|
|
1281
1285
|
return o(d("div", {
|
|
1282
1286
|
class: {
|
|
1283
1287
|
[`${s.value}`]: !0,
|
|
1284
|
-
[`${
|
|
1285
|
-
[`${(l = e.search) == null ? void 0 : l.className}`]: (
|
|
1288
|
+
[`${C(e.prefixCls)}-search`]: !0,
|
|
1289
|
+
[`${(l = e.search) == null ? void 0 : l.className}`]: (b = e.search) == null ? void 0 : b.className
|
|
1286
1290
|
}
|
|
1287
|
-
}, [d(
|
|
1288
|
-
class: `${
|
|
1291
|
+
}, [d(yt, {
|
|
1292
|
+
class: `${C(e.prefixCls)}-form ${s.value}`,
|
|
1289
1293
|
layout: "horizontal"
|
|
1290
1294
|
}, {
|
|
1291
1295
|
default: () => [d("div", {
|
|
1292
|
-
class: `${
|
|
1293
|
-
}, [
|
|
1296
|
+
class: `${C(e.prefixCls)}-form-container ${s.value}`
|
|
1297
|
+
}, [Te()])]
|
|
1294
1298
|
})]));
|
|
1295
1299
|
};
|
|
1296
1300
|
}
|
|
1297
1301
|
});
|
|
1298
|
-
|
|
1299
|
-
const
|
|
1300
|
-
const t =
|
|
1302
|
+
jt.inheritAttrs = !1;
|
|
1303
|
+
const Me = (e) => {
|
|
1304
|
+
const t = E(null);
|
|
1301
1305
|
return t.value = e, (...a) => {
|
|
1302
1306
|
var i;
|
|
1303
1307
|
return (i = t.value) == null ? void 0 : i.call(t, ...a);
|
|
1304
1308
|
};
|
|
1305
|
-
},
|
|
1309
|
+
}, oa = (e) => ({
|
|
1306
1310
|
[`${e.componentCls}`]: {
|
|
1307
1311
|
width: "auto",
|
|
1308
1312
|
"&-title": {
|
|
@@ -1384,7 +1388,7 @@ const Ne = (e) => {
|
|
|
1384
1388
|
}
|
|
1385
1389
|
}
|
|
1386
1390
|
}
|
|
1387
|
-
}),
|
|
1391
|
+
}), Je = ({
|
|
1388
1392
|
title: e,
|
|
1389
1393
|
show: t,
|
|
1390
1394
|
treeKey: a,
|
|
@@ -1395,8 +1399,8 @@ const Ne = (e) => {
|
|
|
1395
1399
|
const {
|
|
1396
1400
|
cacheColumns: s,
|
|
1397
1401
|
settingsAction: c
|
|
1398
|
-
} =
|
|
1399
|
-
return t ? d(
|
|
1402
|
+
} = be();
|
|
1403
|
+
return t ? d(ce, {
|
|
1400
1404
|
title: e
|
|
1401
1405
|
}, {
|
|
1402
1406
|
default: () => {
|
|
@@ -1405,7 +1409,7 @@ const Ne = (e) => {
|
|
|
1405
1409
|
onClick: (v) => {
|
|
1406
1410
|
var n, r, y;
|
|
1407
1411
|
v.stopPropagation(), v.preventDefault();
|
|
1408
|
-
const S = ((r = (n =
|
|
1412
|
+
const S = ((r = (n = C(s)) == null ? void 0 : n.find((w) => w.uuid === a)) == null ? void 0 : r.key) || "", f = (c == null ? void 0 : c.columnsMap[S]) || {};
|
|
1409
1413
|
if (typeof f.disable == "boolean" ? f.disable : (y = f.disable) == null ? void 0 : y.icon) return;
|
|
1410
1414
|
const u = {
|
|
1411
1415
|
...c == null ? void 0 : c.columnsMap,
|
|
@@ -1419,7 +1423,7 @@ const Ne = (e) => {
|
|
|
1419
1423
|
}, [(m = o.default) == null ? void 0 : m.call(o)])];
|
|
1420
1424
|
}
|
|
1421
1425
|
}) : null;
|
|
1422
|
-
},
|
|
1426
|
+
}, ra = /* @__PURE__ */ de({
|
|
1423
1427
|
props: {
|
|
1424
1428
|
treeKey: String,
|
|
1425
1429
|
hashId: String,
|
|
@@ -1431,34 +1435,34 @@ const Ne = (e) => {
|
|
|
1431
1435
|
setup(e) {
|
|
1432
1436
|
const {
|
|
1433
1437
|
cacheColumns: t
|
|
1434
|
-
} =
|
|
1438
|
+
} = be(), a = p(() => {
|
|
1435
1439
|
var o, s;
|
|
1436
|
-
return ((s = (o =
|
|
1437
|
-
}), i =
|
|
1440
|
+
return ((s = (o = C(t)) == null ? void 0 : o.find((c) => c.uuid === e.treeKey)) == null ? void 0 : s.key) || "";
|
|
1441
|
+
}), i = p(() => a.value === "action" && e.autoScroll);
|
|
1438
1442
|
return () => {
|
|
1439
1443
|
const o = d("span", {
|
|
1440
1444
|
class: [`${e.className}-list-item-option`, e.hashId]
|
|
1441
|
-
}, [d(
|
|
1445
|
+
}, [d(Je, {
|
|
1442
1446
|
treeKey: e.treeKey || "",
|
|
1443
1447
|
fixed: "left",
|
|
1444
1448
|
title: "固定在列首",
|
|
1445
1449
|
show: e.fixed !== "left" && !i.value
|
|
1446
1450
|
}, {
|
|
1447
|
-
default: () => [d(
|
|
1448
|
-
}), d(
|
|
1451
|
+
default: () => [d(hl, null, null)]
|
|
1452
|
+
}), d(Je, {
|
|
1449
1453
|
treeKey: e.treeKey || "",
|
|
1450
1454
|
fixed: void 0,
|
|
1451
1455
|
title: "不固定",
|
|
1452
1456
|
show: !!e.fixed && !i.value
|
|
1453
1457
|
}, {
|
|
1454
|
-
default: () => [d(
|
|
1455
|
-
}), d(
|
|
1458
|
+
default: () => [d(ml, null, null)]
|
|
1459
|
+
}), d(Je, {
|
|
1456
1460
|
treeKey: e.treeKey || "",
|
|
1457
1461
|
fixed: "right",
|
|
1458
1462
|
title: "固定在列尾",
|
|
1459
1463
|
show: e.fixed !== "right"
|
|
1460
1464
|
}, {
|
|
1461
|
-
default: () => [d(
|
|
1465
|
+
default: () => [d(vl, null, null)]
|
|
1462
1466
|
})]);
|
|
1463
1467
|
return d("span", {
|
|
1464
1468
|
class: [`${e.className}-list-item`, e.hashId],
|
|
@@ -1468,7 +1472,7 @@ const Ne = (e) => {
|
|
|
1468
1472
|
}, [e.title]), o]);
|
|
1469
1473
|
};
|
|
1470
1474
|
}
|
|
1471
|
-
}),
|
|
1475
|
+
}), Qe = /* @__PURE__ */ de({
|
|
1472
1476
|
props: {
|
|
1473
1477
|
list: Array,
|
|
1474
1478
|
keys: Array,
|
|
@@ -1483,74 +1487,74 @@ const Ne = (e) => {
|
|
|
1483
1487
|
}
|
|
1484
1488
|
},
|
|
1485
1489
|
setup(e) {
|
|
1486
|
-
const t =
|
|
1490
|
+
const t = E(tt().uuid(15)), a = p(() => e.list && e.list.length > 0), i = E([]), o = E([]), {
|
|
1487
1491
|
cacheColumns: s,
|
|
1488
1492
|
slots: c,
|
|
1489
1493
|
settingsAction: m
|
|
1490
|
-
} =
|
|
1494
|
+
} = be(), v = (u, n) => u.map(({
|
|
1491
1495
|
key: r,
|
|
1492
1496
|
children: y,
|
|
1493
1497
|
uuid: w,
|
|
1494
|
-
...
|
|
1498
|
+
...I
|
|
1495
1499
|
}) => {
|
|
1496
1500
|
var L;
|
|
1497
|
-
const
|
|
1501
|
+
const R = (m == null ? void 0 : m.columnsMap[r || "null"]) || {
|
|
1498
1502
|
show: !0
|
|
1499
1503
|
};
|
|
1500
|
-
let
|
|
1501
|
-
|
|
1504
|
+
let P = !1;
|
|
1505
|
+
R.show !== !1 && (n == null ? void 0 : n.show) !== !1 && !y && (P = !0);
|
|
1502
1506
|
const K = {
|
|
1503
1507
|
key: w || "",
|
|
1504
|
-
...
|
|
1505
|
-
checked:
|
|
1508
|
+
...Ge(I, ["dataIndex"]),
|
|
1509
|
+
checked: P,
|
|
1506
1510
|
selectable: !1,
|
|
1507
|
-
disabled:
|
|
1508
|
-
disableCheckbox: typeof
|
|
1511
|
+
disabled: R.disable === !0,
|
|
1512
|
+
disableCheckbox: typeof R.disable == "boolean" ? R.disable : (L = R.disable) == null ? void 0 : L.checkbox,
|
|
1509
1513
|
isLeaf: !0
|
|
1510
1514
|
};
|
|
1511
|
-
return y && (K.children = v(y,
|
|
1515
|
+
return y && (K.children = v(y, R)), K;
|
|
1512
1516
|
});
|
|
1513
|
-
|
|
1517
|
+
ze(() => {
|
|
1514
1518
|
const u = v(e.list || []);
|
|
1515
|
-
i.value = u, o.value = u.filter((n) => n.checked).map((n) => n.key), (m == null ? void 0 : m.operationType.value) === "fixed" && (t.value =
|
|
1519
|
+
i.value = u, o.value = u.filter((n) => n.checked).map((n) => n.key), (m == null ? void 0 : m.operationType.value) === "fixed" && (t.value = tt().uuid(15));
|
|
1516
1520
|
});
|
|
1517
|
-
const S =
|
|
1518
|
-
var z,
|
|
1519
|
-
const y = ((z =
|
|
1521
|
+
const S = Me((u, n, r) => {
|
|
1522
|
+
var z, q;
|
|
1523
|
+
const y = ((z = C(s).find((M) => M.uuid === u)) == null ? void 0 : z.key) || "", w = ((q = C(s).find((M) => M.uuid === n)) == null ? void 0 : q.key) || "", I = {
|
|
1520
1524
|
...m == null ? void 0 : m.columnsMap
|
|
1521
|
-
},
|
|
1522
|
-
if (
|
|
1525
|
+
}, R = [...m.sortKeyColumns.value], P = R.findIndex((M) => M === y), K = R.findIndex((M) => M === w), L = r > P;
|
|
1526
|
+
if (P < 0)
|
|
1523
1527
|
return;
|
|
1524
|
-
const
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
...
|
|
1528
|
-
order:
|
|
1528
|
+
const Z = R[P];
|
|
1529
|
+
R.splice(P, 1), r === 0 ? R.unshift(Z) : R.splice(L ? K : K + 1, 0, Z), R.forEach((M, ee) => {
|
|
1530
|
+
I[M] = {
|
|
1531
|
+
...I[M] || {},
|
|
1532
|
+
order: ee
|
|
1529
1533
|
};
|
|
1530
|
-
}), m == null || m.setColumnsMap(
|
|
1531
|
-
}), f =
|
|
1532
|
-
var
|
|
1533
|
-
const n = u.node.key, r = ((
|
|
1534
|
+
}), m == null || m.setColumnsMap(I, "drop"), m == null || m.setSortKeyColumns(R);
|
|
1535
|
+
}), f = Me((u) => {
|
|
1536
|
+
var R;
|
|
1537
|
+
const n = u.node.key, r = ((R = C(s).find((P) => P.uuid === n)) == null ? void 0 : R.key) || "", w = {
|
|
1534
1538
|
...(m == null ? void 0 : m.columnsMap[r]) || {}
|
|
1535
1539
|
};
|
|
1536
1540
|
w.show = u.checked;
|
|
1537
|
-
const
|
|
1541
|
+
const I = {
|
|
1538
1542
|
...m == null ? void 0 : m.columnsMap,
|
|
1539
1543
|
[r]: w
|
|
1540
1544
|
};
|
|
1541
|
-
m == null || m.setColumnsMap(
|
|
1545
|
+
m == null || m.setColumnsMap(I, "show");
|
|
1542
1546
|
}), x = (u) => {
|
|
1543
|
-
const n =
|
|
1544
|
-
return u.title ||
|
|
1547
|
+
const n = C(s).find((r) => r.uuid === u.key);
|
|
1548
|
+
return u.title || ol(c, "headerCell", {
|
|
1545
1549
|
title: n.title,
|
|
1546
1550
|
column: n
|
|
1547
1551
|
}, () => [n.title]);
|
|
1548
1552
|
};
|
|
1549
1553
|
return () => {
|
|
1550
1554
|
var u, n;
|
|
1551
|
-
return a.value ? d(
|
|
1555
|
+
return a.value ? d(_e, null, [e.showTitle && d("span", {
|
|
1552
1556
|
class: [`${e.className}-list-title`, e.hashId]
|
|
1553
|
-
}, [e.title]), d(
|
|
1557
|
+
}, [e.title]), d(Bl, {
|
|
1554
1558
|
key: t.value,
|
|
1555
1559
|
draggable: e.draggable && !!((u = i.value) != null && u.length) && ((n = i.value) == null ? void 0 : n.length) > 1,
|
|
1556
1560
|
checkable: e.checkable,
|
|
@@ -1560,10 +1564,10 @@ const Ne = (e) => {
|
|
|
1560
1564
|
height: 280,
|
|
1561
1565
|
onDrop: (r) => {
|
|
1562
1566
|
const y = r.node.key, w = r.dragNode.key, {
|
|
1563
|
-
dropPosition:
|
|
1564
|
-
dropToGap:
|
|
1565
|
-
} = r,
|
|
1566
|
-
S(w, y,
|
|
1567
|
+
dropPosition: I,
|
|
1568
|
+
dropToGap: R
|
|
1569
|
+
} = r, P = I === -1 || !R ? I + 1 : I;
|
|
1570
|
+
S(w, y, P);
|
|
1567
1571
|
},
|
|
1568
1572
|
onCheck: (r, y) => f(y),
|
|
1569
1573
|
treeData: i.value
|
|
@@ -1576,7 +1580,7 @@ const Ne = (e) => {
|
|
|
1576
1580
|
title: x(r),
|
|
1577
1581
|
autoScroll: (w = m == null ? void 0 : m.autoScroll) == null ? void 0 : w.value
|
|
1578
1582
|
};
|
|
1579
|
-
return d(
|
|
1583
|
+
return d(ra, U({
|
|
1580
1584
|
hashId: e.hashId,
|
|
1581
1585
|
className: e.className
|
|
1582
1586
|
}, y, {
|
|
@@ -1586,7 +1590,7 @@ const Ne = (e) => {
|
|
|
1586
1590
|
})]) : null;
|
|
1587
1591
|
};
|
|
1588
1592
|
}
|
|
1589
|
-
}),
|
|
1593
|
+
}), ca = /* @__PURE__ */ de({
|
|
1590
1594
|
props: {
|
|
1591
1595
|
hashId: String,
|
|
1592
1596
|
className: String,
|
|
@@ -1596,7 +1600,7 @@ const Ne = (e) => {
|
|
|
1596
1600
|
setup(e) {
|
|
1597
1601
|
const {
|
|
1598
1602
|
columns: t
|
|
1599
|
-
} =
|
|
1603
|
+
} = be(), a = E([]), i = E([]), o = E([]), s = E([]);
|
|
1600
1604
|
_(() => t.value, (v) => {
|
|
1601
1605
|
a.value = [], i.value = [], o.value = [], v.forEach((S) => {
|
|
1602
1606
|
if (S.hideInSetting)
|
|
@@ -1619,14 +1623,14 @@ const Ne = (e) => {
|
|
|
1619
1623
|
}, {
|
|
1620
1624
|
immediate: !0
|
|
1621
1625
|
});
|
|
1622
|
-
const c =
|
|
1626
|
+
const c = p(() => a.value && a.value.length > 0), m = p(() => i.value && i.value.length > 0);
|
|
1623
1627
|
return () => d("div", {
|
|
1624
1628
|
class: {
|
|
1625
1629
|
[`${e.hashId}`]: !0,
|
|
1626
1630
|
[`${e.className}-list`]: !0,
|
|
1627
1631
|
[`${e.className}-list-group`]: c.value || m.value
|
|
1628
1632
|
}
|
|
1629
|
-
}, [d(
|
|
1633
|
+
}, [d(Qe, {
|
|
1630
1634
|
title: "固定在左侧",
|
|
1631
1635
|
list: i.value,
|
|
1632
1636
|
keys: s.value,
|
|
@@ -1634,7 +1638,7 @@ const Ne = (e) => {
|
|
|
1634
1638
|
draggable: e.draggable,
|
|
1635
1639
|
checkable: e.checkable,
|
|
1636
1640
|
className: e.className
|
|
1637
|
-
}, null), d(
|
|
1641
|
+
}, null), d(Qe, {
|
|
1638
1642
|
list: o.value,
|
|
1639
1643
|
keys: s.value,
|
|
1640
1644
|
hashId: e.hashId,
|
|
@@ -1643,7 +1647,7 @@ const Ne = (e) => {
|
|
|
1643
1647
|
title: "不固定",
|
|
1644
1648
|
showTitle: m.value || c.value,
|
|
1645
1649
|
className: e.className
|
|
1646
|
-
}, null), d(
|
|
1650
|
+
}, null), d(Qe, {
|
|
1647
1651
|
title: "固定在右侧",
|
|
1648
1652
|
list: a.value,
|
|
1649
1653
|
keys: s.value,
|
|
@@ -1653,7 +1657,7 @@ const Ne = (e) => {
|
|
|
1653
1657
|
className: e.className
|
|
1654
1658
|
}, null)]);
|
|
1655
1659
|
}
|
|
1656
|
-
}),
|
|
1660
|
+
}), da = /* @__PURE__ */ de({
|
|
1657
1661
|
props: {
|
|
1658
1662
|
draggable: {
|
|
1659
1663
|
type: Boolean,
|
|
@@ -1667,53 +1671,53 @@ const Ne = (e) => {
|
|
|
1667
1671
|
extra: [Function, Object, String, Boolean]
|
|
1668
1672
|
},
|
|
1669
1673
|
setup(e) {
|
|
1670
|
-
const t =
|
|
1674
|
+
const t = at({
|
|
1671
1675
|
suffixCls: "table-column-setting",
|
|
1672
1676
|
isPor: !0
|
|
1673
1677
|
}), {
|
|
1674
1678
|
wrapSSR: a,
|
|
1675
1679
|
hashId: i
|
|
1676
|
-
} =
|
|
1680
|
+
} = qe("ColumnSetting", [oa], t), {
|
|
1677
1681
|
columns: o,
|
|
1678
1682
|
settingsAction: s
|
|
1679
|
-
} =
|
|
1683
|
+
} = be(), c = Me((x = !0) => {
|
|
1680
1684
|
const u = {}, n = (r) => {
|
|
1681
1685
|
r.forEach(({
|
|
1682
1686
|
key: y,
|
|
1683
1687
|
fixed: w,
|
|
1684
|
-
index:
|
|
1685
|
-
children:
|
|
1688
|
+
index: I,
|
|
1689
|
+
children: R
|
|
1686
1690
|
}) => {
|
|
1687
|
-
const
|
|
1688
|
-
|
|
1691
|
+
const P = Tt(y, I);
|
|
1692
|
+
P && (u[P] = {
|
|
1689
1693
|
show: x,
|
|
1690
1694
|
fixed: w
|
|
1691
|
-
}),
|
|
1695
|
+
}), R && n(R);
|
|
1692
1696
|
});
|
|
1693
1697
|
};
|
|
1694
1698
|
n(o.value), s == null || s.setColumnsMap(u, "show");
|
|
1695
|
-
}), m =
|
|
1699
|
+
}), m = Me((x) => {
|
|
1696
1700
|
x.target.checked ? c() : c(!1);
|
|
1697
|
-
}), v =
|
|
1701
|
+
}), v = Me(() => {
|
|
1698
1702
|
s == null || s.setColumnsMap(s == null ? void 0 : s.cacheColumnsMap, "fixed");
|
|
1699
|
-
}), S =
|
|
1703
|
+
}), S = p(() => (
|
|
1700
1704
|
// @ts-ignore
|
|
1701
1705
|
Object.values(s == null ? void 0 : s.columnsMap).filter((x) => !x || x.show === !1)
|
|
1702
|
-
)), f =
|
|
1703
|
-
return () => a(d(
|
|
1706
|
+
)), f = p(() => C(S).length > 0 && C(S).length !== o.value.length);
|
|
1707
|
+
return () => a(d(Fl, {
|
|
1704
1708
|
arrowPointAtCenter: !0,
|
|
1705
1709
|
title: d("div", {
|
|
1706
1710
|
class: [`${t}-title`, i.value]
|
|
1707
|
-
}, [d(
|
|
1711
|
+
}, [d(Rl, {
|
|
1708
1712
|
indeterminate: f.value,
|
|
1709
|
-
checked:
|
|
1713
|
+
checked: C(S).length === 0 && C(S).length !== o.value.length,
|
|
1710
1714
|
onChange: (x) => m(x)
|
|
1711
1715
|
}, {
|
|
1712
|
-
default: () => [
|
|
1716
|
+
default: () => [Ne("列展示")]
|
|
1713
1717
|
}), e.checkedReset ? d("a", {
|
|
1714
1718
|
onClick: v,
|
|
1715
1719
|
class: [`${t}-action-rest-button`, i.value]
|
|
1716
|
-
}, [
|
|
1720
|
+
}, [Ne("重置")]) : null, e != null && e.extra ? d(ve, {
|
|
1717
1721
|
size: 12,
|
|
1718
1722
|
align: "center"
|
|
1719
1723
|
}, {
|
|
@@ -1722,42 +1726,42 @@ const Ne = (e) => {
|
|
|
1722
1726
|
overlayClassName: `${t}-overlay ${i.value}`,
|
|
1723
1727
|
trigger: "click",
|
|
1724
1728
|
placement: "bottomRight",
|
|
1725
|
-
content: d(
|
|
1729
|
+
content: d(ca, {
|
|
1726
1730
|
hashId: i.value,
|
|
1727
1731
|
checkable: e.checkable ?? !0,
|
|
1728
1732
|
draggable: e.draggable ?? !0,
|
|
1729
1733
|
className: t
|
|
1730
1734
|
}, null)
|
|
1731
1735
|
}, {
|
|
1732
|
-
default: () => [d(
|
|
1736
|
+
default: () => [d(ce, {
|
|
1733
1737
|
title: "列设置"
|
|
1734
1738
|
}, {
|
|
1735
|
-
default: () => [d(
|
|
1739
|
+
default: () => [d(Rt, null, null)]
|
|
1736
1740
|
})]
|
|
1737
1741
|
}));
|
|
1738
1742
|
}
|
|
1739
|
-
}),
|
|
1743
|
+
}), Pt = /* @__PURE__ */ de({
|
|
1740
1744
|
setup() {
|
|
1741
1745
|
const {
|
|
1742
1746
|
isFullscreen: e
|
|
1743
|
-
} =
|
|
1744
|
-
return () => e.value ? d(
|
|
1747
|
+
} = Bt();
|
|
1748
|
+
return () => e.value ? d(ce, {
|
|
1745
1749
|
title: "退出全屏"
|
|
1746
1750
|
}, {
|
|
1747
|
-
default: () => [d(
|
|
1748
|
-
}) : d(
|
|
1751
|
+
default: () => [d(gl, null, null)]
|
|
1752
|
+
}) : d(ce, {
|
|
1749
1753
|
title: "全屏"
|
|
1750
1754
|
}, {
|
|
1751
|
-
default: () => [d(
|
|
1755
|
+
default: () => [d(yl, null, null)]
|
|
1752
1756
|
});
|
|
1753
1757
|
}
|
|
1754
|
-
}),
|
|
1758
|
+
}), fa = () => {
|
|
1755
1759
|
const {
|
|
1756
1760
|
action: e,
|
|
1757
1761
|
tableSize: t
|
|
1758
|
-
} =
|
|
1759
|
-
return d(
|
|
1760
|
-
overlay: d(
|
|
1762
|
+
} = be();
|
|
1763
|
+
return d(Il, {
|
|
1764
|
+
overlay: d(Le, {
|
|
1761
1765
|
selectedKeys: [t.value],
|
|
1762
1766
|
onClick: ({
|
|
1763
1767
|
key: a
|
|
@@ -1769,29 +1773,29 @@ const Ne = (e) => {
|
|
|
1769
1773
|
width: 80
|
|
1770
1774
|
}
|
|
1771
1775
|
}, {
|
|
1772
|
-
default: () => [d(
|
|
1776
|
+
default: () => [d(Le.Item, {
|
|
1773
1777
|
key: "large"
|
|
1774
1778
|
}, {
|
|
1775
|
-
default: () => [
|
|
1776
|
-
}), d(
|
|
1779
|
+
default: () => [Ne("默认")]
|
|
1780
|
+
}), d(Le.Item, {
|
|
1777
1781
|
key: "middle"
|
|
1778
1782
|
}, {
|
|
1779
|
-
default: () => [
|
|
1780
|
-
}), d(
|
|
1783
|
+
default: () => [Ne("中等")]
|
|
1784
|
+
}), d(Le.Item, {
|
|
1781
1785
|
key: "small"
|
|
1782
1786
|
}, {
|
|
1783
|
-
default: () => [
|
|
1787
|
+
default: () => [Ne("紧凑")]
|
|
1784
1788
|
})]
|
|
1785
1789
|
}),
|
|
1786
1790
|
trigger: ["click"]
|
|
1787
1791
|
}, {
|
|
1788
|
-
default: () => [d(
|
|
1792
|
+
default: () => [d(ce, {
|
|
1789
1793
|
title: "表格密度"
|
|
1790
1794
|
}, {
|
|
1791
|
-
default: () => [d(
|
|
1795
|
+
default: () => [d(bl, null, null)]
|
|
1792
1796
|
})]
|
|
1793
1797
|
});
|
|
1794
|
-
},
|
|
1798
|
+
}, ha = (e) => ({
|
|
1795
1799
|
[`${e.componentCls}`]: {
|
|
1796
1800
|
lineHeight: 1,
|
|
1797
1801
|
"&-container": {
|
|
@@ -1833,14 +1837,14 @@ const Ne = (e) => {
|
|
|
1833
1837
|
}
|
|
1834
1838
|
}
|
|
1835
1839
|
});
|
|
1836
|
-
function
|
|
1837
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1840
|
+
function St(e) {
|
|
1841
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ye(e);
|
|
1838
1842
|
}
|
|
1839
1843
|
const {
|
|
1840
|
-
useBreakpoint:
|
|
1841
|
-
} =
|
|
1842
|
-
function
|
|
1843
|
-
if (
|
|
1844
|
+
useBreakpoint: ma
|
|
1845
|
+
} = ut;
|
|
1846
|
+
function va(e) {
|
|
1847
|
+
if (ye(e))
|
|
1844
1848
|
return e;
|
|
1845
1849
|
if (e) {
|
|
1846
1850
|
const t = e, {
|
|
@@ -1849,7 +1853,7 @@ function ha(e) {
|
|
|
1849
1853
|
onClick: o,
|
|
1850
1854
|
key: s
|
|
1851
1855
|
} = t;
|
|
1852
|
-
return a && i ? d(
|
|
1856
|
+
return a && i ? d(ce, {
|
|
1853
1857
|
title: i
|
|
1854
1858
|
}, {
|
|
1855
1859
|
default: () => [d("span", {
|
|
@@ -1862,34 +1866,34 @@ function ha(e) {
|
|
|
1862
1866
|
}
|
|
1863
1867
|
return null;
|
|
1864
1868
|
}
|
|
1865
|
-
const
|
|
1869
|
+
const Et = /* @__PURE__ */ de({
|
|
1866
1870
|
props: {
|
|
1867
|
-
actions:
|
|
1871
|
+
actions: we.toolBarBtn,
|
|
1868
1872
|
settings: [Array],
|
|
1869
|
-
titleTip:
|
|
1873
|
+
titleTip: we.titleTip,
|
|
1870
1874
|
prefixCls: String,
|
|
1871
|
-
headerTitle:
|
|
1872
|
-
titleTipText:
|
|
1873
|
-
optionsExtra:
|
|
1875
|
+
headerTitle: we.headerTitle,
|
|
1876
|
+
titleTipText: we.titleTipText,
|
|
1877
|
+
optionsExtra: we.optionsExtra
|
|
1874
1878
|
},
|
|
1875
1879
|
setup(e) {
|
|
1876
1880
|
const {
|
|
1877
1881
|
wrapSSR: t,
|
|
1878
1882
|
hashId: a
|
|
1879
|
-
} =
|
|
1883
|
+
} = qe("ListToolBar", [ha], e.prefixCls), i = ma(), {
|
|
1880
1884
|
isMobile: o
|
|
1881
|
-
} =
|
|
1885
|
+
} = be(), s = p(() => {
|
|
1882
1886
|
var u;
|
|
1883
1887
|
return !!(e.titleTip || e.headerTitle || (u = e.actions) != null && u.length);
|
|
1884
|
-
}), c =
|
|
1888
|
+
}), c = p(() => {
|
|
1885
1889
|
var u;
|
|
1886
1890
|
return !!((u = e.settings) != null && u.length || e.optionsExtra);
|
|
1887
|
-
}), m =
|
|
1891
|
+
}), m = p(() => !!(e.titleTip || e.headerTitle)), v = p(() => {
|
|
1888
1892
|
var n;
|
|
1889
1893
|
let u;
|
|
1890
|
-
return Array.isArray(e.actions) ? ((n = e.actions) == null ? void 0 : n.length) < 1 ? null : d(
|
|
1894
|
+
return Array.isArray(e.actions) ? ((n = e.actions) == null ? void 0 : n.length) < 1 ? null : d(ve, {
|
|
1891
1895
|
align: "center"
|
|
1892
|
-
},
|
|
1896
|
+
}, St(u = e.actions.map((r, y) => ye(r) ? nt(r, {
|
|
1893
1897
|
key: y,
|
|
1894
1898
|
...r == null ? void 0 : r.props
|
|
1895
1899
|
}) : d("template", {
|
|
@@ -1897,29 +1901,29 @@ const kt = /* @__PURE__ */ fe({
|
|
|
1897
1901
|
}, [r]))) ? u : {
|
|
1898
1902
|
default: () => [u]
|
|
1899
1903
|
}) : e.actions;
|
|
1900
|
-
}), S =
|
|
1904
|
+
}), S = He(() => !s.value && c.value ? d("div", {
|
|
1901
1905
|
class: `${e.prefixCls}-left ${a.value}`
|
|
1902
|
-
}, null) : m.value ? d(
|
|
1906
|
+
}, null) : m.value ? d(ve, {
|
|
1903
1907
|
class: `${e.prefixCls}-left ${a.value}`
|
|
1904
1908
|
}, {
|
|
1905
1909
|
default: () => [d("div", {
|
|
1906
1910
|
class: `${e.prefixCls}-title ${a.value}`
|
|
1907
|
-
}, [e.headerTitle, e.titleTip && d(
|
|
1911
|
+
}, [e.headerTitle, e.titleTip && d(ce, {
|
|
1908
1912
|
title: e.titleTipText
|
|
1909
1913
|
}, {
|
|
1910
|
-
default: () => [
|
|
1914
|
+
default: () => [ue(e.titleTip) && e.titleTip ? d(Cl, null, null) : e.titleTip]
|
|
1911
1915
|
})]), v.value && d("div", {
|
|
1912
1916
|
class: `${e.prefixCls}-actions ${a.value}`
|
|
1913
1917
|
}, [v.value])]
|
|
1914
|
-
}) : d(
|
|
1918
|
+
}) : d(ve, {
|
|
1915
1919
|
class: `${e.prefixCls}-left ${a.value}`
|
|
1916
1920
|
}, {
|
|
1917
1921
|
default: () => [v.value && d("div", {
|
|
1918
1922
|
class: `${e.prefixCls}-actions`
|
|
1919
1923
|
}, [v.value])]
|
|
1920
|
-
}), [() => s.value, () => c.value, () => m.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), f =
|
|
1924
|
+
}), [() => s.value, () => c.value, () => m.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), f = He(() => {
|
|
1921
1925
|
let u;
|
|
1922
|
-
return c.value ? d(
|
|
1926
|
+
return c.value ? d(ve, {
|
|
1923
1927
|
size: 16,
|
|
1924
1928
|
class: `${e.prefixCls}-right ${a.value}`,
|
|
1925
1929
|
align: i.value.lg ? "center" : "end",
|
|
@@ -1927,12 +1931,12 @@ const kt = /* @__PURE__ */ fe({
|
|
|
1927
1931
|
}, {
|
|
1928
1932
|
default: () => {
|
|
1929
1933
|
var n;
|
|
1930
|
-
return [e.optionsExtra, (n = e.settings) != null && n.length ? d(
|
|
1934
|
+
return [e.optionsExtra, (n = e.settings) != null && n.length ? d(ve, {
|
|
1931
1935
|
size: 12,
|
|
1932
1936
|
align: "center",
|
|
1933
1937
|
class: `${e.prefixCls}-setting-items`
|
|
1934
|
-
},
|
|
1935
|
-
const w =
|
|
1938
|
+
}, St(u = e.settings.map((r, y) => {
|
|
1939
|
+
const w = va(r);
|
|
1936
1940
|
return d("div", {
|
|
1937
1941
|
key: y,
|
|
1938
1942
|
class: `${e.prefixCls}-setting-item`
|
|
@@ -1942,7 +1946,7 @@ const kt = /* @__PURE__ */ fe({
|
|
|
1942
1946
|
}) : null];
|
|
1943
1947
|
}
|
|
1944
1948
|
}) : null;
|
|
1945
|
-
}, [() => i.value, () => c.value, () => e.prefixCls, () => m.value, () => v.value, () => e.settings]), x =
|
|
1949
|
+
}, [() => i.value, () => c.value, () => e.prefixCls, () => m.value, () => v.value, () => e.settings]), x = He(() => {
|
|
1946
1950
|
if (!c.value && !s.value) return null;
|
|
1947
1951
|
const u = {
|
|
1948
1952
|
[`${a.value}`]: !0,
|
|
@@ -1958,28 +1962,28 @@ const kt = /* @__PURE__ */ fe({
|
|
|
1958
1962
|
}, [x.value]));
|
|
1959
1963
|
}
|
|
1960
1964
|
});
|
|
1961
|
-
|
|
1962
|
-
function
|
|
1965
|
+
Et.inheritAttrs = !1;
|
|
1966
|
+
function ga() {
|
|
1963
1967
|
return {
|
|
1964
1968
|
reload: {
|
|
1965
1969
|
text: "刷新",
|
|
1966
|
-
icon: d(
|
|
1970
|
+
icon: d(xl, null, null)
|
|
1967
1971
|
},
|
|
1968
1972
|
density: {
|
|
1969
1973
|
text: "表格密度",
|
|
1970
|
-
icon: d(
|
|
1974
|
+
icon: d(fa, null, null)
|
|
1971
1975
|
},
|
|
1972
1976
|
setting: {
|
|
1973
1977
|
text: "列设置",
|
|
1974
|
-
icon: d(
|
|
1978
|
+
icon: d(Rt, null, null)
|
|
1975
1979
|
},
|
|
1976
1980
|
fullScreen: {
|
|
1977
1981
|
text: "全屏",
|
|
1978
|
-
icon: d(
|
|
1982
|
+
icon: d(Pt, null, null)
|
|
1979
1983
|
}
|
|
1980
1984
|
};
|
|
1981
1985
|
}
|
|
1982
|
-
function
|
|
1986
|
+
function ya(e, t) {
|
|
1983
1987
|
return Object.keys(e).filter((a) => a).map((a) => {
|
|
1984
1988
|
const i = e[a];
|
|
1985
1989
|
if (!i)
|
|
@@ -1987,26 +1991,26 @@ function va(e, t) {
|
|
|
1987
1991
|
let o = i === !0 ? t[a] : () => i == null ? void 0 : i();
|
|
1988
1992
|
if (typeof o != "function" && (o = () => {
|
|
1989
1993
|
}), a === "setting")
|
|
1990
|
-
return d(
|
|
1994
|
+
return d(da, U(e[a], {
|
|
1991
1995
|
key: a
|
|
1992
1996
|
}), null);
|
|
1993
1997
|
if (a === "fullScreen")
|
|
1994
1998
|
return d("span", {
|
|
1995
1999
|
key: a,
|
|
1996
2000
|
onClick: o
|
|
1997
|
-
}, [d(
|
|
1998
|
-
const s =
|
|
2001
|
+
}, [d(Pt, null, null)]);
|
|
2002
|
+
const s = ga()[a];
|
|
1999
2003
|
return s ? d("span", {
|
|
2000
2004
|
key: a,
|
|
2001
2005
|
onClick: o
|
|
2002
|
-
}, [d(
|
|
2006
|
+
}, [d(ce, {
|
|
2003
2007
|
title: s.text
|
|
2004
2008
|
}, {
|
|
2005
2009
|
default: () => [s.icon]
|
|
2006
2010
|
})]) : null;
|
|
2007
2011
|
}).filter((a) => a);
|
|
2008
2012
|
}
|
|
2009
|
-
const
|
|
2013
|
+
const ba = {
|
|
2010
2014
|
options: [Boolean, Object, Array],
|
|
2011
2015
|
titleTip: [Function, Boolean, Object, String],
|
|
2012
2016
|
settingExtra: [Function, Boolean, Object, Array],
|
|
@@ -2014,16 +2018,16 @@ const ga = {
|
|
|
2014
2018
|
titleTipText: [String],
|
|
2015
2019
|
toolBarBtn: [Function, Boolean, Object, Array],
|
|
2016
2020
|
headerTitle: [Function, Boolean, Object, Array, String]
|
|
2017
|
-
},
|
|
2018
|
-
props:
|
|
2021
|
+
}, Ca = /* @__PURE__ */ de({
|
|
2022
|
+
props: ba,
|
|
2019
2023
|
inheritAttrs: !1,
|
|
2020
2024
|
setup(e) {
|
|
2021
|
-
const t =
|
|
2025
|
+
const t = at({
|
|
2022
2026
|
suffixCls: "table-list-toolbar",
|
|
2023
2027
|
isPor: !0
|
|
2024
2028
|
}), {
|
|
2025
2029
|
action: a
|
|
2026
|
-
} =
|
|
2030
|
+
} = be(), i = He(() => {
|
|
2027
2031
|
var c;
|
|
2028
2032
|
const o = {
|
|
2029
2033
|
reload: () => a == null ? void 0 : a.reload(),
|
|
@@ -2036,24 +2040,24 @@ const ga = {
|
|
|
2036
2040
|
...o,
|
|
2037
2041
|
...e.options
|
|
2038
2042
|
};
|
|
2039
|
-
return s.setting !== !1 && e.settingExtra && (s.setting = {}, s.setting.extra = e.settingExtra),
|
|
2043
|
+
return s.setting !== !1 && e.settingExtra && (s.setting = {}, s.setting.extra = e.settingExtra), ya(s, {
|
|
2040
2044
|
...o
|
|
2041
2045
|
});
|
|
2042
2046
|
}, [() => a, () => e.options]);
|
|
2043
2047
|
return () => {
|
|
2044
2048
|
const o = e.toolBarBtn || [];
|
|
2045
|
-
return d(
|
|
2049
|
+
return d(Et, {
|
|
2046
2050
|
prefixCls: t,
|
|
2047
2051
|
optionsExtra: e.optionsExtra,
|
|
2048
2052
|
headerTitle: e.headerTitle,
|
|
2049
2053
|
actions: o,
|
|
2050
|
-
settings:
|
|
2054
|
+
settings: C(i),
|
|
2051
2055
|
titleTip: e.titleTip,
|
|
2052
2056
|
titleTipText: e.titleTipText
|
|
2053
2057
|
}, null);
|
|
2054
2058
|
};
|
|
2055
2059
|
}
|
|
2056
|
-
}),
|
|
2060
|
+
}), Ze = {
|
|
2057
2061
|
"&::-webkit-scrollbar": {
|
|
2058
2062
|
width: 4,
|
|
2059
2063
|
height: 4
|
|
@@ -2066,7 +2070,7 @@ const ga = {
|
|
|
2066
2070
|
backgroundColor: "transparent",
|
|
2067
2071
|
borderRadius: 2
|
|
2068
2072
|
}
|
|
2069
|
-
},
|
|
2073
|
+
}, xa = (e) => {
|
|
2070
2074
|
const t = `${e.antCls}-table`;
|
|
2071
2075
|
return {
|
|
2072
2076
|
[e.componentCls]: {
|
|
@@ -2077,6 +2081,14 @@ const ga = {
|
|
|
2077
2081
|
color: e.colorPrimaryHover
|
|
2078
2082
|
}
|
|
2079
2083
|
},
|
|
2084
|
+
"&-hidden": {
|
|
2085
|
+
position: "fixed",
|
|
2086
|
+
top: 0,
|
|
2087
|
+
left: 0,
|
|
2088
|
+
zIndex: -1,
|
|
2089
|
+
opacity: 0,
|
|
2090
|
+
visibility: "hidden"
|
|
2091
|
+
},
|
|
2080
2092
|
[`${t}`]: {
|
|
2081
2093
|
[`${t}-cell-ellipsis`]: {
|
|
2082
2094
|
overflow: "unset",
|
|
@@ -2165,11 +2177,12 @@ const ga = {
|
|
|
2165
2177
|
cursor: "pointer"
|
|
2166
2178
|
}
|
|
2167
2179
|
},
|
|
2168
|
-
[`${e.componentCls}-ellipsis
|
|
2180
|
+
[`${e.componentCls}-ellipsis`]: {
|
|
2169
2181
|
overflow: "hidden",
|
|
2170
2182
|
textOverflow: "ellipsis",
|
|
2171
|
-
|
|
2172
|
-
|
|
2183
|
+
display: "-webkit-box",
|
|
2184
|
+
"-webkit-box-orient": "vertical",
|
|
2185
|
+
"word-break": "break-word"
|
|
2173
2186
|
},
|
|
2174
2187
|
[`${e.componentCls}-action-size`]: {
|
|
2175
2188
|
display: "inline-block"
|
|
@@ -2249,24 +2262,28 @@ const ga = {
|
|
|
2249
2262
|
color: e.colorWhite
|
|
2250
2263
|
}
|
|
2251
2264
|
},
|
|
2252
|
-
[`${e.antCls}-table-content`]:
|
|
2253
|
-
[`${e.antCls}-table-body`]:
|
|
2265
|
+
[`${e.antCls}-table-content`]: Ze,
|
|
2266
|
+
[`${e.antCls}-table-body`]: Ze,
|
|
2254
2267
|
[`${e.antCls}-table-empty`]: {
|
|
2255
|
-
[`${e.antCls}-table-content`]:
|
|
2268
|
+
[`${e.antCls}-table-content`]: Ze
|
|
2256
2269
|
}
|
|
2257
2270
|
}
|
|
2258
2271
|
};
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
|
-
|
|
2272
|
+
};
|
|
2273
|
+
function Sa(e) {
|
|
2274
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ye(e);
|
|
2275
|
+
}
|
|
2276
|
+
const {
|
|
2277
|
+
useBreakpoint: wa
|
|
2278
|
+
} = ut, Ta = {
|
|
2262
2279
|
reload: !0,
|
|
2263
2280
|
density: !0,
|
|
2264
2281
|
setting: !0,
|
|
2265
2282
|
fullScreen: !0
|
|
2266
|
-
},
|
|
2283
|
+
}, et = /* @__PURE__ */ de({
|
|
2267
2284
|
name: "GProTable",
|
|
2268
2285
|
inheritAttrs: !1,
|
|
2269
|
-
props:
|
|
2286
|
+
props: we,
|
|
2270
2287
|
emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "beforeSearchSubmit", "columnsStateChange", "loadingChange"],
|
|
2271
2288
|
slots: Object,
|
|
2272
2289
|
setup(e, {
|
|
@@ -2275,414 +2292,419 @@ const ga = {
|
|
|
2275
2292
|
attrs: i,
|
|
2276
2293
|
expose: o
|
|
2277
2294
|
}) {
|
|
2278
|
-
const s =
|
|
2295
|
+
const s = at({
|
|
2279
2296
|
suffixCls: "table",
|
|
2280
2297
|
isPor: !0
|
|
2281
2298
|
}), {
|
|
2282
2299
|
wrapSSR: c,
|
|
2283
2300
|
hashId: m
|
|
2284
|
-
} =
|
|
2301
|
+
} = qe("ProBaseTable", [xa], s), v = wa(), {
|
|
2285
2302
|
width: S
|
|
2286
|
-
} =
|
|
2287
|
-
|
|
2303
|
+
} = wl(), f = Ot(), x = E(), u = E(), n = E(e.waitRequest);
|
|
2304
|
+
ze(() => n.value = e.waitRequest);
|
|
2288
2305
|
const {
|
|
2289
2306
|
toggle: r,
|
|
2290
2307
|
isFullscreen: y
|
|
2291
|
-
} =
|
|
2308
|
+
} = Bt(x), w = p(() => ({
|
|
2292
2309
|
...e
|
|
2293
|
-
})),
|
|
2294
|
-
var h,
|
|
2295
|
-
return e.virtualScroll &&
|
|
2296
|
-
}),
|
|
2297
|
-
const h = (e.columns || []).filter((
|
|
2298
|
-
|
|
2299
|
-
key:
|
|
2300
|
-
align:
|
|
2301
|
-
uuid:
|
|
2310
|
+
})), I = p(() => !v.value.xl), R = p(() => {
|
|
2311
|
+
var h, F;
|
|
2312
|
+
return e.virtualScroll && rl(!((h = e.scroll) != null && h.y), "参数scroll的Y值不能为空!"), !!((F = e.scroll) != null && F.y && e.virtualScroll);
|
|
2313
|
+
}), P = p(() => {
|
|
2314
|
+
const h = (e.columns || []).filter((F) => F.key || F.dataIndex).map((F) => ({
|
|
2315
|
+
...F,
|
|
2316
|
+
key: F.key || F.dataIndex,
|
|
2317
|
+
align: F.align || e.align,
|
|
2318
|
+
uuid: tt().uuid(15)
|
|
2302
2319
|
}));
|
|
2303
|
-
return
|
|
2320
|
+
return el(h, {
|
|
2304
2321
|
align: e.align || "left",
|
|
2305
2322
|
showIndex: e.showIndex || !1
|
|
2306
2323
|
});
|
|
2307
2324
|
}), {
|
|
2308
2325
|
loadingComputed: K,
|
|
2309
2326
|
loading: L,
|
|
2310
|
-
setLoading:
|
|
2311
|
-
} =
|
|
2327
|
+
setLoading: Z
|
|
2328
|
+
} = Ll({
|
|
2312
2329
|
emit: t,
|
|
2313
|
-
loading:
|
|
2330
|
+
loading: ae(e, "loading")
|
|
2314
2331
|
}), {
|
|
2315
2332
|
sizeRef: z,
|
|
2316
|
-
setTableSize:
|
|
2317
|
-
} =
|
|
2333
|
+
setTableSize: q
|
|
2334
|
+
} = Vl({
|
|
2318
2335
|
emit: t,
|
|
2319
|
-
size:
|
|
2336
|
+
size: ae(e, "size")
|
|
2320
2337
|
}), {
|
|
2321
2338
|
paginationInfo: M,
|
|
2322
|
-
requestPagination:
|
|
2323
|
-
setPagination:
|
|
2324
|
-
} =
|
|
2339
|
+
requestPagination: ee,
|
|
2340
|
+
setPagination: W
|
|
2341
|
+
} = Wl({
|
|
2325
2342
|
slots: a,
|
|
2326
2343
|
props: w,
|
|
2327
|
-
pagination:
|
|
2328
|
-
}),
|
|
2344
|
+
pagination: ae(e, "pagination")
|
|
2345
|
+
}), Te = ea(e), {
|
|
2329
2346
|
proScroll: l,
|
|
2330
|
-
breakpoint:
|
|
2331
|
-
} =
|
|
2332
|
-
...
|
|
2347
|
+
breakpoint: b
|
|
2348
|
+
} = ta({
|
|
2349
|
+
...Te,
|
|
2333
2350
|
innerWidth: S,
|
|
2334
|
-
columns:
|
|
2351
|
+
columns: P,
|
|
2335
2352
|
screens: v
|
|
2336
|
-
}),
|
|
2337
|
-
proColumns:
|
|
2353
|
+
}), j = Ql(e), {
|
|
2354
|
+
proColumns: $,
|
|
2338
2355
|
cacheProColumns: N,
|
|
2339
|
-
setColumns:
|
|
2340
|
-
changeColumns:
|
|
2356
|
+
setColumns: te,
|
|
2357
|
+
changeColumns: O,
|
|
2341
2358
|
resizeColumnWidth: g
|
|
2342
|
-
} =
|
|
2343
|
-
...
|
|
2344
|
-
breakpoint:
|
|
2359
|
+
} = Zl({
|
|
2360
|
+
...j,
|
|
2361
|
+
breakpoint: b,
|
|
2345
2362
|
scroll: l,
|
|
2346
|
-
columns:
|
|
2363
|
+
columns: P
|
|
2347
2364
|
}), {
|
|
2348
2365
|
columnsMap: Y,
|
|
2349
2366
|
operationType: V,
|
|
2350
|
-
setColumnsMap:
|
|
2351
|
-
sortKeyColumns:
|
|
2352
|
-
cacheColumnsMap:
|
|
2353
|
-
setSortKeyColumns:
|
|
2354
|
-
} =
|
|
2367
|
+
setColumnsMap: Be,
|
|
2368
|
+
sortKeyColumns: Ue,
|
|
2369
|
+
cacheColumnsMap: Ae,
|
|
2370
|
+
setSortKeyColumns: fe
|
|
2371
|
+
} = Jl({
|
|
2355
2372
|
columns: N,
|
|
2356
|
-
columnsState:
|
|
2357
|
-
changeColumns:
|
|
2373
|
+
columnsState: ae(e, "columnsState"),
|
|
2374
|
+
changeColumns: O
|
|
2358
2375
|
}), {
|
|
2359
|
-
formDataRef:
|
|
2360
|
-
formParamsRef:
|
|
2376
|
+
formDataRef: Ie,
|
|
2377
|
+
formParamsRef: pe,
|
|
2361
2378
|
defaultParamsRef: J,
|
|
2362
|
-
setFormParams:
|
|
2363
|
-
} =
|
|
2364
|
-
searchMap:
|
|
2365
|
-
params:
|
|
2366
|
-
columns:
|
|
2367
|
-
setPagination:
|
|
2379
|
+
setFormParams: ie
|
|
2380
|
+
} = Xl({
|
|
2381
|
+
searchMap: ae(e, "searchMap"),
|
|
2382
|
+
params: ae(e, "params"),
|
|
2383
|
+
columns: P,
|
|
2384
|
+
setPagination: W
|
|
2368
2385
|
}), {
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
changeRowKey:
|
|
2372
|
-
selectRowKey:
|
|
2373
|
-
selectAllRowKey:
|
|
2374
|
-
syncSelectedRows:
|
|
2375
|
-
removeRowKeys:
|
|
2376
|
-
clearAllRowKeys:
|
|
2377
|
-
} =
|
|
2378
|
-
reload:
|
|
2379
|
-
reSetDataList:
|
|
2380
|
-
changeDataValue:
|
|
2381
|
-
isTreeDataRef:
|
|
2382
|
-
dataSource:
|
|
2383
|
-
handleTableChange:
|
|
2384
|
-
} =
|
|
2385
|
-
...
|
|
2386
|
+
selectedKeys: A,
|
|
2387
|
+
selectedItems: Ce,
|
|
2388
|
+
changeRowKey: X,
|
|
2389
|
+
selectRowKey: it,
|
|
2390
|
+
selectAllRowKey: st,
|
|
2391
|
+
syncSelectedRows: ot,
|
|
2392
|
+
removeRowKeys: rt,
|
|
2393
|
+
clearAllRowKeys: Nt
|
|
2394
|
+
} = Yl(ae(e, "rowKey"), ae(e, "rowSelection")), Dt = Gl(e), {
|
|
2395
|
+
reload: Xe,
|
|
2396
|
+
reSetDataList: Mt,
|
|
2397
|
+
changeDataValue: zt,
|
|
2398
|
+
isTreeDataRef: At,
|
|
2399
|
+
dataSource: Oe,
|
|
2400
|
+
handleTableChange: ct
|
|
2401
|
+
} = ql({
|
|
2402
|
+
...Dt,
|
|
2386
2403
|
waitRequest: n
|
|
2387
2404
|
}, {
|
|
2388
2405
|
loading: K,
|
|
2389
2406
|
paginationInfo: M,
|
|
2390
|
-
setPagination:
|
|
2391
|
-
removeRowKeys:
|
|
2392
|
-
syncSelectedRows:
|
|
2393
|
-
setLoading:
|
|
2394
|
-
setColumns:
|
|
2395
|
-
search:
|
|
2396
|
-
columns:
|
|
2397
|
-
formParamsRef:
|
|
2407
|
+
setPagination: W,
|
|
2408
|
+
removeRowKeys: rt,
|
|
2409
|
+
syncSelectedRows: ot,
|
|
2410
|
+
setLoading: Z,
|
|
2411
|
+
setColumns: te,
|
|
2412
|
+
search: ae(e, "search"),
|
|
2413
|
+
columns: $,
|
|
2414
|
+
formParamsRef: pe,
|
|
2398
2415
|
onBeforeSearchSubmit: e.onBeforeSearchSubmit,
|
|
2399
|
-
hasCustomRender:
|
|
2400
|
-
}, t),
|
|
2401
|
-
...
|
|
2402
|
-
...
|
|
2403
|
-
} : !1),
|
|
2404
|
-
size:
|
|
2405
|
-
scroll:
|
|
2406
|
-
dataSource:
|
|
2407
|
-
pagination:
|
|
2408
|
-
virtualScroll:
|
|
2409
|
-
columns:
|
|
2410
|
-
})),
|
|
2411
|
-
var
|
|
2412
|
-
const h =
|
|
2413
|
-
return !h.indicator && ((
|
|
2414
|
-
spinning: e.showLoading ?
|
|
2416
|
+
hasCustomRender: p(() => Re(e.customRender || (a == null ? void 0 : a.customRender)))
|
|
2417
|
+
}, t), ke = p(() => e.options ? {
|
|
2418
|
+
...Ta,
|
|
2419
|
+
...G(e.options) ? e.options : {}
|
|
2420
|
+
} : !1), Kt = p(() => ({
|
|
2421
|
+
size: C(z),
|
|
2422
|
+
scroll: C(l),
|
|
2423
|
+
dataSource: C(Oe),
|
|
2424
|
+
pagination: C(M),
|
|
2425
|
+
virtualScroll: R.value,
|
|
2426
|
+
columns: C($).filter((h) => h.show || h.show === void 0)
|
|
2427
|
+
})), dt = p(() => {
|
|
2428
|
+
var F, B;
|
|
2429
|
+
const h = G(e.loading) ? Ge(e.loading, "spinning") : {};
|
|
2430
|
+
return !h.indicator && ((F = f == null ? void 0 : f.indicator) != null && F.value) && (h.indicator = (B = f == null ? void 0 : f.indicator) == null ? void 0 : B.value), {
|
|
2431
|
+
spinning: e.showLoading ? Re(L.value) : !1,
|
|
2415
2432
|
...h
|
|
2416
2433
|
};
|
|
2417
|
-
}),
|
|
2418
|
-
var
|
|
2434
|
+
}), ft = p(() => {
|
|
2435
|
+
var D;
|
|
2419
2436
|
let h;
|
|
2420
|
-
const
|
|
2421
|
-
if (
|
|
2422
|
-
const
|
|
2423
|
-
!
|
|
2437
|
+
const F = C(w).direction === "rtl" ? "bottomLeft" : "right", B = (D = C(M)) == null ? void 0 : D.position;
|
|
2438
|
+
if (B !== null && Array.isArray(B)) {
|
|
2439
|
+
const k = B.find((T) => T.includes("top")), H = B.find((T) => T.includes("bottom")), le = B.every((T) => `${T}` == "none");
|
|
2440
|
+
!k && !H && !le && (h = F), k && (h = k.toLowerCase().replace("top", "")), H && (h = H.toLowerCase().replace("bottom", ""));
|
|
2424
2441
|
} else
|
|
2425
|
-
h =
|
|
2442
|
+
h = F;
|
|
2426
2443
|
return h;
|
|
2427
|
-
}),
|
|
2428
|
-
var
|
|
2429
|
-
|
|
2444
|
+
}), ht = async (h) => {
|
|
2445
|
+
var F;
|
|
2446
|
+
G(e.search) && ((F = e.search) == null ? void 0 : F.type) === "button" ? (ie({
|
|
2430
2447
|
...e.params || {},
|
|
2431
2448
|
...h
|
|
2432
|
-
}), await
|
|
2433
|
-
},
|
|
2434
|
-
|
|
2435
|
-
},
|
|
2436
|
-
|
|
2437
|
-
},
|
|
2438
|
-
var
|
|
2439
|
-
|
|
2449
|
+
}), await Xe()) : ie(h);
|
|
2450
|
+
}, Lt = async (h, F) => {
|
|
2451
|
+
F ? (t("reset", h), e.request && await ht(h)) : e.request ? (t("submit", h), await ht(h)) : t("submit", h);
|
|
2452
|
+
}, mt = (h, F, B, D) => {
|
|
2453
|
+
W(gt(h, ["current", "pageSize"])), ct(h, F, B, D);
|
|
2454
|
+
}, Vt = (h, F) => {
|
|
2455
|
+
var B;
|
|
2456
|
+
W({
|
|
2440
2457
|
current: h,
|
|
2441
|
-
pageSize:
|
|
2442
|
-
}),
|
|
2458
|
+
pageSize: F
|
|
2459
|
+
}), ct({
|
|
2443
2460
|
current: h,
|
|
2444
|
-
pageSize:
|
|
2445
|
-
total: M.value && ((
|
|
2461
|
+
pageSize: F,
|
|
2462
|
+
total: M.value && ((B = M.value) == null ? void 0 : B.total) || 0
|
|
2446
2463
|
}, {}, {});
|
|
2447
|
-
},
|
|
2464
|
+
}, Wt = (h) => {
|
|
2448
2465
|
t("expandedRowsChange", h);
|
|
2449
|
-
},
|
|
2450
|
-
t("expand", h,
|
|
2451
|
-
},
|
|
2452
|
-
var
|
|
2453
|
-
let
|
|
2454
|
-
if (
|
|
2455
|
-
const
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
},
|
|
2466
|
+
}, Ht = (h, F) => {
|
|
2467
|
+
t("expand", h, F);
|
|
2468
|
+
}, Yt = (h, F) => g(h, F), _t = (h, F, B) => {
|
|
2469
|
+
var k, H, le;
|
|
2470
|
+
let D = h;
|
|
2471
|
+
if (F) {
|
|
2472
|
+
const T = B.tooltip === !1 ? {} : B.tooltip, se = B.tooltip === !1 ? 1 : Ye(T == null ? void 0 : T.hiddenLine) && (T == null ? void 0 : T.hiddenLine) > 0 ? T == null ? void 0 : T.hiddenLine : 1, oe = B.tooltip === !1 ? 0 : Ye(T == null ? void 0 : T.width) ? T == null ? void 0 : T.width : 0, he = B.tooltip !== !1 && pt(h) && oe > 0 ? ll(h, {
|
|
2473
|
+
root: `.${s}-hidden`,
|
|
2474
|
+
cssObject: T == null ? void 0 : T.targetStyle
|
|
2475
|
+
}) : 0, $e = document.querySelector(`.${s} .ant-table-tbody`), xe = d("div", {
|
|
2476
|
+
class: `${s}-ellipsis-text`
|
|
2477
|
+
}, [h]), je = () => B.tooltip === !1 || G(B.tooltip) && he < oe && oe > 0 ? xe : d(ce, U({
|
|
2459
2478
|
title: h,
|
|
2460
|
-
getPopupContainer: (
|
|
2461
|
-
var
|
|
2462
|
-
return
|
|
2479
|
+
getPopupContainer: (me) => {
|
|
2480
|
+
var Ke;
|
|
2481
|
+
return $e ?? ((Ke = me == null ? void 0 : me.parentNode) == null ? void 0 : Ke.parentNode);
|
|
2463
2482
|
}
|
|
2464
|
-
}, {
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
})
|
|
2469
|
-
|
|
2470
|
-
|
|
2483
|
+
}, G(B.tooltip) ? B.tooltip : {}, {
|
|
2484
|
+
destroyTooltipOnHide: !0
|
|
2485
|
+
}), Sa(xe) ? xe : {
|
|
2486
|
+
default: () => [xe]
|
|
2487
|
+
});
|
|
2488
|
+
if (D = d("div", {
|
|
2489
|
+
class: `${s}-ellipsis ${T == null ? void 0 : T.class}`,
|
|
2490
|
+
style: {
|
|
2491
|
+
"-webkit-line-clamp": se
|
|
2492
|
+
}
|
|
2493
|
+
}, [je()]), B.copyable) {
|
|
2494
|
+
const me = Q(h) ? typeof ((k = h == null ? void 0 : h[0]) == null ? void 0 : k.children) == "string" ? (H = h == null ? void 0 : h[0]) == null ? void 0 : H.children : "" : h.toString(), Ke = typeof B.copyText == "function" ? (le = B.copyText) == null ? void 0 : le.call(B, B) : B.copyText || me;
|
|
2495
|
+
D = d("div", {
|
|
2471
2496
|
class: `${s}-copyable`
|
|
2472
|
-
}, [d(
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
return D ?? ((be = ue == null ? void 0 : ue.parentNode) == null ? void 0 : be.parentNode);
|
|
2497
|
+
}, [d("div", {
|
|
2498
|
+
class: `${s}-ellipsis ${T == null ? void 0 : T.class}`,
|
|
2499
|
+
style: {
|
|
2500
|
+
"-webkit-line-clamp": se
|
|
2477
2501
|
}
|
|
2478
|
-
}, {
|
|
2479
|
-
default: () => [d("div", {
|
|
2480
|
-
class: `${s}-ellipsis-text`
|
|
2481
|
-
}, [h])]
|
|
2482
|
-
}), d(Cl, {
|
|
2502
|
+
}, [je()]), d(Sl, {
|
|
2483
2503
|
class: `${s}-copyable-icon`,
|
|
2484
2504
|
onClick: () => {
|
|
2485
|
-
|
|
2505
|
+
Kl(Ke), jl.success("复制成功");
|
|
2486
2506
|
}
|
|
2487
2507
|
}, null)]);
|
|
2488
2508
|
}
|
|
2489
2509
|
}
|
|
2490
|
-
return
|
|
2510
|
+
return D;
|
|
2491
2511
|
};
|
|
2492
|
-
function
|
|
2493
|
-
var
|
|
2494
|
-
const h =
|
|
2495
|
-
if (h !== !1 && ((
|
|
2496
|
-
const
|
|
2512
|
+
function vt() {
|
|
2513
|
+
var B, D, k, H, le;
|
|
2514
|
+
const h = Fe(a, e, "emptyText");
|
|
2515
|
+
if (h !== !1 && ((B = f == null ? void 0 : f.emptyText) == null ? void 0 : B.value) !== !1) {
|
|
2516
|
+
const T = ((D = e.emptyTextProps) == null ? void 0 : D.extraProps) || {}, se = h || ((k = f == null ? void 0 : f.emptyText) == null ? void 0 : k.value), oe = ye(se), he = oe ? Ft(se, T) : $t(se || []);
|
|
2497
2517
|
return d("div", {
|
|
2498
|
-
class:
|
|
2499
|
-
style: (
|
|
2500
|
-
}, [
|
|
2518
|
+
class: We(`${s}-empty-text`, m.value, (H = e.emptyTextProps) == null ? void 0 : H.class),
|
|
2519
|
+
style: (le = e.emptyTextProps) == null ? void 0 : le.style
|
|
2520
|
+
}, [oe ? he : Q(he) ? he.map(($e) => nt($e, T)) : d(Pl, null, null)]);
|
|
2501
2521
|
}
|
|
2502
2522
|
return null;
|
|
2503
2523
|
}
|
|
2504
|
-
const
|
|
2505
|
-
var
|
|
2506
|
-
const h =
|
|
2524
|
+
const Gt = () => {
|
|
2525
|
+
var F;
|
|
2526
|
+
const h = wt(a, e, "customRender");
|
|
2507
2527
|
if (h) {
|
|
2508
|
-
if ((
|
|
2509
|
-
const
|
|
2528
|
+
if ((F = Oe.value) != null && F.length) {
|
|
2529
|
+
const B = re(C(Oe));
|
|
2510
2530
|
return h == null ? void 0 : h({
|
|
2511
|
-
dataSource:
|
|
2512
|
-
currentData:
|
|
2531
|
+
dataSource: B,
|
|
2532
|
+
currentData: Al(B, M.value)
|
|
2513
2533
|
});
|
|
2514
2534
|
}
|
|
2515
|
-
return
|
|
2535
|
+
return vt();
|
|
2516
2536
|
}
|
|
2517
|
-
return d(
|
|
2518
|
-
},
|
|
2519
|
-
var
|
|
2520
|
-
const
|
|
2521
|
-
return d(
|
|
2522
|
-
headerTitle:
|
|
2523
|
-
titleTip:
|
|
2537
|
+
return d(_e, null, null);
|
|
2538
|
+
}, qt = (h) => {
|
|
2539
|
+
var k, H;
|
|
2540
|
+
const F = Fe(a, e, "headerTitle"), B = Fe(a, e, "titleTip"), D = Fe(a, e, "toolBarBtn");
|
|
2541
|
+
return d(Ca, {
|
|
2542
|
+
headerTitle: F,
|
|
2543
|
+
titleTip: B,
|
|
2524
2544
|
titleTipText: e.titleTipText,
|
|
2525
|
-
options:
|
|
2526
|
-
...
|
|
2527
|
-
setting: h ? !1 : (
|
|
2528
|
-
density: h ? !1 : (
|
|
2545
|
+
options: ue(ke.value) ? ke.value : {
|
|
2546
|
+
...ke.value,
|
|
2547
|
+
setting: h ? !1 : (k = ke.value) == null ? void 0 : k.setting,
|
|
2548
|
+
density: h ? !1 : (H = ke.value) == null ? void 0 : H.density
|
|
2529
2549
|
},
|
|
2530
|
-
settingExtra:
|
|
2531
|
-
optionsExtra:
|
|
2532
|
-
toolBarBtn:
|
|
2550
|
+
settingExtra: Fe(a, e, "settingExtra"),
|
|
2551
|
+
optionsExtra: Fe(a, e, "optionsExtra"),
|
|
2552
|
+
toolBarBtn: D
|
|
2533
2553
|
}, null);
|
|
2534
2554
|
};
|
|
2535
|
-
return
|
|
2555
|
+
return la({
|
|
2536
2556
|
tableSize: z,
|
|
2537
|
-
columns:
|
|
2538
|
-
cacheColumns:
|
|
2539
|
-
isMobile:
|
|
2557
|
+
columns: $,
|
|
2558
|
+
cacheColumns: P,
|
|
2559
|
+
isMobile: I,
|
|
2540
2560
|
action: {
|
|
2541
|
-
setTableSize:
|
|
2542
|
-
reload: (h) =>
|
|
2561
|
+
setTableSize: q,
|
|
2562
|
+
reload: (h) => Xe(h),
|
|
2543
2563
|
toggle: r
|
|
2544
2564
|
},
|
|
2545
2565
|
settingsAction: {
|
|
2546
|
-
autoScroll:
|
|
2566
|
+
autoScroll: ae(e, "autoScroll"),
|
|
2547
2567
|
columnsMap: Y,
|
|
2548
2568
|
operationType: V,
|
|
2549
|
-
setColumnsMap:
|
|
2550
|
-
sortKeyColumns:
|
|
2551
|
-
cacheColumnsMap:
|
|
2552
|
-
setSortKeyColumns:
|
|
2569
|
+
setColumnsMap: Be,
|
|
2570
|
+
sortKeyColumns: Ue,
|
|
2571
|
+
cacheColumnsMap: Ae,
|
|
2572
|
+
setSortKeyColumns: fe
|
|
2553
2573
|
},
|
|
2554
|
-
setPagination:
|
|
2555
|
-
changeColumns:
|
|
2574
|
+
setPagination: W,
|
|
2575
|
+
changeColumns: O,
|
|
2556
2576
|
slots: a
|
|
2557
2577
|
}), o({
|
|
2558
2578
|
formRef: () => ({
|
|
2559
|
-
getFormState: () =>
|
|
2579
|
+
getFormState: () => C(pe),
|
|
2560
2580
|
getFormInnerState: () => {
|
|
2561
2581
|
var h;
|
|
2562
2582
|
return ((h = u.value) == null ? void 0 : h.getFormState()) || {};
|
|
2563
2583
|
},
|
|
2564
2584
|
restFormState: (h) => {
|
|
2565
|
-
var
|
|
2566
|
-
n.value = !0, h && (h == null || h()), (
|
|
2585
|
+
var F;
|
|
2586
|
+
n.value = !0, h && (h == null || h()), (F = u.value) == null || F.resetForm(!1), n.value = !1;
|
|
2567
2587
|
}
|
|
2568
2588
|
}),
|
|
2569
2589
|
actionRef: () => ({
|
|
2570
2590
|
loading: L,
|
|
2571
|
-
dataSource:
|
|
2572
|
-
pageState:
|
|
2591
|
+
dataSource: Oe,
|
|
2592
|
+
pageState: ee,
|
|
2573
2593
|
pagination: M.value,
|
|
2574
|
-
|
|
2575
|
-
|
|
2594
|
+
selectedKeys: p(() => A.value),
|
|
2595
|
+
selectedItems: p(() => Ce.value),
|
|
2576
2596
|
rowsSelection: {
|
|
2577
|
-
clear:
|
|
2578
|
-
select:
|
|
2579
|
-
remove:
|
|
2580
|
-
sync:
|
|
2581
|
-
selectAll:
|
|
2597
|
+
clear: Nt,
|
|
2598
|
+
select: it,
|
|
2599
|
+
remove: rt,
|
|
2600
|
+
sync: ot,
|
|
2601
|
+
selectAll: st
|
|
2582
2602
|
},
|
|
2583
|
-
reload:
|
|
2584
|
-
getLoadingStatus: () =>
|
|
2603
|
+
reload: Xe,
|
|
2604
|
+
getLoadingStatus: () => C(K),
|
|
2585
2605
|
reloadAndReset: async (h) => {
|
|
2586
|
-
var
|
|
2587
|
-
n.value = !0,
|
|
2606
|
+
var F, B, D;
|
|
2607
|
+
n.value = !0, W({
|
|
2588
2608
|
current: 1,
|
|
2589
|
-
pageSize: (
|
|
2590
|
-
}), h != null && h.callBack && (h != null && h.wait ? await ((
|
|
2609
|
+
pageSize: (ee == null ? void 0 : ee.pageSize) || 10
|
|
2610
|
+
}), h != null && h.callBack && (h != null && h.wait ? await ((F = h == null ? void 0 : h.callBack) == null ? void 0 : F.call(h)) : (B = h == null ? void 0 : h.callBack) == null || B.call(h)), (D = u.value) == null || D.resetForm(!1), n.value = !1;
|
|
2591
2611
|
},
|
|
2592
|
-
reSetDataList:
|
|
2593
|
-
setPageAndReload:
|
|
2594
|
-
setPagination:
|
|
2595
|
-
setData:
|
|
2596
|
-
setLoading:
|
|
2612
|
+
reSetDataList: Mt,
|
|
2613
|
+
setPageAndReload: mt,
|
|
2614
|
+
setPagination: W,
|
|
2615
|
+
setData: zt,
|
|
2616
|
+
setLoading: Z
|
|
2597
2617
|
})
|
|
2598
2618
|
}), () => {
|
|
2599
|
-
var
|
|
2600
|
-
const h =
|
|
2619
|
+
var F, B;
|
|
2620
|
+
const h = Re(e.customRender || a.customRender);
|
|
2601
2621
|
return c(d("div", {
|
|
2602
2622
|
ref: x,
|
|
2603
|
-
class:
|
|
2623
|
+
class: We([{
|
|
2604
2624
|
[`${m.value}`]: !0,
|
|
2605
2625
|
[`${s}`]: !0,
|
|
2606
2626
|
[`${i.class}`]: i.class,
|
|
2607
|
-
[`${s}-no-scroll`]: !Object.keys(
|
|
2608
|
-
[`${s}-table-tree`]:
|
|
2627
|
+
[`${s}-no-scroll`]: !Object.keys(C(l) || {}).length,
|
|
2628
|
+
[`${s}-table-tree`]: At.value,
|
|
2609
2629
|
[`${s}-full-screen`]: y.value
|
|
2610
2630
|
}]),
|
|
2611
2631
|
style: i.style
|
|
2612
2632
|
}, [d("div", {
|
|
2613
2633
|
class: [`${s}-content`, m.value]
|
|
2614
|
-
}, [(
|
|
2634
|
+
}, [(Ie.value.length > 0 || Re(a.search)) && e.search !== !1 && d(jt, {
|
|
2615
2635
|
ref: u,
|
|
2616
2636
|
search: e.search,
|
|
2617
2637
|
modal: e.modalScroll,
|
|
2618
|
-
searchMap:
|
|
2638
|
+
searchMap: Ie.value,
|
|
2619
2639
|
prefixCls: s,
|
|
2620
|
-
loading: !!
|
|
2621
|
-
onSearch:
|
|
2640
|
+
loading: !!C(K),
|
|
2641
|
+
onSearch: Lt,
|
|
2622
2642
|
defaultParams: J
|
|
2623
2643
|
}, {
|
|
2624
2644
|
default: a.search ? () => {
|
|
2625
|
-
var
|
|
2626
|
-
return (
|
|
2645
|
+
var D;
|
|
2646
|
+
return (D = a.search) == null ? void 0 : D.call(a);
|
|
2627
2647
|
} : null
|
|
2628
|
-
}),
|
|
2648
|
+
}), qt(h), h ? d(lt, dt.value, {
|
|
2629
2649
|
default: () => {
|
|
2630
|
-
var
|
|
2650
|
+
var D, k, H;
|
|
2631
2651
|
return [d("div", {
|
|
2632
2652
|
class: `${s}-wrapper ${m.value}`
|
|
2633
2653
|
}, [d("div", {
|
|
2634
|
-
class:
|
|
2635
|
-
style: (
|
|
2636
|
-
}, [
|
|
2654
|
+
class: We(`${s}-list`, m.value, (D = e.tableProps) == null ? void 0 : D.class),
|
|
2655
|
+
style: (k = e.tableProps) == null ? void 0 : k.style
|
|
2656
|
+
}, [Gt()]), e.pagination !== !1 && ((H = Oe.value) == null ? void 0 : H.length) > 0 && d(Ol, U({
|
|
2637
2657
|
class: {
|
|
2638
2658
|
[`${s}-pagination ${m.value}`]: !0,
|
|
2639
|
-
[`${s}-pagination-${
|
|
2659
|
+
[`${s}-pagination-${ft.value} ${m.value}`]: !!ft.value
|
|
2640
2660
|
}
|
|
2641
|
-
},
|
|
2642
|
-
onChange:
|
|
2661
|
+
}, Se(C(M)), {
|
|
2662
|
+
onChange: Vt
|
|
2643
2663
|
}), null)])];
|
|
2644
2664
|
}
|
|
2645
|
-
}) : d(
|
|
2646
|
-
style: (
|
|
2647
|
-
class: (
|
|
2648
|
-
loading:
|
|
2649
|
-
rowKey: (
|
|
2650
|
-
transformCellText: (
|
|
2651
|
-
var
|
|
2652
|
-
e.transformCellText && typeof e.transformCellText && ((
|
|
2665
|
+
}) : d(kl, U(gt(e, Object.keys(kt)), Kt.value, {
|
|
2666
|
+
style: (F = e.tableProps) == null ? void 0 : F.style,
|
|
2667
|
+
class: (B = e.tableProps) == null ? void 0 : B.class,
|
|
2668
|
+
loading: dt.value,
|
|
2669
|
+
rowKey: (D) => D[e.rowKey],
|
|
2670
|
+
transformCellText: (D) => {
|
|
2671
|
+
var se, oe, he, $e, xe;
|
|
2672
|
+
e.transformCellText && typeof e.transformCellText && ((se = e.transformCellText) == null || se.call(e, D));
|
|
2653
2673
|
const {
|
|
2654
|
-
column:
|
|
2655
|
-
} =
|
|
2656
|
-
let
|
|
2657
|
-
if (Q(
|
|
2658
|
-
|
|
2659
|
-
const
|
|
2660
|
-
|
|
2661
|
-
} else Q(
|
|
2662
|
-
return
|
|
2674
|
+
column: k
|
|
2675
|
+
} = D, H = (k == null ? void 0 : k.key) || (k == null ? void 0 : k.dataIndex);
|
|
2676
|
+
let le = !0, T = D.text;
|
|
2677
|
+
if (Q(T) && T.length === 1 && !ye(T == null ? void 0 : T[0])) {
|
|
2678
|
+
T = T == null ? void 0 : T[0];
|
|
2679
|
+
const je = tl(T, (k == null ? void 0 : k.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || "");
|
|
2680
|
+
le = je.success, T = zl(je.value, (k == null ? void 0 : k.valueType) || ((he = (oe = e.columns) == null ? void 0 : oe.find((me) => (me.key || me.dataIndex) === H)) == null ? void 0 : he.valueType), s, m.value);
|
|
2681
|
+
} else Q(T) && T.length === 1 && (($e = T[0]) == null ? void 0 : $e.type) === "template" && (T = (xe = T[0]) == null ? void 0 : xe.children);
|
|
2682
|
+
return k != null && k.ellipsis ? _t(T, le, k) : T;
|
|
2663
2683
|
},
|
|
2664
2684
|
rowSelection: e.rowSelection ? {
|
|
2665
|
-
...
|
|
2685
|
+
...Ge(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
|
|
2666
2686
|
selectedRowKeys: A.value,
|
|
2667
|
-
onSelect:
|
|
2668
|
-
onSelectAll:
|
|
2669
|
-
onChange:
|
|
2687
|
+
onSelect: it,
|
|
2688
|
+
onSelectAll: st,
|
|
2689
|
+
onChange: X
|
|
2670
2690
|
} : void 0,
|
|
2671
|
-
onChange:
|
|
2672
|
-
onExpandedRowsChange:
|
|
2673
|
-
onExpand:
|
|
2674
|
-
onResizeColumn: (
|
|
2691
|
+
onChange: mt,
|
|
2692
|
+
onExpandedRowsChange: Wt,
|
|
2693
|
+
onExpand: Ht,
|
|
2694
|
+
onResizeColumn: (D, k) => Yt(D, k)
|
|
2675
2695
|
}), {
|
|
2676
2696
|
...a,
|
|
2677
|
-
emptyText: () =>
|
|
2678
|
-
})])
|
|
2697
|
+
emptyText: () => vt()
|
|
2698
|
+
})]), d("div", {
|
|
2699
|
+
class: [`${s}-hidden`, m.value]
|
|
2700
|
+
}, null)]));
|
|
2679
2701
|
};
|
|
2680
2702
|
}
|
|
2681
2703
|
});
|
|
2682
|
-
|
|
2704
|
+
et.install = (e) => (e.component(et.name, et), e);
|
|
2683
2705
|
export {
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2706
|
+
et as GProTable,
|
|
2707
|
+
et as default,
|
|
2708
|
+
we as proTableProps,
|
|
2709
|
+
Ma as useTable
|
|
2688
2710
|
};
|