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