@gx-design-vue/pro-table 0.0.5-rc.2 → 0.0.5-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pro-table.mjs +456 -452
- package/dist/pro-table.umd.js +1 -1
- package/package.json +1 -1
package/dist/pro-table.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as N, watchEffect as oe, computed as T, unref as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import { useFullscreen as
|
|
4
|
-
import { Form as Ue, Grid as ze, Space as te, Button as Je, Input as Qe, TimePicker as
|
|
5
|
-
import { isBoolean as re, getSlot as
|
|
1
|
+
import { ref as N, watchEffect as oe, computed as T, unref as h, reactive as ue, watch as G, onUnmounted as Ze, onDeactivated as kt, onMounted as et, provide as Ft, inject as Dt, defineComponent as xe, createVNode as u, Fragment as Me, nextTick as Ot, mergeProps as W, renderSlot as Mt, createTextVNode as me, isVNode as ye, cloneVNode as Pt, toRef as U, toRaw as ke } from "vue";
|
|
2
|
+
import { cloneDeep as q, omit as Ge } from "lodash-unified";
|
|
3
|
+
import { useFullscreen as tt } from "@vueuse/core";
|
|
4
|
+
import { Form as Ue, Grid as ze, Space as te, Button as Je, Input as Qe, TimePicker as Et, DatePicker as nt, TreeSelect as Nt, Spin as Pe, Select as It, Tree as zt, Tooltip as J, Popover as jt, Checkbox as $t, Dropdown as Yt, Menu as Ce, Pagination as Bt, Table as Kt, Typography as Lt } from "ant-design-vue";
|
|
5
|
+
import { isBoolean as re, getSlot as lt, isFunction as we, arrayRepeat as Vt, runFunction as Ht, handleCurrentPage as At, isObject as je, getSortIndex as Wt, genColumnKey as at, compareArray as _t, isNumber as ut, isString as qt, isArray as Ee, getRandomNumber as Ne, getPrefixCls as $e, handleShowIndex as Gt, getSlotVNode as ve, hanndleField as Ut } from "@gx-design-vue/pro-utils";
|
|
6
6
|
import { tryOnUnmounted as Jt, useMemo as Se } from "@gx-design-vue/pro-hooks";
|
|
7
7
|
import V from "dayjs";
|
|
8
|
-
import { UpOutlined as Qt, DownOutlined as Xt, VerticalAlignTopOutlined as Zt, VerticalAlignMiddleOutlined as en, VerticalAlignBottomOutlined as tn, SettingOutlined as
|
|
8
|
+
import { UpOutlined as Qt, DownOutlined as Xt, VerticalAlignTopOutlined as Zt, VerticalAlignMiddleOutlined as en, VerticalAlignBottomOutlined as tn, SettingOutlined as ot, FullscreenExitOutlined as nn, FullscreenOutlined as ln, ColumnHeightOutlined as an, InfoCircleOutlined as un, ReloadOutlined as on } from "@ant-design/icons-vue";
|
|
9
9
|
function Ie() {
|
|
10
10
|
return Ie = Object.assign ? Object.assign.bind() : function(e) {
|
|
11
11
|
for (var a = 1; a < arguments.length; a++) {
|
|
@@ -253,7 +253,7 @@ function cn({ emit: e, loading: a }) {
|
|
|
253
253
|
oe(() => {
|
|
254
254
|
t.value = a.value;
|
|
255
255
|
});
|
|
256
|
-
const l = T(() =>
|
|
256
|
+
const l = T(() => h(t) || !1);
|
|
257
257
|
function i(o) {
|
|
258
258
|
t.value = o, e("loadingChange", !0);
|
|
259
259
|
}
|
|
@@ -276,25 +276,25 @@ function fn({
|
|
|
276
276
|
}) {
|
|
277
277
|
const l = ue({});
|
|
278
278
|
oe(() => {
|
|
279
|
-
var
|
|
279
|
+
var d;
|
|
280
280
|
if (t.value || t.value === void 0)
|
|
281
281
|
Object.assign(l, {
|
|
282
|
-
...(
|
|
282
|
+
...(d = t.value) != null ? d : {}
|
|
283
283
|
});
|
|
284
284
|
else
|
|
285
|
-
for (const
|
|
286
|
-
delete l[
|
|
285
|
+
for (const f in l)
|
|
286
|
+
delete l[f];
|
|
287
287
|
});
|
|
288
288
|
const i = T(() => {
|
|
289
289
|
var r;
|
|
290
290
|
if (re(t.value) && !t.value)
|
|
291
291
|
return !1;
|
|
292
|
-
const
|
|
292
|
+
const d = lt(e, h(a), "pageItemRender"), f = we(d) ? {
|
|
293
293
|
itemRender: ({
|
|
294
294
|
page: s,
|
|
295
295
|
type: C,
|
|
296
296
|
originalElement: c
|
|
297
|
-
}) =>
|
|
297
|
+
}) => d ? d({
|
|
298
298
|
page: s,
|
|
299
299
|
type: C,
|
|
300
300
|
originalElement: c
|
|
@@ -307,16 +307,16 @@ function fn({
|
|
|
307
307
|
showSizeChanger: !0,
|
|
308
308
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
309
309
|
...t.value || {},
|
|
310
|
-
...
|
|
311
|
-
...
|
|
310
|
+
...h(l),
|
|
311
|
+
...f || {}
|
|
312
312
|
};
|
|
313
313
|
return (r = t.value) != null && r.showTotal || (b.showTotal = (s) => `\u5171${s < b.pageSize ? 1 : Math.ceil(s / b.pageSize)}\u9875 ${s}\u6761\u8BB0\u5F55`), b;
|
|
314
314
|
});
|
|
315
|
-
function o(
|
|
316
|
-
const
|
|
315
|
+
function o(d) {
|
|
316
|
+
const f = h(i);
|
|
317
317
|
Object.assign(l, {
|
|
318
|
-
...
|
|
319
|
-
...
|
|
318
|
+
...f || {},
|
|
319
|
+
...d
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
return {
|
|
@@ -339,7 +339,7 @@ function hn(e, a) {
|
|
|
339
339
|
return (r = a.value) == null ? void 0 : r.defaultSelectRows;
|
|
340
340
|
}, (r) => {
|
|
341
341
|
r && e.value && r.forEach((s) => {
|
|
342
|
-
l.value.every((C) => C[e.value] !== (s == null ? void 0 : s[e.value])) && l.value.push(
|
|
342
|
+
l.value.every((C) => C[e.value] !== (s == null ? void 0 : s[e.value])) && l.value.push(q(s));
|
|
343
343
|
});
|
|
344
344
|
}, {
|
|
345
345
|
deep: !0,
|
|
@@ -354,7 +354,7 @@ function hn(e, a) {
|
|
|
354
354
|
selectedKey: t,
|
|
355
355
|
selectRowKey: i,
|
|
356
356
|
selectAllRowKey: (r, s, C) => {
|
|
357
|
-
e.value && (r ? s.map((c) => (t.value.every((
|
|
357
|
+
e.value && (r ? s.map((c) => (t.value.every((v) => v !== (c == null ? void 0 : c[e.value])) && c != null && c[e.value] && (t.value.push(c[e.value]), l.value.push(c)), c)) : C.map((c) => (t.value.some((v) => v === (c == null ? void 0 : c[e.value])) && (t.value = t.value.filter((v) => v !== c[e.value]), l.value = l.value.filter((v) => v[e.value] !== c[e.value])), c)));
|
|
358
358
|
},
|
|
359
359
|
removeRowKeys: (r) => {
|
|
360
360
|
t.value = t.value.filter((s) => !r.includes(s)), l.value = l.value.filter((s) => !r.includes(s == null ? void 0 : s[e.value || ""])), o();
|
|
@@ -364,7 +364,7 @@ function hn(e, a) {
|
|
|
364
364
|
if (e.value && t.value.length !== l.value.length) {
|
|
365
365
|
const s = l.value.map((c) => c[e.value]), C = t.value.filter((c) => !s.includes(c));
|
|
366
366
|
r.forEach((c) => {
|
|
367
|
-
C.includes(c[e.value]) && l.value.push(
|
|
367
|
+
C.includes(c[e.value]) && l.value.push(q(c));
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
370
|
}
|
|
@@ -376,15 +376,15 @@ function vn(e, a) {
|
|
|
376
376
|
function o() {
|
|
377
377
|
l.value && clearTimeout(l.value);
|
|
378
378
|
}
|
|
379
|
-
async function
|
|
379
|
+
async function d(...f) {
|
|
380
380
|
var b;
|
|
381
|
-
o(), l.value = (b =
|
|
382
|
-
await i.value(...
|
|
381
|
+
o(), l.value = (b = f[0]) != null && b.immediate ? await i.value(...f) : setTimeout(async () => {
|
|
382
|
+
await i.value(...f);
|
|
383
383
|
}, t);
|
|
384
384
|
}
|
|
385
385
|
return Jt(o), {
|
|
386
386
|
cancel: o,
|
|
387
|
-
run:
|
|
387
|
+
run: d
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
390
|
function mn(e) {
|
|
@@ -397,92 +397,92 @@ function mn(e) {
|
|
|
397
397
|
dataSource: o
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
function gn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: i, debounceTime: o }, { columns:
|
|
401
|
-
const F = N(), x = N(!0), R = N(!1), M = N(!1), I = N([]),
|
|
402
|
-
|
|
403
|
-
const
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}, Math.max(
|
|
400
|
+
function gn({ polling: e, request: a, postData: t, dataSource: l, waitRequest: i, debounceTime: o }, { columns: d, getLoading: f, setLoading: b, setColumns: r, removeRowKeys: s, syncSelectedRows: C, formParamsRef: c, setPagination: v, getPaginationInfo: g, onBeforeSearchSubmit: p }, w) {
|
|
401
|
+
const F = N(), x = N(!0), R = N(!1), M = N(!1), I = N([]), B = N(), K = vn(async (P) => {
|
|
402
|
+
B.value && clearTimeout(B.value);
|
|
403
|
+
const j = await z(P), L = Ht(e.value, j);
|
|
404
|
+
L && !F.value && (B.value = setTimeout(() => {
|
|
405
|
+
K.run({ ...P, isPolling: L });
|
|
406
|
+
}, Math.max(L, 2e3)));
|
|
407
407
|
}, o.value || 20);
|
|
408
|
-
|
|
409
|
-
F.value = !0, clearTimeout(
|
|
410
|
-
}),
|
|
411
|
-
F.value = !0, clearTimeout(
|
|
408
|
+
Ze(() => {
|
|
409
|
+
F.value = !0, clearTimeout(B.value);
|
|
410
|
+
}), kt(() => {
|
|
411
|
+
F.value = !0, clearTimeout(B.value);
|
|
412
412
|
}), G(() => e.value, () => {
|
|
413
|
-
e.value ?
|
|
413
|
+
e.value ? K.run({ isPolling: !0 }) : clearTimeout(B.value);
|
|
414
414
|
}, { immediate: !0 }), G(() => [i.value, l.value, c], () => {
|
|
415
|
-
a.value ? (!x.value || !e.value) &&
|
|
415
|
+
a.value ? (!x.value || !e.value) && K.run({ isPolling: !1 }) : S(l.value || []);
|
|
416
416
|
}, {
|
|
417
417
|
deep: !0,
|
|
418
418
|
immediate: !0
|
|
419
419
|
});
|
|
420
420
|
const X = T(() => {
|
|
421
|
-
const P =
|
|
422
|
-
return !
|
|
423
|
-
}), n = T(() =>
|
|
424
|
-
function
|
|
421
|
+
const P = h(d).filter((j) => j.show || j.show === void 0);
|
|
422
|
+
return !h(I) || !P || P.length === 0 ? [] : h(I);
|
|
423
|
+
}), n = T(() => h(I).some((P) => P.children && P.children.length > 0));
|
|
424
|
+
function m(P) {
|
|
425
425
|
M.value = P;
|
|
426
426
|
}
|
|
427
|
-
function D(P,
|
|
428
|
-
|
|
427
|
+
function D(P, j, L) {
|
|
428
|
+
K.run({ pagination: P, filters: j, sorter: L, isPolling: !1 }), w("change", P, j, L);
|
|
429
429
|
}
|
|
430
|
-
const O = (P,
|
|
431
|
-
|
|
432
|
-
},
|
|
430
|
+
const O = (P, j) => {
|
|
431
|
+
S(P), v(j);
|
|
432
|
+
}, z = async (P = {}) => {
|
|
433
433
|
var fe, be;
|
|
434
|
-
const { pagination:
|
|
435
|
-
if (!
|
|
434
|
+
const { pagination: j, filters: L = {}, sorter: le = {}, removeKeys: de = [], isPolling: pe = !1 } = P;
|
|
435
|
+
if (!h(a) || !we(h(a)) || h(i) && f.value || R.value)
|
|
436
436
|
return l.value || [];
|
|
437
|
-
if (R.value = !0, !pe ||
|
|
437
|
+
if (R.value = !0, !pe || h(i) || x.value ? b(!0) : m(!0), h(i)) {
|
|
438
438
|
x.value = !1, R.value = !1;
|
|
439
439
|
return;
|
|
440
440
|
}
|
|
441
|
-
|
|
441
|
+
j && v(j);
|
|
442
442
|
try {
|
|
443
443
|
let Q = {};
|
|
444
|
-
if (re(
|
|
444
|
+
if (re(j) && !j || re(g))
|
|
445
445
|
Q = {};
|
|
446
446
|
else {
|
|
447
|
-
const { current:
|
|
448
|
-
Q.pageNum = At({ current:
|
|
447
|
+
const { current: $ = 1, pageSize: ae = 10, total: H } = h(g) || {};
|
|
448
|
+
Q.pageNum = At({ current: $, pageSize: ae, total: H }, de.length), de.length && s(de), Q.pageSize = ae;
|
|
449
449
|
}
|
|
450
|
-
(je(le) ? [le] : le).forEach((
|
|
451
|
-
const ae = (
|
|
452
|
-
|
|
450
|
+
(je(le) ? [le] : le).forEach(($) => {
|
|
451
|
+
const ae = ($ == null ? void 0 : $.columnKey) || ($ == null ? void 0 : $.field);
|
|
452
|
+
$ && ($ == null ? void 0 : $.order) ? r(h(d).map((H) => (H.dataIndex === ae ? H.sortOrder = $ == null ? void 0 : $.order : H.sortOrder = null, H))) : $ && r(h(d).map((H) => (H.dataIndex === ae && (H.sortOrder = null), H)));
|
|
453
453
|
});
|
|
454
454
|
let he = {
|
|
455
455
|
...Q || {},
|
|
456
456
|
...P.params,
|
|
457
457
|
...c
|
|
458
458
|
};
|
|
459
|
-
|
|
460
|
-
let
|
|
461
|
-
const ie = await ((fe =
|
|
462
|
-
return R.value = !1, ie && ie.success ? (
|
|
463
|
-
total: ie.total || (
|
|
464
|
-
}),
|
|
459
|
+
p && we(p) && (he = await p(he, le, L));
|
|
460
|
+
let _ = [];
|
|
461
|
+
const ie = await ((fe = h(a)) == null ? void 0 : fe(he, le, L));
|
|
462
|
+
return R.value = !1, ie && ie.success ? (_ = ie.data || [], h(t) && we(h(t)) && (_ = await ((be = h(t)) == null ? void 0 : be(_))), C(_), O(_ || [], {
|
|
463
|
+
total: ie.total || (_ == null ? void 0 : _.length) || 0
|
|
464
|
+
}), _) : [];
|
|
465
465
|
} catch (Q) {
|
|
466
|
-
I.value === void 0 &&
|
|
466
|
+
I.value === void 0 && S([]), w("requestError", Q);
|
|
467
467
|
} finally {
|
|
468
468
|
x.value = !1, b(!1);
|
|
469
469
|
}
|
|
470
470
|
return [];
|
|
471
471
|
};
|
|
472
|
-
function
|
|
473
|
-
I.value = Wt(
|
|
472
|
+
function S(P) {
|
|
473
|
+
I.value = Wt(q(P), h(g.value));
|
|
474
474
|
}
|
|
475
|
-
function Te({ key: P, params:
|
|
476
|
-
I.value = I.value.map((
|
|
475
|
+
function Te({ key: P, params: j }) {
|
|
476
|
+
I.value = I.value.map((L) => P && j[P] === L[P] ? { ...L, ...j } : L);
|
|
477
477
|
}
|
|
478
478
|
return {
|
|
479
479
|
getDataSourceRef: X,
|
|
480
480
|
isTreeDataRef: n,
|
|
481
|
-
reSetDataList:
|
|
481
|
+
reSetDataList: S,
|
|
482
482
|
changeDataValue: Te,
|
|
483
483
|
handleTableChange: D,
|
|
484
484
|
reload: async (P) => {
|
|
485
|
-
|
|
485
|
+
h(a) ? await K.run({ ...P, isPolling: !1 }) : w("reload");
|
|
486
486
|
}
|
|
487
487
|
};
|
|
488
488
|
}
|
|
@@ -495,8 +495,8 @@ function yn(e) {
|
|
|
495
495
|
}), a;
|
|
496
496
|
}
|
|
497
497
|
function pn({ search: e, searchMap: a, params: t, columns: l }) {
|
|
498
|
-
const i = ue({}), o = ue({}),
|
|
499
|
-
|
|
498
|
+
const i = ue({}), o = ue({}), d = N([]), f = T(() => !!e.value.showSearch);
|
|
499
|
+
et(() => {
|
|
500
500
|
b("all");
|
|
501
501
|
}), G(() => t.value, () => {
|
|
502
502
|
b("params");
|
|
@@ -514,34 +514,44 @@ function pn({ search: e, searchMap: a, params: t, columns: l }) {
|
|
|
514
514
|
const b = (s) => {
|
|
515
515
|
var c;
|
|
516
516
|
const C = [];
|
|
517
|
-
if ((s === "all" || s === "searchMap") && (a.value.forEach((
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
517
|
+
if ((s === "all" || s === "searchMap") && (a.value.forEach((v) => C.push(v)), C.forEach((v) => {
|
|
518
|
+
d.value.some((g) => g.name === v.name) ? d.value = d.value.map((g) => g.name === v.name ? {
|
|
519
|
+
...g,
|
|
520
|
+
...v
|
|
521
|
+
} : g) : d.value.push(v);
|
|
522
|
+
})), (s === "all" || s === "columns") && ((c = l.value) == null ? void 0 : c.length) && (l.value && l.value.forEach((v) => {
|
|
523
|
+
v.searchConfig && C.push(v.searchConfig);
|
|
524
|
+
}), C.forEach((v) => {
|
|
525
|
+
d.value.some((g) => g.name === v.name) ? d.value = d.value.map((g) => g.name === v.name ? {
|
|
526
|
+
...g,
|
|
527
|
+
...v
|
|
528
|
+
} : g) : d.value.push(v);
|
|
529
|
+
})), s === "all" || s === "searchMap" || s === "columns") {
|
|
530
|
+
const v = yn(C);
|
|
531
|
+
Object.assign(o, { ...v });
|
|
532
|
+
for (const g in v)
|
|
533
|
+
i[g] || (i[g] = v[g]);
|
|
524
534
|
}
|
|
525
|
-
(s === "all" || s === "params" && !
|
|
535
|
+
(s === "all" || s === "params" && !f.value) && Object.assign(i, t.value);
|
|
526
536
|
};
|
|
527
537
|
function r(s) {
|
|
528
538
|
Object.assign(i, s);
|
|
529
539
|
}
|
|
530
|
-
return { formDataRef:
|
|
540
|
+
return { formDataRef: d, formParamsRef: i, defaultParamsRef: o, setFormParams: r };
|
|
531
541
|
}
|
|
532
542
|
function bn({ columns: e, columnsState: a, changeColumns: t }) {
|
|
533
|
-
const l = N(void 0), i = ue({}), o = ue({}),
|
|
543
|
+
const l = N(void 0), i = ue({}), o = ue({}), d = ue({}), f = N([]);
|
|
534
544
|
G(() => e.value, () => {
|
|
535
545
|
var s;
|
|
536
|
-
(s =
|
|
537
|
-
const
|
|
538
|
-
|
|
546
|
+
(s = h(e)) == null || s.forEach(({ show: C, key: c, fixed: v }, g) => {
|
|
547
|
+
const p = at(c, g);
|
|
548
|
+
p && (d[p] = { show: C === void 0 ? !0 : C, fixed: v });
|
|
539
549
|
});
|
|
540
550
|
}, {
|
|
541
551
|
deep: !0,
|
|
542
552
|
immediate: !0
|
|
543
553
|
}), G(() => e.value, () => {
|
|
544
|
-
const s =
|
|
554
|
+
const s = h(e).map((C) => C.key);
|
|
545
555
|
r(s);
|
|
546
556
|
}, {
|
|
547
557
|
deep: !0,
|
|
@@ -549,8 +559,8 @@ function bn({ columns: e, columnsState: a, changeColumns: t }) {
|
|
|
549
559
|
}), oe(() => {
|
|
550
560
|
var C;
|
|
551
561
|
const s = {
|
|
552
|
-
...(C =
|
|
553
|
-
...
|
|
562
|
+
...(C = h(a)) == null ? void 0 : C.value,
|
|
563
|
+
...h(d)
|
|
554
564
|
};
|
|
555
565
|
Object.assign(i, s), Object.assign(o, s);
|
|
556
566
|
});
|
|
@@ -558,13 +568,13 @@ function bn({ columns: e, columnsState: a, changeColumns: t }) {
|
|
|
558
568
|
l.value = C, Object.assign(i, s), t == null || t(i, C === "fixed");
|
|
559
569
|
}
|
|
560
570
|
function r(s) {
|
|
561
|
-
|
|
571
|
+
f.value = s;
|
|
562
572
|
}
|
|
563
573
|
return {
|
|
564
574
|
columnsMap: i,
|
|
565
575
|
operationType: l,
|
|
566
576
|
setColumnsMap: b,
|
|
567
|
-
sortKeyColumns:
|
|
577
|
+
sortKeyColumns: f,
|
|
568
578
|
cacheColumnsMap: o,
|
|
569
579
|
setSortKeyColumns: r
|
|
570
580
|
};
|
|
@@ -578,7 +588,7 @@ function Cn(e) {
|
|
|
578
588
|
};
|
|
579
589
|
}
|
|
580
590
|
function Sn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: i, neverScroll: o }) {
|
|
581
|
-
const
|
|
591
|
+
const d = N([]), f = N([]);
|
|
582
592
|
G([
|
|
583
593
|
() => e.value,
|
|
584
594
|
() => a.value,
|
|
@@ -587,123 +597,123 @@ function Sn({ scroll: e, columns: a, breakpoint: t, draggabled: l, autoScroll: i
|
|
|
587
597
|
() => i.value,
|
|
588
598
|
() => o.value
|
|
589
599
|
], () => {
|
|
590
|
-
|
|
600
|
+
d.value = q(s(h(a))), f.value = q(s(h(a)));
|
|
591
601
|
}, {
|
|
592
602
|
deep: !0,
|
|
593
603
|
immediate: !0
|
|
594
604
|
});
|
|
595
605
|
const b = T(() => {
|
|
596
|
-
const
|
|
606
|
+
const g = r(h(d).filter((F) => F.fixed === "left")), p = r(h(d).filter((F) => F.fixed !== "left" && F.fixed !== "right")), w = r(h(d).filter((F) => F.fixed === "right"));
|
|
597
607
|
return [
|
|
598
|
-
...S,
|
|
599
608
|
...g,
|
|
609
|
+
...p,
|
|
600
610
|
...w
|
|
601
611
|
];
|
|
602
612
|
});
|
|
603
|
-
function r(
|
|
604
|
-
return
|
|
613
|
+
function r(g) {
|
|
614
|
+
return g.sort((p, w) => _t(p, w, "order", 0));
|
|
605
615
|
}
|
|
606
|
-
function s(
|
|
607
|
-
return
|
|
616
|
+
function s(g) {
|
|
617
|
+
return q(g).map((p, w) => {
|
|
608
618
|
var F;
|
|
609
|
-
if (
|
|
610
|
-
return
|
|
611
|
-
if (
|
|
612
|
-
if (((F =
|
|
613
|
-
|
|
619
|
+
if (p.dataIndex === "action" || w === g.length - 1 ? p.resizable = !1 : p.resizable = re(p.resizable) ? p.resizable : !!(ut(p.width) && h(l)), !p.width || h(o))
|
|
620
|
+
return p;
|
|
621
|
+
if (p.dataIndex === "action" && h(i))
|
|
622
|
+
if (((F = h(e)) == null ? void 0 : F.x) || !h(t))
|
|
623
|
+
p.width = p.width || 100, p.fixed = "right";
|
|
614
624
|
else {
|
|
615
|
-
const x =
|
|
616
|
-
|
|
625
|
+
const x = h(a).find((R) => R.dataIndex === p.dataIndex);
|
|
626
|
+
p.width = (x == null ? void 0 : x.width) || "", p.fixed = x == null ? void 0 : x.fixed;
|
|
617
627
|
}
|
|
618
|
-
return
|
|
628
|
+
return p;
|
|
619
629
|
});
|
|
620
630
|
}
|
|
621
|
-
function C(
|
|
622
|
-
|
|
631
|
+
function C(g, p) {
|
|
632
|
+
d.value = d.value.map((w) => (w.uuid === p.uuid && (w.width = g), w));
|
|
623
633
|
}
|
|
624
|
-
function c(
|
|
625
|
-
if (
|
|
626
|
-
|
|
634
|
+
function c(g) {
|
|
635
|
+
if (g.length <= 0) {
|
|
636
|
+
d.value = [];
|
|
627
637
|
return;
|
|
628
638
|
}
|
|
629
|
-
|
|
639
|
+
d.value = s(q(g));
|
|
630
640
|
}
|
|
631
|
-
function
|
|
632
|
-
let
|
|
633
|
-
|
|
641
|
+
function v(g) {
|
|
642
|
+
let p = q(a.value);
|
|
643
|
+
p = p.map((w) => {
|
|
634
644
|
var x, R, M;
|
|
635
645
|
const F = w.key ? {
|
|
636
|
-
show: (x =
|
|
637
|
-
fixed: (R =
|
|
638
|
-
order: (M =
|
|
646
|
+
show: (x = g[w.key]) == null ? void 0 : x.show,
|
|
647
|
+
fixed: (R = g[w.key]) == null ? void 0 : R.fixed,
|
|
648
|
+
order: (M = g[w.key]) == null ? void 0 : M.order
|
|
639
649
|
} : {};
|
|
640
650
|
return {
|
|
641
651
|
...w,
|
|
642
652
|
...F
|
|
643
653
|
};
|
|
644
|
-
}), c(
|
|
654
|
+
}), c(p);
|
|
645
655
|
}
|
|
646
656
|
return {
|
|
647
657
|
breakpoint: t,
|
|
648
658
|
getProColumns: b,
|
|
649
|
-
cacheProColumns:
|
|
659
|
+
cacheProColumns: f,
|
|
650
660
|
setColumns: c,
|
|
651
|
-
changeColumns:
|
|
661
|
+
changeColumns: v,
|
|
652
662
|
resizeColumnWidth: C
|
|
653
663
|
};
|
|
654
664
|
}
|
|
655
665
|
function wn(e) {
|
|
656
|
-
const a = T(() => e.scroll), t = T(() => e.autoScroll), l = T(() => e.modalScroll), i = T(() => e.neverScroll), o = T(() => e.rowSelection),
|
|
666
|
+
const a = T(() => e.scroll), t = T(() => e.autoScroll), l = T(() => e.modalScroll), i = T(() => e.neverScroll), o = T(() => e.rowSelection), d = T(() => e.scrollBreakpoint);
|
|
657
667
|
return {
|
|
658
668
|
scroll: a,
|
|
659
669
|
neverScroll: i,
|
|
660
670
|
rowSelection: o,
|
|
661
671
|
autoScroll: t,
|
|
662
672
|
modalScroll: l,
|
|
663
|
-
scrollBreakpoint:
|
|
673
|
+
scrollBreakpoint: d
|
|
664
674
|
};
|
|
665
675
|
}
|
|
666
|
-
function xn({ scroll: e, columns: a, autoScroll: t, modalScroll: l, neverScroll: i, rowSelection: o, screensRef:
|
|
676
|
+
function xn({ scroll: e, columns: a, autoScroll: t, modalScroll: l, neverScroll: i, rowSelection: o, screensRef: d, innerWidth: f, scrollBreakpoint: b }) {
|
|
667
677
|
const r = T(() => {
|
|
668
|
-
var c,
|
|
669
|
-
return
|
|
678
|
+
var c, v, g;
|
|
679
|
+
return h(b) ? ut(h(b)) ? f.value > h(b) : qt(h(b)) ? (c = d.value) == null ? void 0 : c[h(b)] : (v = d.value) == null ? void 0 : v.xl : (g = d.value) == null ? void 0 : g.xl;
|
|
670
680
|
}), s = T(() => {
|
|
671
681
|
let c = 0;
|
|
672
|
-
const
|
|
673
|
-
|
|
682
|
+
const v = h(o) ? 60 : 0, g = 150, p = q(h(a));
|
|
683
|
+
p.forEach((x) => {
|
|
674
684
|
c += Number.parseInt(x.width) || 0;
|
|
675
685
|
});
|
|
676
|
-
const F =
|
|
677
|
-
return F !== 0 && (c += F *
|
|
686
|
+
const F = p.filter((x) => !Reflect.has(x, "width")).length;
|
|
687
|
+
return F !== 0 && (c += F * g), v && (c += v), c;
|
|
678
688
|
});
|
|
679
689
|
return { getScrollRef: T(() => {
|
|
680
|
-
var
|
|
681
|
-
const { xl: c } =
|
|
682
|
-
return
|
|
683
|
-
y: ((
|
|
684
|
-
} :
|
|
690
|
+
var v;
|
|
691
|
+
const { xl: c } = d.value;
|
|
692
|
+
return h(i) ? {} : h(e) && Object.keys(h(e)).length ? h(e) : h(l) ? {
|
|
693
|
+
y: ((v = h(e)) == null ? void 0 : v.y) || (c ? 400 : 235)
|
|
694
|
+
} : h(t) ? r.value ? {} : re(r.value) ? { x: h(s) } : {} : {};
|
|
685
695
|
}), breakpoint: r };
|
|
686
696
|
}
|
|
687
|
-
const
|
|
688
|
-
|
|
689
|
-
}, ce = () => Tn(
|
|
697
|
+
const it = Symbol("table-context"), Tn = (e = Symbol(), a) => Dt(e, a || {}), Rn = (e) => {
|
|
698
|
+
Ft(it, e);
|
|
699
|
+
}, ce = () => Tn(it, []);
|
|
690
700
|
function kn(e, a) {
|
|
691
701
|
const t = ue({});
|
|
692
702
|
oe(() => {
|
|
693
703
|
l();
|
|
694
704
|
});
|
|
695
705
|
function l() {
|
|
696
|
-
Object.keys(e).map((
|
|
697
|
-
i(
|
|
706
|
+
Object.keys(e).map((d) => {
|
|
707
|
+
i(d, e[d]);
|
|
698
708
|
});
|
|
699
|
-
const o = a.find((
|
|
709
|
+
const o = a.find((d) => d.valueType === "dateRange");
|
|
700
710
|
o && i(o.name || "", e[o.rangeStartName || "start"] ? [
|
|
701
711
|
e[o.rangeStartName || "start"],
|
|
702
712
|
e[o.rangeEndName || "end"]
|
|
703
713
|
] : []);
|
|
704
714
|
}
|
|
705
|
-
function i(o,
|
|
706
|
-
t[o] =
|
|
715
|
+
function i(o, d) {
|
|
716
|
+
t[o] = d;
|
|
707
717
|
}
|
|
708
718
|
return {
|
|
709
719
|
formState: t,
|
|
@@ -716,7 +726,7 @@ const {
|
|
|
716
726
|
} = ze, {
|
|
717
727
|
MonthPicker: Dn,
|
|
718
728
|
RangePicker: On
|
|
719
|
-
} =
|
|
729
|
+
} = nt, st = xe({
|
|
720
730
|
name: "ProTableForm",
|
|
721
731
|
props: {
|
|
722
732
|
search: ne.search,
|
|
@@ -737,8 +747,8 @@ const {
|
|
|
737
747
|
}) {
|
|
738
748
|
const i = Fn(), {
|
|
739
749
|
formState: o,
|
|
740
|
-
resetFormState:
|
|
741
|
-
changeFormState:
|
|
750
|
+
resetFormState: d,
|
|
751
|
+
changeFormState: f
|
|
742
752
|
} = kn(e.defaultParams || {}, e.searchMap || []), b = N(!1), r = T(() => !!e.search.showSearch), s = T(() => e.search.showReset === void 0 ? r.value : e.search.showReset), C = [{
|
|
743
753
|
value: "xxl",
|
|
744
754
|
span: 4
|
|
@@ -757,63 +767,63 @@ const {
|
|
|
757
767
|
}, {
|
|
758
768
|
value: "xs",
|
|
759
769
|
span: 1
|
|
760
|
-
}], c = T(() =>
|
|
770
|
+
}], c = T(() => v(e.search.span));
|
|
761
771
|
G(() => e.search.defaultCollapsed, (n) => {
|
|
762
772
|
b.value = b.value || !!n;
|
|
763
773
|
});
|
|
764
|
-
const
|
|
765
|
-
let
|
|
774
|
+
const v = (n) => {
|
|
775
|
+
let m = 4;
|
|
766
776
|
for (let D = 0; D < C.length; D += 1) {
|
|
767
777
|
const O = C[D].value;
|
|
768
778
|
if (i.value[O]) {
|
|
769
|
-
|
|
779
|
+
m = (n == null ? void 0 : n[O]) || (e.modal ? 3 : C[D].span);
|
|
770
780
|
break;
|
|
771
781
|
}
|
|
772
782
|
}
|
|
773
|
-
return
|
|
774
|
-
},
|
|
783
|
+
return m;
|
|
784
|
+
}, g = (n) => {
|
|
775
785
|
b.value = n;
|
|
776
|
-
},
|
|
786
|
+
}, p = (n, m, D) => (n + 1) % m === 0 ? {
|
|
777
787
|
...D,
|
|
778
788
|
marginRight: 0
|
|
779
789
|
} : {
|
|
780
790
|
...D,
|
|
781
791
|
marginRight: "2%"
|
|
782
|
-
}, w = (n,
|
|
792
|
+
}, w = (n, m) => {
|
|
783
793
|
var D, O;
|
|
784
|
-
switch (
|
|
794
|
+
switch (m.valueType) {
|
|
785
795
|
case "text":
|
|
786
|
-
|
|
796
|
+
f(m.name || "", n || m.initialValue || "");
|
|
787
797
|
break;
|
|
788
798
|
case "select":
|
|
789
|
-
|
|
799
|
+
f(m.name || "", n || n === 0 ? n : m.initialValue || void 0);
|
|
790
800
|
break;
|
|
791
801
|
case "treeSelect":
|
|
792
|
-
|
|
802
|
+
f(m.name || "", n || n === 0 ? n : m.initialValue || (((D = m.field) == null ? void 0 : D.treeCheckable) || ((O = m.field) == null ? void 0 : O.multiple) ? [] : null));
|
|
793
803
|
break;
|
|
794
804
|
case "date":
|
|
795
|
-
|
|
805
|
+
f(m.name || "", n ? V(n).format(m.valueFormat || "YYYY-MM-DD") : m.initialValue || null);
|
|
796
806
|
break;
|
|
797
807
|
case "dateMonth":
|
|
798
|
-
|
|
808
|
+
f(m.name || "", n ? V(n).format("YYYY-MM") : m.initialValue || null);
|
|
799
809
|
break;
|
|
800
810
|
case "dateRange":
|
|
801
|
-
|
|
811
|
+
f(m.name || "", n && n.length > 0 ? [V(n[0]).format(m.valueFormat || "YYYY-MM-DD"), V(n[1]).format(m.valueFormat || "YYYY-MM-DD")] : m.initialValue || null);
|
|
802
812
|
break;
|
|
803
813
|
case "time":
|
|
804
|
-
|
|
814
|
+
f(m.name || "", n ? V(n).format(m.valueFormat || "HH:mm:ss") : m.initialValue || null);
|
|
805
815
|
break;
|
|
806
816
|
}
|
|
807
|
-
e.search.showSearch ||
|
|
817
|
+
e.search.showSearch || m.valueType === "text" || (m.valueType === "treeSelect" || m.valueType, x());
|
|
808
818
|
}, F = () => {
|
|
809
|
-
const n =
|
|
810
|
-
return
|
|
811
|
-
}, x = (n = !1,
|
|
812
|
-
|
|
813
|
-
(!r.value || n) && a("search", F(), !!
|
|
819
|
+
const n = q(o), m = e.searchMap.find((z) => z.valueType === "text") || "", D = e.searchMap.find((z) => z.valueType === "dateRange") || "", O = e.searchMap.find((z) => z.valueType === "treeSelect") || "";
|
|
820
|
+
return m && (n[m.name] = o[m.name] || m.initialValue || ""), D && (n[D.rangeStartName || "start"] = n[D.name] ? n[D.name][0] : "", n[D.rangeEndName || "end"] = n[D.name] ? n[D.name][1] : "", delete n[D.name]), O && (Ee(o[O.name]) && (n[O.name] = o[O.name].length ? o[O.name].map((z) => z[O.valueKey === "text" ? "label" : "value"]).join() : ""), O && Ee(n[O.name]) && (n[O.name] = n[O.name].length ? n[O.name].map((z) => z[O.valueKey === "text" ? "label" : "value"]) : "")), n;
|
|
821
|
+
}, x = (n = !1, m) => {
|
|
822
|
+
Ot(() => {
|
|
823
|
+
(!r.value || n) && a("search", F(), !!m);
|
|
814
824
|
});
|
|
815
825
|
}, R = (n = !0) => {
|
|
816
|
-
|
|
826
|
+
d(), x(!0, n);
|
|
817
827
|
};
|
|
818
828
|
l({
|
|
819
829
|
getFormState: () => F(),
|
|
@@ -833,7 +843,7 @@ const {
|
|
|
833
843
|
})]
|
|
834
844
|
}), I = ({
|
|
835
845
|
formItemStyle: n,
|
|
836
|
-
advanced:
|
|
846
|
+
advanced: m,
|
|
837
847
|
showAdvanced: D = !0
|
|
838
848
|
}) => u("div", {
|
|
839
849
|
style: n,
|
|
@@ -843,27 +853,27 @@ const {
|
|
|
843
853
|
}, {
|
|
844
854
|
default: () => [M(), D && u("span", {
|
|
845
855
|
class: `${e.prefixCls}-a`,
|
|
846
|
-
onClick: () =>
|
|
847
|
-
}, [
|
|
848
|
-
})]),
|
|
849
|
-
var O;
|
|
850
|
-
let
|
|
856
|
+
onClick: () => g(!m)
|
|
857
|
+
}, [m ? "\u6536\u8D77" : "\u5C55\u5F00", e.search.collapseRender ? e.search.collapseRender() : m ? u(Qt, null, null) : u(Xt, null, null)])]
|
|
858
|
+
})]), B = (n) => {
|
|
859
|
+
var O, z;
|
|
860
|
+
let m;
|
|
851
861
|
const D = r.value ? Qe : Qe.Search;
|
|
852
862
|
switch (n.valueType) {
|
|
853
863
|
case "text":
|
|
854
|
-
|
|
864
|
+
m = u(D, W({
|
|
855
865
|
style: {
|
|
856
866
|
width: "100%"
|
|
857
867
|
},
|
|
858
868
|
value: o[n.name],
|
|
859
869
|
placeholder: n.placeholder || "\u8BF7\u8F93\u5165",
|
|
860
870
|
allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
|
|
861
|
-
onChange: (
|
|
862
|
-
onSearch: (
|
|
871
|
+
onChange: (S) => w(S.target.value, n),
|
|
872
|
+
onSearch: (S) => x()
|
|
863
873
|
}, n.field || {}), null);
|
|
864
874
|
break;
|
|
865
875
|
case "select":
|
|
866
|
-
|
|
876
|
+
m = u(It, W({
|
|
867
877
|
style: {
|
|
868
878
|
width: "100%"
|
|
869
879
|
},
|
|
@@ -872,25 +882,19 @@ const {
|
|
|
872
882
|
placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
|
|
873
883
|
showSearch: n.showSearch,
|
|
874
884
|
allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
|
|
875
|
-
getPopupContainer: (
|
|
885
|
+
getPopupContainer: (S) => S && S.parentNode ? S.parentNode : S,
|
|
876
886
|
notFoundContent: n.loading === void 0 ? void 0 : n.loading ? u(Pe, {
|
|
877
887
|
size: "small"
|
|
878
888
|
}, null) : void 0,
|
|
879
|
-
onChange: (
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
value: L.value
|
|
886
|
-
}, {
|
|
887
|
-
default: () => [L.text]
|
|
888
|
-
}))];
|
|
889
|
-
}
|
|
890
|
-
});
|
|
889
|
+
onChange: (S) => w(S, n),
|
|
890
|
+
options: (O = n == null ? void 0 : n.valueEnum) == null ? void 0 : O.map((S) => ({
|
|
891
|
+
label: S.text,
|
|
892
|
+
value: S.value
|
|
893
|
+
}))
|
|
894
|
+
}, n.field || {}), null);
|
|
891
895
|
break;
|
|
892
896
|
case "treeSelect":
|
|
893
|
-
|
|
897
|
+
m = u(Nt, W({
|
|
894
898
|
style: {
|
|
895
899
|
width: "100%"
|
|
896
900
|
},
|
|
@@ -898,84 +902,84 @@ const {
|
|
|
898
902
|
placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
|
|
899
903
|
allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
|
|
900
904
|
treeData: n.valueEnum,
|
|
901
|
-
getPopupContainer: (
|
|
905
|
+
getPopupContainer: (S) => S && S.parentNode ? S.parentNode : S,
|
|
902
906
|
notFoundContent: n.loading === void 0 ? void 0 : n.loading ? u(Pe, {
|
|
903
907
|
size: "small"
|
|
904
908
|
}, null) : void 0,
|
|
905
|
-
onChange: (
|
|
909
|
+
onChange: (S) => w(S, n)
|
|
906
910
|
}, n.field || {}), null);
|
|
907
911
|
break;
|
|
908
912
|
case "date":
|
|
909
|
-
|
|
913
|
+
m = u(nt, W({
|
|
910
914
|
style: {
|
|
911
915
|
width: "100%"
|
|
912
916
|
},
|
|
913
917
|
value: o[n.name] ? V(o[n.name], n.valueFormat || "YYYY-MM-DD") : void 0,
|
|
914
|
-
getPopupContainer: (
|
|
918
|
+
getPopupContainer: (S) => S && S.parentNode ? S.parentNode : S,
|
|
915
919
|
placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
|
|
916
920
|
allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
|
|
917
921
|
format: n.valueFormat || "YYYY-MM-DD",
|
|
918
922
|
showTime: n.showTime,
|
|
919
923
|
showToday: n.showToday || !0,
|
|
920
|
-
onChange: (
|
|
924
|
+
onChange: (S) => w(S, n)
|
|
921
925
|
}, n.field || {}), null);
|
|
922
926
|
break;
|
|
923
927
|
case "dateMonth":
|
|
924
|
-
|
|
928
|
+
m = u(Dn, W({
|
|
925
929
|
style: {
|
|
926
930
|
width: "100%"
|
|
927
931
|
},
|
|
928
932
|
value: o[n.name] ? V(o[n.name], n.valueFormat || "YYYY-MM") : void 0,
|
|
929
|
-
getPopupContainer: (
|
|
933
|
+
getPopupContainer: (S) => S && S.parentNode ? S.parentNode : S,
|
|
930
934
|
placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
|
|
931
|
-
onChange: (
|
|
935
|
+
onChange: (S) => w(S, n)
|
|
932
936
|
}, n.field || {}), null);
|
|
933
937
|
break;
|
|
934
938
|
case "dateRange":
|
|
935
|
-
|
|
939
|
+
m = u(On, W({
|
|
936
940
|
style: {
|
|
937
941
|
width: "100%"
|
|
938
942
|
},
|
|
939
|
-
value: (
|
|
940
|
-
getPopupContainer: (
|
|
943
|
+
value: (z = o[n.name]) != null && z.length ? [V(o[n.name][0], n.valueFormat || "YYYY-MM-DD HH:mm:ss"), V(o[n.name][1], n.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
|
|
944
|
+
getPopupContainer: (S) => S && S.parentNode ? S.parentNode : S,
|
|
941
945
|
placeholder: n.placeholder || ["\u5F00\u59CB\u65E5\u671F", "\u7ED3\u675F\u65E5\u671F"],
|
|
942
946
|
format: n.valueFormat || "YYYY-MM-DD HH:mm:ss",
|
|
943
947
|
showTime: n.showTime,
|
|
944
|
-
onChange: (
|
|
948
|
+
onChange: (S) => w(S, n)
|
|
945
949
|
}, n.field || {}), null);
|
|
946
950
|
break;
|
|
947
951
|
case "time":
|
|
948
|
-
|
|
952
|
+
m = u(Et, W({
|
|
949
953
|
style: {
|
|
950
954
|
width: "100%"
|
|
951
955
|
},
|
|
952
956
|
value: o[n.name] ? V(o[n.name], n.valueFormat || "HH:mm:ss") : void 0,
|
|
953
|
-
getPopupContainer: (
|
|
957
|
+
getPopupContainer: (S) => S && S.parentNode ? S.parentNode : S,
|
|
954
958
|
placeholder: n.placeholder || "\u8BF7\u9009\u62E9",
|
|
955
959
|
allowClear: n.allowClear || n.allowClear === !1 ? n.allowClear : !0,
|
|
956
960
|
use12Hours: n.use12Hours,
|
|
957
961
|
format: n.valueFormat || "HH:mm:ss",
|
|
958
|
-
onChange: (
|
|
962
|
+
onChange: (S) => w(S, n)
|
|
959
963
|
}, n.field || {}), null);
|
|
960
964
|
break;
|
|
961
965
|
}
|
|
962
|
-
return
|
|
963
|
-
},
|
|
966
|
+
return m;
|
|
967
|
+
}, K = ({
|
|
964
968
|
formItemStyle: n,
|
|
965
|
-
item:
|
|
969
|
+
item: m
|
|
966
970
|
}) => u(Ue.Item, {
|
|
967
971
|
style: n
|
|
968
972
|
}, {
|
|
969
|
-
default: () => [
|
|
973
|
+
default: () => [m.__v_isVNode ? m : B(m)]
|
|
970
974
|
}), X = () => {
|
|
971
|
-
var
|
|
972
|
-
const n = [...e.searchMap, ...((
|
|
975
|
+
var m;
|
|
976
|
+
const n = [...e.searchMap, ...((m = t.default) == null ? void 0 : m.call(t)) || []];
|
|
973
977
|
return n.map((D, O) => {
|
|
974
|
-
const
|
|
978
|
+
const z = {
|
|
975
979
|
width: `${(100 - (c.value - 1) * 2) / c.value}%`
|
|
976
|
-
},
|
|
977
|
-
return n.length < c.value || b.value ? u(Me, null, [
|
|
978
|
-
formItemStyle:
|
|
980
|
+
}, S = p(O, c.value, z);
|
|
981
|
+
return n.length < c.value || b.value ? u(Me, null, [K({
|
|
982
|
+
formItemStyle: S,
|
|
979
983
|
item: D
|
|
980
984
|
}), O === n.length - 1 && I({
|
|
981
985
|
formItemStyle: {
|
|
@@ -984,11 +988,11 @@ const {
|
|
|
984
988
|
},
|
|
985
989
|
advanced: b.value,
|
|
986
990
|
showAdvanced: b.value
|
|
987
|
-
})]) : u(Me, null, [O < c.value - 1 &&
|
|
988
|
-
formItemStyle:
|
|
991
|
+
})]) : u(Me, null, [O < c.value - 1 && K({
|
|
992
|
+
formItemStyle: S,
|
|
989
993
|
item: D
|
|
990
|
-
}), O === c.value - 1 && c.value - 1 === 0 &&
|
|
991
|
-
formItemStyle:
|
|
994
|
+
}), O === c.value - 1 && c.value - 1 === 0 && K({
|
|
995
|
+
formItemStyle: S,
|
|
992
996
|
item: D
|
|
993
997
|
}), O === c.value - 1 && I({
|
|
994
998
|
formItemStyle: {
|
|
@@ -1002,20 +1006,20 @@ const {
|
|
|
1002
1006
|
};
|
|
1003
1007
|
return () => u("div", {
|
|
1004
1008
|
class: {
|
|
1005
|
-
[`${
|
|
1009
|
+
[`${h(e.prefixCls)}-search`]: !0,
|
|
1006
1010
|
[`${e.search.className}`]: e.search.className
|
|
1007
1011
|
}
|
|
1008
1012
|
}, [u(Ue, {
|
|
1009
|
-
class: `${
|
|
1013
|
+
class: `${h(e.prefixCls)}-form`,
|
|
1010
1014
|
layout: "horizontal"
|
|
1011
1015
|
}, {
|
|
1012
1016
|
default: () => [u("div", {
|
|
1013
|
-
class: `${
|
|
1017
|
+
class: `${h(e.prefixCls)}-form-container`
|
|
1014
1018
|
}, [X()])]
|
|
1015
1019
|
})]);
|
|
1016
1020
|
}
|
|
1017
1021
|
});
|
|
1018
|
-
|
|
1022
|
+
st.inheritAttrs = !1;
|
|
1019
1023
|
function Mn(e, a) {
|
|
1020
1024
|
for (var t = Ie({}, e), l = 0; l < a.length; l += 1) {
|
|
1021
1025
|
var i = a[l];
|
|
@@ -1040,30 +1044,30 @@ const Fe = ({
|
|
|
1040
1044
|
}) => {
|
|
1041
1045
|
const {
|
|
1042
1046
|
cacheColumns: o,
|
|
1043
|
-
settingsAction:
|
|
1047
|
+
settingsAction: d
|
|
1044
1048
|
} = ce();
|
|
1045
1049
|
return a ? u(J, {
|
|
1046
1050
|
title: e
|
|
1047
1051
|
}, {
|
|
1048
1052
|
default: () => {
|
|
1049
|
-
var
|
|
1053
|
+
var f;
|
|
1050
1054
|
return [u("span", {
|
|
1051
1055
|
onClick: (b) => {
|
|
1052
|
-
var
|
|
1056
|
+
var v, g;
|
|
1053
1057
|
b.stopPropagation(), b.preventDefault();
|
|
1054
|
-
const r = ((
|
|
1055
|
-
if (typeof s.disable == "boolean" ? s.disable : (
|
|
1058
|
+
const r = ((v = h(o).find((p) => p.uuid === t)) == null ? void 0 : v.key) || "", s = (d == null ? void 0 : d.columnsMap[r]) || {};
|
|
1059
|
+
if (typeof s.disable == "boolean" ? s.disable : (g = s.disable) == null ? void 0 : g.icon)
|
|
1056
1060
|
return;
|
|
1057
1061
|
const c = {
|
|
1058
|
-
...
|
|
1062
|
+
...d == null ? void 0 : d.columnsMap,
|
|
1059
1063
|
[r]: {
|
|
1060
1064
|
...s,
|
|
1061
1065
|
fixed: l
|
|
1062
1066
|
}
|
|
1063
1067
|
};
|
|
1064
|
-
|
|
1068
|
+
d == null || d.setColumnsMap(c, "fixed");
|
|
1065
1069
|
}
|
|
1066
|
-
}, [(
|
|
1070
|
+
}, [(f = i.default) == null ? void 0 : f.call(i)])];
|
|
1067
1071
|
}
|
|
1068
1072
|
}) : null;
|
|
1069
1073
|
}, Pn = ({
|
|
@@ -1076,20 +1080,20 @@ const Fe = ({
|
|
|
1076
1080
|
var r;
|
|
1077
1081
|
const {
|
|
1078
1082
|
cacheColumns: o
|
|
1079
|
-
} = ce(),
|
|
1083
|
+
} = ce(), d = ((r = h(o).find((s) => s.uuid === e)) == null ? void 0 : r.key) || "", f = T(() => d === "action" && (i == null ? void 0 : i.value)), b = u("span", {
|
|
1080
1084
|
class: `${t}-list-item-option`
|
|
1081
1085
|
}, [u(Fe, {
|
|
1082
1086
|
treeKey: e,
|
|
1083
1087
|
fixed: "left",
|
|
1084
1088
|
title: "\u56FA\u5B9A\u5728\u5217\u9996",
|
|
1085
|
-
show: l !== "left" && !
|
|
1089
|
+
show: l !== "left" && !f.value
|
|
1086
1090
|
}, {
|
|
1087
1091
|
default: () => [u(Zt, null, null)]
|
|
1088
1092
|
}), u(Fe, {
|
|
1089
1093
|
treeKey: e,
|
|
1090
1094
|
fixed: void 0,
|
|
1091
1095
|
title: "\u4E0D\u56FA\u5B9A",
|
|
1092
|
-
show: !!l && !
|
|
1096
|
+
show: !!l && !f.value
|
|
1093
1097
|
}, {
|
|
1094
1098
|
default: () => [u(en, null, null)]
|
|
1095
1099
|
}), u(Fe, {
|
|
@@ -1122,94 +1126,94 @@ const Fe = ({
|
|
|
1122
1126
|
setup(e) {
|
|
1123
1127
|
const a = N(Ne().uuid(15)), t = T(() => e.list && e.list.length > 0), l = N([]), i = N([]), {
|
|
1124
1128
|
cacheColumns: o,
|
|
1125
|
-
slots:
|
|
1126
|
-
settingsAction:
|
|
1127
|
-
} = ce(), b = (
|
|
1128
|
-
key:
|
|
1129
|
+
slots: d,
|
|
1130
|
+
settingsAction: f
|
|
1131
|
+
} = ce(), b = (v, g) => v.map(({
|
|
1132
|
+
key: p,
|
|
1129
1133
|
children: w,
|
|
1130
1134
|
uuid: F,
|
|
1131
1135
|
...x
|
|
1132
1136
|
}) => {
|
|
1133
|
-
var
|
|
1134
|
-
const R = (
|
|
1137
|
+
var B;
|
|
1138
|
+
const R = (f == null ? void 0 : f.columnsMap[p || "null"]) || {
|
|
1135
1139
|
show: !0
|
|
1136
1140
|
};
|
|
1137
1141
|
let M = !1;
|
|
1138
|
-
R.show !== !1 && (
|
|
1142
|
+
R.show !== !1 && (g == null ? void 0 : g.show) !== !1 && !w && (M = !0);
|
|
1139
1143
|
const I = {
|
|
1140
1144
|
key: F || "",
|
|
1141
1145
|
...Mn(x, ["dataIndex"]),
|
|
1142
1146
|
checked: M,
|
|
1143
1147
|
selectable: !1,
|
|
1144
1148
|
disabled: R.disable === !0,
|
|
1145
|
-
disableCheckbox: typeof R.disable == "boolean" ? R.disable : (
|
|
1149
|
+
disableCheckbox: typeof R.disable == "boolean" ? R.disable : (B = R.disable) == null ? void 0 : B.checkbox,
|
|
1146
1150
|
isLeaf: !0
|
|
1147
1151
|
};
|
|
1148
1152
|
return w && (I.children = b(w, R)), I;
|
|
1149
1153
|
});
|
|
1150
1154
|
oe(() => {
|
|
1151
|
-
const
|
|
1152
|
-
l.value =
|
|
1155
|
+
const v = b(e.list || []);
|
|
1156
|
+
l.value = v, i.value = v.filter((g) => g.checked).map((g) => g.key), (f == null ? void 0 : f.operationType.value) === "fixed" && (a.value = Ne().uuid(15));
|
|
1153
1157
|
});
|
|
1154
|
-
const r = ge((
|
|
1158
|
+
const r = ge((v, g, p) => {
|
|
1155
1159
|
var X, n;
|
|
1156
|
-
const w = ((X =
|
|
1157
|
-
...
|
|
1158
|
-
}, R = [...
|
|
1160
|
+
const w = ((X = h(o).find((m) => m.uuid === v)) == null ? void 0 : X.key) || "", F = ((n = h(o).find((m) => m.uuid === g)) == null ? void 0 : n.key) || "", x = {
|
|
1161
|
+
...f == null ? void 0 : f.columnsMap
|
|
1162
|
+
}, R = [...f.sortKeyColumns.value], M = R.findIndex((m) => m === w), I = R.findIndex((m) => m === F), B = p > M;
|
|
1159
1163
|
if (M < 0)
|
|
1160
1164
|
return;
|
|
1161
|
-
const
|
|
1162
|
-
R.splice(M, 1),
|
|
1163
|
-
x[
|
|
1164
|
-
...x[
|
|
1165
|
+
const K = R[M];
|
|
1166
|
+
R.splice(M, 1), p === 0 ? R.unshift(K) : R.splice(B ? I : I + 1, 0, K), R.forEach((m, D) => {
|
|
1167
|
+
x[m] = {
|
|
1168
|
+
...x[m] || {},
|
|
1165
1169
|
order: D
|
|
1166
1170
|
};
|
|
1167
|
-
}),
|
|
1168
|
-
}), s = ge((
|
|
1171
|
+
}), f == null || f.setColumnsMap(x, "drop"), f == null || f.setSortKeyColumns(R);
|
|
1172
|
+
}), s = ge((v) => {
|
|
1169
1173
|
var R;
|
|
1170
|
-
const
|
|
1171
|
-
...(
|
|
1174
|
+
const g = v.node.key, p = ((R = h(o).find((M) => M.uuid === g)) == null ? void 0 : R.key) || "", F = {
|
|
1175
|
+
...(f == null ? void 0 : f.columnsMap[p]) || {}
|
|
1172
1176
|
};
|
|
1173
|
-
F.show =
|
|
1177
|
+
F.show = v.checked;
|
|
1174
1178
|
const x = {
|
|
1175
|
-
...
|
|
1176
|
-
[
|
|
1179
|
+
...f == null ? void 0 : f.columnsMap,
|
|
1180
|
+
[p]: F
|
|
1177
1181
|
};
|
|
1178
|
-
|
|
1179
|
-
}), C = (
|
|
1180
|
-
const
|
|
1181
|
-
return
|
|
1182
|
-
title:
|
|
1183
|
-
column:
|
|
1184
|
-
}, () => [
|
|
1182
|
+
f == null || f.setColumnsMap(x, "show");
|
|
1183
|
+
}), C = (v) => {
|
|
1184
|
+
const g = h(o).find((p) => p.uuid === v.key);
|
|
1185
|
+
return v.title || Mt(d, "headerCell", {
|
|
1186
|
+
title: g.title,
|
|
1187
|
+
column: g
|
|
1188
|
+
}, () => [g.title]);
|
|
1185
1189
|
}, c = () => {
|
|
1186
|
-
var
|
|
1190
|
+
var v, g;
|
|
1187
1191
|
return u(zt, {
|
|
1188
1192
|
key: a.value,
|
|
1189
|
-
draggable: e.draggable && !!((
|
|
1193
|
+
draggable: e.draggable && !!((v = l.value) != null && v.length) && ((g = l.value) == null ? void 0 : g.length) > 1,
|
|
1190
1194
|
checkable: e.checkable,
|
|
1191
1195
|
blockNode: !0,
|
|
1192
1196
|
showLine: !1,
|
|
1193
1197
|
checkedKeys: i.value,
|
|
1194
1198
|
height: 280,
|
|
1195
|
-
onDrop: (
|
|
1196
|
-
const w =
|
|
1199
|
+
onDrop: (p) => {
|
|
1200
|
+
const w = p.node.key, F = p.dragNode.key, {
|
|
1197
1201
|
dropPosition: x,
|
|
1198
1202
|
dropToGap: R
|
|
1199
|
-
} =
|
|
1203
|
+
} = p, M = x === -1 || !R ? x + 1 : x;
|
|
1200
1204
|
r(F, w, M);
|
|
1201
1205
|
},
|
|
1202
|
-
onCheck: (
|
|
1206
|
+
onCheck: (p, w) => s(w),
|
|
1203
1207
|
treeData: l.value
|
|
1204
1208
|
}, {
|
|
1205
|
-
title: (
|
|
1209
|
+
title: (p) => {
|
|
1206
1210
|
const w = {
|
|
1207
|
-
...
|
|
1211
|
+
...p,
|
|
1208
1212
|
children: void 0,
|
|
1209
|
-
title: C(
|
|
1210
|
-
autoScroll:
|
|
1213
|
+
title: C(p),
|
|
1214
|
+
autoScroll: f == null ? void 0 : f.autoScroll
|
|
1211
1215
|
};
|
|
1212
|
-
return u(Pn,
|
|
1216
|
+
return u(Pn, W({
|
|
1213
1217
|
className: e.className
|
|
1214
1218
|
}, w, {
|
|
1215
1219
|
treeKey: w.key
|
|
@@ -1227,16 +1231,16 @@ const Fe = ({
|
|
|
1227
1231
|
draggable: t,
|
|
1228
1232
|
checkable: l
|
|
1229
1233
|
}) => {
|
|
1230
|
-
const i = [], o = [],
|
|
1234
|
+
const i = [], o = [], d = [], f = [];
|
|
1231
1235
|
e.forEach((s) => {
|
|
1232
1236
|
if (s.hideInSetting)
|
|
1233
1237
|
return;
|
|
1234
1238
|
const {
|
|
1235
1239
|
fixed: C,
|
|
1236
1240
|
show: c,
|
|
1237
|
-
uuid:
|
|
1241
|
+
uuid: v
|
|
1238
1242
|
} = s;
|
|
1239
|
-
if ((c || c === void 0) &&
|
|
1243
|
+
if ((c || c === void 0) && v && f.push(v), C === "left") {
|
|
1240
1244
|
o.push(s);
|
|
1241
1245
|
return;
|
|
1242
1246
|
}
|
|
@@ -1244,7 +1248,7 @@ const Fe = ({
|
|
|
1244
1248
|
i.push(s);
|
|
1245
1249
|
return;
|
|
1246
1250
|
}
|
|
1247
|
-
|
|
1251
|
+
d.push(s);
|
|
1248
1252
|
});
|
|
1249
1253
|
const b = i && i.length > 0, r = o && o.length > 0;
|
|
1250
1254
|
return u("div", {
|
|
@@ -1255,13 +1259,13 @@ const Fe = ({
|
|
|
1255
1259
|
}, [u(De, {
|
|
1256
1260
|
title: "\u56FA\u5B9A\u5728\u5DE6\u4FA7",
|
|
1257
1261
|
list: o,
|
|
1258
|
-
keys:
|
|
1262
|
+
keys: f,
|
|
1259
1263
|
draggable: t,
|
|
1260
1264
|
checkable: l,
|
|
1261
1265
|
className: a
|
|
1262
1266
|
}, null), u(De, {
|
|
1263
|
-
list:
|
|
1264
|
-
keys:
|
|
1267
|
+
list: d,
|
|
1268
|
+
keys: f,
|
|
1265
1269
|
draggable: t,
|
|
1266
1270
|
checkable: l,
|
|
1267
1271
|
title: "\u4E0D\u56FA\u5B9A",
|
|
@@ -1270,7 +1274,7 @@ const Fe = ({
|
|
|
1270
1274
|
}, null), u(De, {
|
|
1271
1275
|
title: "\u56FA\u5B9A\u5728\u53F3\u4FA7",
|
|
1272
1276
|
list: i,
|
|
1273
|
-
keys:
|
|
1277
|
+
keys: f,
|
|
1274
1278
|
draggable: t,
|
|
1275
1279
|
checkable: l,
|
|
1276
1280
|
className: a
|
|
@@ -1286,38 +1290,38 @@ const Fe = ({
|
|
|
1286
1290
|
columns: l,
|
|
1287
1291
|
settingsAction: i
|
|
1288
1292
|
} = ce(), o = ge((c = !0) => {
|
|
1289
|
-
const
|
|
1290
|
-
|
|
1293
|
+
const v = {}, g = (p) => {
|
|
1294
|
+
p.forEach(({
|
|
1291
1295
|
key: w,
|
|
1292
1296
|
fixed: F,
|
|
1293
1297
|
index: x,
|
|
1294
1298
|
children: R
|
|
1295
1299
|
}) => {
|
|
1296
|
-
const M =
|
|
1297
|
-
M && (
|
|
1300
|
+
const M = at(w, x);
|
|
1301
|
+
M && (v[M] = {
|
|
1298
1302
|
show: c,
|
|
1299
1303
|
fixed: F
|
|
1300
|
-
}), R &&
|
|
1304
|
+
}), R && g(R);
|
|
1301
1305
|
});
|
|
1302
1306
|
};
|
|
1303
|
-
|
|
1304
|
-
}),
|
|
1307
|
+
g(l.value), i == null || i.setColumnsMap(v, "show");
|
|
1308
|
+
}), d = ge((c) => {
|
|
1305
1309
|
c.target.checked ? o() : o(!1);
|
|
1306
|
-
}),
|
|
1310
|
+
}), f = ge(() => {
|
|
1307
1311
|
i == null || i.setColumnsMap(i == null ? void 0 : i.cacheColumnsMap, "fixed");
|
|
1308
|
-
}), b = T(() => Object.values(i == null ? void 0 : i.columnsMap).filter((c) => !c || c.show === !1)), r = T(() =>
|
|
1312
|
+
}), b = T(() => Object.values(i == null ? void 0 : i.columnsMap).filter((c) => !c || c.show === !1)), r = T(() => h(b).length > 0 && h(b).length !== l.value.length);
|
|
1309
1313
|
return u(jt, {
|
|
1310
1314
|
arrowPointAtCenter: !0,
|
|
1311
1315
|
title: u("div", {
|
|
1312
1316
|
class: `${t}-title`
|
|
1313
1317
|
}, [u($t, {
|
|
1314
1318
|
indeterminate: r.value,
|
|
1315
|
-
checked:
|
|
1316
|
-
onChange: (c) =>
|
|
1319
|
+
checked: h(b).length === 0 && h(b).length !== l.value.length,
|
|
1320
|
+
onChange: (c) => d(c)
|
|
1317
1321
|
}, {
|
|
1318
1322
|
default: () => [me("\u5217\u5C55\u793A")]
|
|
1319
1323
|
}), a ? u("a", {
|
|
1320
|
-
onClick:
|
|
1324
|
+
onClick: f,
|
|
1321
1325
|
class: `${t}-action-rest-button`
|
|
1322
1326
|
}, [me("\u91CD\u7F6E")]) : null, e != null && e.extra ? u(te, {
|
|
1323
1327
|
size: 12,
|
|
@@ -1338,13 +1342,13 @@ const Fe = ({
|
|
|
1338
1342
|
default: () => [u(J, {
|
|
1339
1343
|
title: "\u5217\u8BBE\u7F6E"
|
|
1340
1344
|
}, {
|
|
1341
|
-
default: () => [u(
|
|
1345
|
+
default: () => [u(ot, null, null)]
|
|
1342
1346
|
})]
|
|
1343
1347
|
});
|
|
1344
|
-
},
|
|
1348
|
+
}, rt = () => {
|
|
1345
1349
|
const {
|
|
1346
1350
|
isFullscreen: e
|
|
1347
|
-
} =
|
|
1351
|
+
} = tt();
|
|
1348
1352
|
return e.value ? u(J, {
|
|
1349
1353
|
title: "\u9000\u51FA\u5168\u5C4F"
|
|
1350
1354
|
}, {
|
|
@@ -1395,7 +1399,7 @@ const Fe = ({
|
|
|
1395
1399
|
})]
|
|
1396
1400
|
});
|
|
1397
1401
|
};
|
|
1398
|
-
function
|
|
1402
|
+
function Xe(e) {
|
|
1399
1403
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ye(e);
|
|
1400
1404
|
}
|
|
1401
1405
|
const {
|
|
@@ -1424,7 +1428,7 @@ function jn(e) {
|
|
|
1424
1428
|
}
|
|
1425
1429
|
return null;
|
|
1426
1430
|
}
|
|
1427
|
-
const
|
|
1431
|
+
const ct = xe({
|
|
1428
1432
|
props: {
|
|
1429
1433
|
actions: ne.toolBarBtn,
|
|
1430
1434
|
settings: [Array],
|
|
@@ -1446,7 +1450,7 @@ const dt = xe({
|
|
|
1446
1450
|
let r;
|
|
1447
1451
|
return Array.isArray(e.actions) ? ((s = e.actions) == null ? void 0 : s.length) < 1 ? null : u(te, {
|
|
1448
1452
|
align: "center"
|
|
1449
|
-
},
|
|
1453
|
+
}, Xe(r = e.actions.map((C, c) => ye(C) ? Pt(C, {
|
|
1450
1454
|
key: c,
|
|
1451
1455
|
...C == null ? void 0 : C.props
|
|
1452
1456
|
}) : u("template", {
|
|
@@ -1454,7 +1458,7 @@ const dt = xe({
|
|
|
1454
1458
|
}, [C]))) ? r : {
|
|
1455
1459
|
default: () => [r]
|
|
1456
1460
|
}) : e.actions;
|
|
1457
|
-
}),
|
|
1461
|
+
}), d = Se(() => !t.value && l.value ? u("div", {
|
|
1458
1462
|
class: `${e.prefixCls}-left`
|
|
1459
1463
|
}, null) : i.value ? u(te, {
|
|
1460
1464
|
class: `${e.prefixCls}-left`
|
|
@@ -1474,7 +1478,7 @@ const dt = xe({
|
|
|
1474
1478
|
default: () => [o.value && u("div", {
|
|
1475
1479
|
class: `${e.prefixCls}-actions`
|
|
1476
1480
|
}, [o.value])]
|
|
1477
|
-
})),
|
|
1481
|
+
})), f = Se(() => {
|
|
1478
1482
|
let r;
|
|
1479
1483
|
return l.value ? u(te, {
|
|
1480
1484
|
size: 16,
|
|
@@ -1488,12 +1492,12 @@ const dt = xe({
|
|
|
1488
1492
|
size: 12,
|
|
1489
1493
|
align: "center",
|
|
1490
1494
|
class: `${e.prefixCls}-setting-items`
|
|
1491
|
-
},
|
|
1492
|
-
const
|
|
1495
|
+
}, Xe(r = e.settings.map((C, c) => {
|
|
1496
|
+
const v = jn(C);
|
|
1493
1497
|
return u("div", {
|
|
1494
1498
|
key: c,
|
|
1495
1499
|
class: `${e.prefixCls}-setting-item`
|
|
1496
|
-
}, [
|
|
1500
|
+
}, [v]);
|
|
1497
1501
|
})) ? r : {
|
|
1498
1502
|
default: () => [r]
|
|
1499
1503
|
}) : null];
|
|
@@ -1508,14 +1512,14 @@ const dt = xe({
|
|
|
1508
1512
|
};
|
|
1509
1513
|
return u("div", {
|
|
1510
1514
|
class: r
|
|
1511
|
-
}, [
|
|
1515
|
+
}, [d.value, f.value]);
|
|
1512
1516
|
});
|
|
1513
1517
|
return () => u("div", {
|
|
1514
1518
|
class: `${e.prefixCls}`
|
|
1515
1519
|
}, [b.value]);
|
|
1516
1520
|
}
|
|
1517
1521
|
});
|
|
1518
|
-
|
|
1522
|
+
ct.inheritAttrs = !1;
|
|
1519
1523
|
function $n() {
|
|
1520
1524
|
return {
|
|
1521
1525
|
reload: {
|
|
@@ -1528,11 +1532,11 @@ function $n() {
|
|
|
1528
1532
|
},
|
|
1529
1533
|
setting: {
|
|
1530
1534
|
text: "\u5217\u8BBE\u7F6E",
|
|
1531
|
-
icon: u(
|
|
1535
|
+
icon: u(ot, null, null)
|
|
1532
1536
|
},
|
|
1533
1537
|
fullScreen: {
|
|
1534
1538
|
text: "\u5168\u5C4F",
|
|
1535
|
-
icon: u(
|
|
1539
|
+
icon: u(rt, null, null)
|
|
1536
1540
|
}
|
|
1537
1541
|
};
|
|
1538
1542
|
}
|
|
@@ -1544,14 +1548,14 @@ function Yn(e, a) {
|
|
|
1544
1548
|
let i = l === !0 ? a[t] : () => l == null ? void 0 : l();
|
|
1545
1549
|
if (typeof i != "function" && (i = () => {
|
|
1546
1550
|
}), t === "setting")
|
|
1547
|
-
return u(Nn,
|
|
1551
|
+
return u(Nn, W(e[t], {
|
|
1548
1552
|
key: t
|
|
1549
1553
|
}), null);
|
|
1550
1554
|
if (t === "fullScreen")
|
|
1551
1555
|
return u("span", {
|
|
1552
1556
|
key: t,
|
|
1553
1557
|
onClick: i
|
|
1554
|
-
}, [u(
|
|
1558
|
+
}, [u(rt, null, null)]);
|
|
1555
1559
|
const o = $n()[t];
|
|
1556
1560
|
return o ? u("span", {
|
|
1557
1561
|
key: t,
|
|
@@ -1570,9 +1574,9 @@ function Bn({
|
|
|
1570
1574
|
titleTipText: l,
|
|
1571
1575
|
options: i,
|
|
1572
1576
|
optionsExtra: o,
|
|
1573
|
-
settingExtra:
|
|
1577
|
+
settingExtra: d
|
|
1574
1578
|
}) {
|
|
1575
|
-
const
|
|
1579
|
+
const f = $e({
|
|
1576
1580
|
suffixCls: "table-list-toolbar",
|
|
1577
1581
|
isPor: !0
|
|
1578
1582
|
}), {
|
|
@@ -1590,16 +1594,16 @@ function Bn({
|
|
|
1590
1594
|
...C,
|
|
1591
1595
|
...i
|
|
1592
1596
|
};
|
|
1593
|
-
return c.setting !== !1 &&
|
|
1597
|
+
return c.setting !== !1 && d && (c.setting = {}, c.setting.extra = d), Yn(c, {
|
|
1594
1598
|
...C
|
|
1595
1599
|
});
|
|
1596
1600
|
});
|
|
1597
|
-
return u(
|
|
1598
|
-
prefixCls:
|
|
1601
|
+
return u(ct, {
|
|
1602
|
+
prefixCls: f,
|
|
1599
1603
|
actions: e || [],
|
|
1600
1604
|
optionsExtra: o,
|
|
1601
1605
|
headerTitle: a,
|
|
1602
|
-
settings:
|
|
1606
|
+
settings: h(r),
|
|
1603
1607
|
titleTip: t,
|
|
1604
1608
|
titleTipText: l
|
|
1605
1609
|
}, null);
|
|
@@ -1623,7 +1627,7 @@ function Hn(e, a, t) {
|
|
|
1623
1627
|
let l = e;
|
|
1624
1628
|
if (je(a)) {
|
|
1625
1629
|
const i = a.node === "a" ? "span" : a.node;
|
|
1626
|
-
return u(i,
|
|
1630
|
+
return u(i, W(a.attr, {
|
|
1627
1631
|
class: [a.class, a.node === "a" ? `${t}-a` : ""],
|
|
1628
1632
|
onClick: a.click
|
|
1629
1633
|
}), Vn(e) ? e : {
|
|
@@ -1669,24 +1673,24 @@ const {
|
|
|
1669
1673
|
const o = $e({
|
|
1670
1674
|
suffixCls: "table",
|
|
1671
1675
|
isPor: !0
|
|
1672
|
-
}),
|
|
1676
|
+
}), d = An(), f = N(window.innerWidth), b = N(), r = N(), s = N(e.waitRequest);
|
|
1673
1677
|
oe(() => s.value = e.waitRequest);
|
|
1674
1678
|
const {
|
|
1675
1679
|
toggle: C,
|
|
1676
1680
|
isFullscreen: c
|
|
1677
|
-
} =
|
|
1681
|
+
} = tt(b), v = T(() => ({
|
|
1678
1682
|
...e
|
|
1679
|
-
})),
|
|
1680
|
-
var
|
|
1681
|
-
return e.virtualScroll && sn(!((
|
|
1682
|
-
}),
|
|
1683
|
-
const
|
|
1683
|
+
})), g = T(() => {
|
|
1684
|
+
var y, k;
|
|
1685
|
+
return e.virtualScroll && sn(!((y = e.scroll) != null && y.y), "\u53C2\u6570scroll\u7684Y\u503C\u4E0D\u80FD\u4E3A\u7A7A\uFF01"), !!(((k = e.scroll) == null ? void 0 : k.y) && e.virtualScroll);
|
|
1686
|
+
}), p = T(() => {
|
|
1687
|
+
const y = (e.columns || []).map((k) => ({
|
|
1684
1688
|
...k,
|
|
1685
1689
|
key: k.key || k.dataIndex,
|
|
1686
1690
|
align: k.align || e.align,
|
|
1687
1691
|
uuid: Ne().uuid(15)
|
|
1688
1692
|
}));
|
|
1689
|
-
return Gt(
|
|
1693
|
+
return Gt(y, {
|
|
1690
1694
|
align: e.align,
|
|
1691
1695
|
showIndex: e.showIndex
|
|
1692
1696
|
});
|
|
@@ -1707,38 +1711,38 @@ const {
|
|
|
1707
1711
|
setPagination: I
|
|
1708
1712
|
} = fn({
|
|
1709
1713
|
slots: t,
|
|
1710
|
-
props:
|
|
1714
|
+
props: v,
|
|
1711
1715
|
pagination: U(e, "pagination")
|
|
1712
|
-
}),
|
|
1713
|
-
getScrollRef:
|
|
1716
|
+
}), B = wn(e), {
|
|
1717
|
+
getScrollRef: K,
|
|
1714
1718
|
breakpoint: X
|
|
1715
1719
|
} = xn({
|
|
1716
|
-
...
|
|
1717
|
-
innerWidth:
|
|
1718
|
-
columns:
|
|
1719
|
-
screensRef:
|
|
1720
|
+
...B,
|
|
1721
|
+
innerWidth: f,
|
|
1722
|
+
columns: p,
|
|
1723
|
+
screensRef: d
|
|
1720
1724
|
}), n = Cn(e), {
|
|
1721
|
-
getProColumns:
|
|
1725
|
+
getProColumns: m,
|
|
1722
1726
|
cacheProColumns: D,
|
|
1723
1727
|
setColumns: O,
|
|
1724
|
-
changeColumns:
|
|
1725
|
-
resizeColumnWidth:
|
|
1728
|
+
changeColumns: z,
|
|
1729
|
+
resizeColumnWidth: S
|
|
1726
1730
|
} = Sn({
|
|
1727
1731
|
...n,
|
|
1728
1732
|
breakpoint: X,
|
|
1729
|
-
scroll:
|
|
1730
|
-
columns:
|
|
1733
|
+
scroll: K,
|
|
1734
|
+
columns: p
|
|
1731
1735
|
}), {
|
|
1732
1736
|
columnsMap: Te,
|
|
1733
1737
|
operationType: P,
|
|
1734
|
-
setColumnsMap:
|
|
1735
|
-
sortKeyColumns:
|
|
1738
|
+
setColumnsMap: j,
|
|
1739
|
+
sortKeyColumns: L,
|
|
1736
1740
|
cacheColumnsMap: le,
|
|
1737
1741
|
setSortKeyColumns: de
|
|
1738
1742
|
} = bn({
|
|
1739
1743
|
columns: D,
|
|
1740
1744
|
columnsState: U(e, "columnsState"),
|
|
1741
|
-
changeColumns:
|
|
1745
|
+
changeColumns: z
|
|
1742
1746
|
}), {
|
|
1743
1747
|
formDataRef: pe,
|
|
1744
1748
|
formParamsRef: fe,
|
|
@@ -1748,159 +1752,159 @@ const {
|
|
|
1748
1752
|
search: U(e, "search"),
|
|
1749
1753
|
searchMap: U(e, "searchMap"),
|
|
1750
1754
|
params: U(e, "params"),
|
|
1751
|
-
columns:
|
|
1755
|
+
columns: p
|
|
1752
1756
|
}), {
|
|
1753
1757
|
selectedKey: Ye,
|
|
1754
1758
|
changeRowKey: he,
|
|
1755
|
-
selectRowKey:
|
|
1759
|
+
selectRowKey: _,
|
|
1756
1760
|
selectAllRowKey: ie,
|
|
1757
|
-
syncSelectedRows:
|
|
1761
|
+
syncSelectedRows: $,
|
|
1758
1762
|
removeRowKeys: ae
|
|
1759
|
-
} = hn(U(e, "rowKey"), U(e, "rowSelection")),
|
|
1763
|
+
} = hn(U(e, "rowKey"), U(e, "rowSelection")), H = mn(e), {
|
|
1760
1764
|
reload: Re,
|
|
1761
|
-
reSetDataList:
|
|
1762
|
-
changeDataValue:
|
|
1765
|
+
reSetDataList: dt,
|
|
1766
|
+
changeDataValue: ft,
|
|
1763
1767
|
isTreeDataRef: Be,
|
|
1764
1768
|
getDataSourceRef: Ke,
|
|
1765
1769
|
handleTableChange: Le
|
|
1766
1770
|
} = gn({
|
|
1767
|
-
...
|
|
1771
|
+
...H,
|
|
1768
1772
|
waitRequest: s
|
|
1769
1773
|
}, {
|
|
1770
1774
|
getLoading: w,
|
|
1771
1775
|
getPaginationInfo: M,
|
|
1772
1776
|
setPagination: I,
|
|
1773
1777
|
removeRowKeys: ae,
|
|
1774
|
-
syncSelectedRows:
|
|
1778
|
+
syncSelectedRows: $,
|
|
1775
1779
|
setLoading: F,
|
|
1776
1780
|
setColumns: O,
|
|
1777
|
-
columns:
|
|
1781
|
+
columns: m,
|
|
1778
1782
|
formParamsRef: fe,
|
|
1779
1783
|
onBeforeSearchSubmit: e.onBeforeSearchSubmit
|
|
1780
|
-
}, a),
|
|
1784
|
+
}, a), ht = T(() => e.options ? {
|
|
1781
1785
|
...Wn,
|
|
1782
|
-
...
|
|
1786
|
+
...q(je(e.options) ? e.options : {})
|
|
1783
1787
|
} : {});
|
|
1784
|
-
|
|
1788
|
+
et(() => {
|
|
1785
1789
|
window.addEventListener("resize", Ve);
|
|
1786
|
-
}),
|
|
1790
|
+
}), Ze(() => {
|
|
1787
1791
|
window.removeEventListener("resize", Ve);
|
|
1788
1792
|
});
|
|
1789
1793
|
const Ve = () => {
|
|
1790
|
-
|
|
1794
|
+
f.value = window.innerWidth;
|
|
1791
1795
|
}, He = T(() => {
|
|
1792
|
-
const
|
|
1796
|
+
const y = h(Ke);
|
|
1793
1797
|
let k = {
|
|
1794
1798
|
...l,
|
|
1795
1799
|
...e,
|
|
1796
|
-
virtualScroll:
|
|
1797
|
-
size:
|
|
1798
|
-
scroll:
|
|
1799
|
-
loading: !!
|
|
1800
|
-
columns: ke(
|
|
1801
|
-
pagination: ke(
|
|
1802
|
-
dataSource:
|
|
1800
|
+
virtualScroll: g.value,
|
|
1801
|
+
size: h(x),
|
|
1802
|
+
scroll: h(K),
|
|
1803
|
+
loading: !!h(w),
|
|
1804
|
+
columns: ke(h(m).filter((E) => E.show || E.show === void 0)),
|
|
1805
|
+
pagination: ke(h(M)),
|
|
1806
|
+
dataSource: y
|
|
1803
1807
|
};
|
|
1804
1808
|
return k = Ge(k, ["class", "onChange", "onExpand", "onExpandedRowsChange"]), k;
|
|
1805
|
-
}),
|
|
1806
|
-
var
|
|
1809
|
+
}), vt = T(() => {
|
|
1810
|
+
var y;
|
|
1807
1811
|
return [{
|
|
1808
1812
|
[`${o}`]: !0,
|
|
1809
1813
|
[`${l.class}`]: l.class,
|
|
1810
|
-
[`${o}-no-scroll`]: !Object.keys(((
|
|
1814
|
+
[`${o}-no-scroll`]: !Object.keys(((y = He.value) == null ? void 0 : y.scroll) || {}).length,
|
|
1811
1815
|
[`${o}-table-tree`]: Be.value,
|
|
1812
1816
|
[`${o}-full-screen`]: c.value
|
|
1813
1817
|
}];
|
|
1814
1818
|
});
|
|
1815
1819
|
Rn({
|
|
1816
1820
|
tableSize: x,
|
|
1817
|
-
columns:
|
|
1818
|
-
cacheColumns:
|
|
1821
|
+
columns: m,
|
|
1822
|
+
cacheColumns: p,
|
|
1819
1823
|
action: {
|
|
1820
1824
|
setTableSize: R,
|
|
1821
|
-
reload: (
|
|
1825
|
+
reload: (y) => Re(y),
|
|
1822
1826
|
toggle: C
|
|
1823
1827
|
},
|
|
1824
1828
|
settingsAction: {
|
|
1825
1829
|
autoScroll: U(e, "autoScroll"),
|
|
1826
1830
|
columnsMap: Te,
|
|
1827
1831
|
operationType: P,
|
|
1828
|
-
setColumnsMap:
|
|
1829
|
-
sortKeyColumns:
|
|
1832
|
+
setColumnsMap: j,
|
|
1833
|
+
sortKeyColumns: L,
|
|
1830
1834
|
cacheColumnsMap: le,
|
|
1831
1835
|
setSortKeyColumns: de
|
|
1832
1836
|
},
|
|
1833
1837
|
setPagination: I,
|
|
1834
|
-
changeColumns:
|
|
1838
|
+
changeColumns: z,
|
|
1835
1839
|
slots: t
|
|
1836
1840
|
}), i({
|
|
1837
1841
|
formRef: () => ({
|
|
1838
1842
|
formParams: fe,
|
|
1839
1843
|
getFormState: () => {
|
|
1840
|
-
var
|
|
1841
|
-
return ((
|
|
1844
|
+
var y;
|
|
1845
|
+
return ((y = r.value) == null ? void 0 : y.getFormState()) || {};
|
|
1842
1846
|
},
|
|
1843
|
-
restForm: (
|
|
1847
|
+
restForm: (y) => {
|
|
1844
1848
|
var k;
|
|
1845
|
-
s.value = !0,
|
|
1849
|
+
s.value = !0, y && (y == null || y()), (k = r.value) == null || k.resetForm(!1), s.value = !1;
|
|
1846
1850
|
}
|
|
1847
1851
|
}),
|
|
1848
1852
|
actionRef: () => ({
|
|
1849
1853
|
pageParams: M.value,
|
|
1850
1854
|
getLoadingStatus: w.value,
|
|
1851
1855
|
reload: Re,
|
|
1852
|
-
reloadAndRest: async (
|
|
1856
|
+
reloadAndRest: async (y) => {
|
|
1853
1857
|
s.value = !0, I({
|
|
1854
1858
|
current: 1,
|
|
1855
1859
|
pageSize: 10
|
|
1856
|
-
}),
|
|
1860
|
+
}), y && (y == null || y()), s.value = !1;
|
|
1857
1861
|
},
|
|
1858
|
-
reSetDataList:
|
|
1862
|
+
reSetDataList: dt,
|
|
1859
1863
|
changePageInfo: _e,
|
|
1860
|
-
changeDataValue:
|
|
1864
|
+
changeDataValue: ft,
|
|
1861
1865
|
loadingOperation: F
|
|
1862
1866
|
})
|
|
1863
1867
|
});
|
|
1864
|
-
const
|
|
1868
|
+
const mt = (y) => {
|
|
1865
1869
|
const k = {};
|
|
1866
|
-
return Object.keys(
|
|
1870
|
+
return Object.keys(y).map((E) => (Ln.includes(E) || (k[E] = y[E]), E)), k;
|
|
1867
1871
|
}, Ae = T(() => {
|
|
1868
1872
|
var Z;
|
|
1869
|
-
let
|
|
1870
|
-
const k =
|
|
1873
|
+
let y;
|
|
1874
|
+
const k = h(v).direction === "rtl" ? "bottomLeft" : "right", E = (Z = h(M)) == null ? void 0 : Z.position;
|
|
1871
1875
|
if (E !== null && Array.isArray(E)) {
|
|
1872
|
-
const se = E.find((ee) => ee.indexOf("top") !== -1),
|
|
1873
|
-
!se &&
|
|
1876
|
+
const se = E.find((ee) => ee.indexOf("top") !== -1), Y = E.find((ee) => ee.indexOf("bottom") !== -1), A = E.every((ee) => `${ee}` == "none");
|
|
1877
|
+
!se && !Y && !A && (y = k), se && (y = se.toLowerCase().replace("top", "")), Y && (y = Y.toLowerCase().replace("bottom", ""));
|
|
1874
1878
|
} else
|
|
1875
|
-
|
|
1876
|
-
return
|
|
1877
|
-
}), We = async (
|
|
1879
|
+
y = k;
|
|
1880
|
+
return y;
|
|
1881
|
+
}), We = async (y) => {
|
|
1878
1882
|
e.search.showSearch ? (Q({
|
|
1879
|
-
...
|
|
1883
|
+
...y,
|
|
1880
1884
|
...e.params || {}
|
|
1881
|
-
}), await Re()) : Q(
|
|
1882
|
-
},
|
|
1883
|
-
k ? (a("reset",
|
|
1884
|
-
}, _e = (
|
|
1885
|
+
}), await Re()) : Q(y);
|
|
1886
|
+
}, gt = async (y, k) => {
|
|
1887
|
+
k ? (a("reset", y), e.request && await We(y)) : e.request ? (a("submit", y), await We(y)) : a("submit", y);
|
|
1888
|
+
}, _e = (y, k = {}, E = {}) => {
|
|
1885
1889
|
I({
|
|
1886
|
-
current:
|
|
1887
|
-
pageSize:
|
|
1888
|
-
}), Le(
|
|
1889
|
-
},
|
|
1890
|
+
current: y.current,
|
|
1891
|
+
pageSize: y.pageSize
|
|
1892
|
+
}), Le(y, k, E);
|
|
1893
|
+
}, yt = (y, k) => {
|
|
1890
1894
|
var E;
|
|
1891
1895
|
I({
|
|
1892
|
-
current:
|
|
1896
|
+
current: y,
|
|
1893
1897
|
pageSize: k
|
|
1894
1898
|
}), Le({
|
|
1895
|
-
current:
|
|
1899
|
+
current: y,
|
|
1896
1900
|
pageSize: k,
|
|
1897
1901
|
total: M.value && ((E = M.value) == null ? void 0 : E.total) || 0
|
|
1898
1902
|
}, {}, {});
|
|
1899
|
-
},
|
|
1900
|
-
a("expandedRowsChange",
|
|
1901
|
-
},
|
|
1902
|
-
a("expand",
|
|
1903
|
-
},
|
|
1903
|
+
}, pt = (y) => {
|
|
1904
|
+
a("expandedRowsChange", y);
|
|
1905
|
+
}, bt = (y, k) => {
|
|
1906
|
+
a("expand", y, k);
|
|
1907
|
+
}, Ct = (y, k) => S(y, k), St = (y, k, E) => {
|
|
1904
1908
|
const Z = E.align === "center" ? "top" : E.align === "left" || !E.align ? "topLeft" : "topRight";
|
|
1905
1909
|
return k && E.copyable ? u(Lt.Paragraph, {
|
|
1906
1910
|
class: `${o}-copyable`,
|
|
@@ -1912,96 +1916,96 @@ const {
|
|
|
1912
1916
|
copyable: !0
|
|
1913
1917
|
}, {
|
|
1914
1918
|
default: () => [u(J, {
|
|
1915
|
-
title:
|
|
1919
|
+
title: y,
|
|
1916
1920
|
placement: Z
|
|
1917
1921
|
}, {
|
|
1918
1922
|
default: () => [u("div", {
|
|
1919
1923
|
class: `${o}-ellipsis`
|
|
1920
|
-
}, [
|
|
1924
|
+
}, [y])]
|
|
1921
1925
|
})]
|
|
1922
1926
|
}) : k && !E.copyable ? u(J, {
|
|
1923
|
-
title:
|
|
1927
|
+
title: y,
|
|
1924
1928
|
placement: Z
|
|
1925
1929
|
}, {
|
|
1926
|
-
default: () => [Be.value ?
|
|
1930
|
+
default: () => [Be.value ? y : u("div", {
|
|
1927
1931
|
class: `${o}-ellipsis`
|
|
1928
|
-
}, [
|
|
1929
|
-
}) :
|
|
1930
|
-
},
|
|
1931
|
-
const
|
|
1932
|
-
return
|
|
1933
|
-
},
|
|
1934
|
-
headerTitle:
|
|
1932
|
+
}, [y])]
|
|
1933
|
+
}) : y;
|
|
1934
|
+
}, wt = () => {
|
|
1935
|
+
const y = lt(t, e, "customize");
|
|
1936
|
+
return y ? y(Ke.value) : null;
|
|
1937
|
+
}, xt = (y, k, E) => u(Kn, {
|
|
1938
|
+
headerTitle: y,
|
|
1935
1939
|
titleTip: E,
|
|
1936
1940
|
titleTipText: e.titleTipText,
|
|
1937
|
-
options:
|
|
1941
|
+
options: h(ht),
|
|
1938
1942
|
settingExtra: ve(t, e, "settingExtra"),
|
|
1939
1943
|
optionsExtra: ve(t, e, "optionsExtra"),
|
|
1940
1944
|
toolBarBtn: k
|
|
1941
1945
|
}, null);
|
|
1942
1946
|
return () => {
|
|
1943
1947
|
var Z, se;
|
|
1944
|
-
const
|
|
1948
|
+
const y = ve(t, e, "headerTitle"), k = ve(t, e, "titleTip"), E = ve(t, e, "toolBarBtn");
|
|
1945
1949
|
return u("div", {
|
|
1946
|
-
ref: (
|
|
1947
|
-
class:
|
|
1950
|
+
ref: (Y) => b.value = Y,
|
|
1951
|
+
class: vt.value
|
|
1948
1952
|
}, [u("div", {
|
|
1949
1953
|
class: "gx-pro-table-content"
|
|
1950
|
-
}, [(!!pe.value.length || !!((Z = t.search) != null && Z.call(t))) && u(
|
|
1954
|
+
}, [(!!pe.value.length || !!((Z = t.search) != null && Z.call(t))) && u(st, {
|
|
1951
1955
|
ref: r,
|
|
1952
1956
|
search: e.search,
|
|
1953
1957
|
modal: e.modalScroll,
|
|
1954
1958
|
searchMap: pe.value,
|
|
1955
1959
|
prefixCls: o,
|
|
1956
|
-
loading: !!
|
|
1957
|
-
onSearch:
|
|
1960
|
+
loading: !!h(w),
|
|
1961
|
+
onSearch: gt,
|
|
1958
1962
|
defaultParams: be
|
|
1959
1963
|
}, {
|
|
1960
1964
|
default: t.search ? () => {
|
|
1961
|
-
var
|
|
1962
|
-
return (
|
|
1965
|
+
var Y;
|
|
1966
|
+
return (Y = t.search) == null ? void 0 : Y.call(t);
|
|
1963
1967
|
} : null
|
|
1964
|
-
}), !
|
|
1965
|
-
spinning: !!
|
|
1968
|
+
}), !g.value && xt(y, E, k), ((se = e.customize) != null ? se : t.customize) ? u(Pe, {
|
|
1969
|
+
spinning: !!h(w)
|
|
1966
1970
|
}, {
|
|
1967
|
-
default: () => [
|
|
1971
|
+
default: () => [wt(), u(Bt, W({
|
|
1968
1972
|
class: {
|
|
1969
1973
|
["ant-table-pagination"]: !0,
|
|
1970
1974
|
[`ant-table-pagination-${Ae.value}`]: Ae.value
|
|
1971
1975
|
}
|
|
1972
|
-
}, ke(
|
|
1973
|
-
onChange:
|
|
1976
|
+
}, ke(h(M)), {
|
|
1977
|
+
onChange: yt
|
|
1974
1978
|
}), null)]
|
|
1975
|
-
}) : u(Kt,
|
|
1979
|
+
}) : u(Kt, W(He.value, {
|
|
1976
1980
|
style: e.tableStyle || void 0,
|
|
1977
1981
|
class: e.tableClassName,
|
|
1978
|
-
rowKey: (
|
|
1982
|
+
rowKey: (Y) => Y[e.rowKey || "sortIndex"],
|
|
1979
1983
|
transformCellText: ({
|
|
1980
|
-
text:
|
|
1981
|
-
column:
|
|
1984
|
+
text: Y,
|
|
1985
|
+
column: A
|
|
1982
1986
|
}) => {
|
|
1983
|
-
const ee = Ee(
|
|
1987
|
+
const ee = Ee(Y) ? Y == null ? void 0 : Y[0] : Y;
|
|
1984
1988
|
if (ye(ee))
|
|
1985
|
-
return
|
|
1989
|
+
return Y;
|
|
1986
1990
|
const {
|
|
1987
|
-
value:
|
|
1988
|
-
success:
|
|
1989
|
-
} = Ut(ee, (
|
|
1990
|
-
return
|
|
1991
|
+
value: Tt,
|
|
1992
|
+
success: Rt
|
|
1993
|
+
} = Ut(ee, (A == null ? void 0 : A.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText)), qe = Hn(Tt, A == null ? void 0 : A.valueType, o);
|
|
1994
|
+
return A != null && A.ellipsis ? St(qe, Rt, A) : qe;
|
|
1991
1995
|
},
|
|
1992
1996
|
rowSelection: e.rowSelection ? {
|
|
1993
1997
|
...Ge(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
|
|
1994
1998
|
selectedRowKeys: Ye.value,
|
|
1995
|
-
onSelect:
|
|
1999
|
+
onSelect: _,
|
|
1996
2000
|
onSelectAll: ie,
|
|
1997
2001
|
onChange: he
|
|
1998
2002
|
} : void 0,
|
|
1999
2003
|
onChange: _e,
|
|
2000
|
-
onExpandedRowsChange:
|
|
2001
|
-
onExpand:
|
|
2002
|
-
onResizeColumn:
|
|
2004
|
+
onExpandedRowsChange: pt,
|
|
2005
|
+
onExpand: bt,
|
|
2006
|
+
onResizeColumn: Ct
|
|
2003
2007
|
}), {
|
|
2004
|
-
...
|
|
2008
|
+
...mt(t)
|
|
2005
2009
|
})])]);
|
|
2006
2010
|
};
|
|
2007
2011
|
}
|