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