@gx-design-vue/pro-table 0.2.0-beta.140 → 0.2.0-beta.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/pro-table.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.2.0-beta.
|
|
3
|
+
* Version: 0.2.0-beta.140
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
@@ -9,23 +9,23 @@
|
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
|
-
import { defineComponent as ge, ref as
|
|
13
|
-
import { UpOutlined as
|
|
14
|
-
import { useProAppContext as
|
|
15
|
-
import { useBreakpoint as
|
|
16
|
-
import { useProStyle as
|
|
17
|
-
import { isArray as J, cloneDeep as ae, isObject as ne, isBoolean as De, classNames as D, isNumber as Ce, filterEmpty as
|
|
18
|
-
import { useDebounceFn as
|
|
19
|
-
import { DatePicker as
|
|
20
|
-
import { omit as ze, cloneDeep as
|
|
21
|
-
import { tableProps as
|
|
12
|
+
import { defineComponent as ge, ref as w, watch as q, cloneVNode as lt, reactive as at, toRaw as ce, computed as T, createVNode as d, Fragment as we, isVNode as le, mergeProps as Q, h as pt, onBeforeUnmount as Qt, onMounted as nt, nextTick as ot, watchEffect as yt, unref as R, onActivated as Ct, getCurrentInstance as Ut, onUnmounted as St, onDeactivated as xt, onUpdated as Jt, toRef as V, Teleport as Zt, isRef as Ge } from "vue";
|
|
13
|
+
import { UpOutlined as el, DownOutlined as tl, InfoCircleOutlined as ll, FullscreenExitOutlined as al, FullscreenOutlined as nl, ReloadOutlined as ol, CopyOutlined as il } from "@ant-design/icons-vue";
|
|
14
|
+
import { useProAppContext as Tt } from "@gx-design-vue/pro-app";
|
|
15
|
+
import { useBreakpoint as it, useMemo as Ne, tryOnUnmounted as rl, onMountedOrActivated as sl } from "@gx-design-vue/pro-hooks";
|
|
16
|
+
import { useProStyle as rt, unit as pe, useProConfigContext as ul } from "@gx-design-vue/pro-provider";
|
|
17
|
+
import { isArray as J, cloneDeep as ae, isObject as ne, isBoolean as De, classNames as D, isNumber as Ce, filterEmpty as wt, getPrefixCls as $t, keysOf as Rt, isDeepEqualReact as qe, compareArray as cl, runFunction as dl, getSortIndex as fl, isFunction as Me, handleCurrentPage as vl, getRandomNumber as Pt, deepMerge as ye, forInObject as ml, arrayRepeat as hl, isString as Ft, handleShowIndex as gl, getSlot as vt, convertValueBoolean as Qe, getSlotsProps as bl, handleEmptyField as pl, getTextWidth as yl, getSlotVNode as Cl, useDeepMerge as Sl } from "@gx-design-vue/pro-utils";
|
|
18
|
+
import { useDebounceFn as xl, useEventListener as mt, isClient as Tl, useElementBounding as wl, useFullscreen as It, useElementSize as He, useScroll as $l, useResizeObserver as Rl, useWindowSize as Pl } from "@vueuse/core";
|
|
19
|
+
import { DatePicker as At, Input as We, TimePicker as Fl, TreeSelect as Il, Select as Al, InputNumber as Ue, Button as ht, Spin as Bt, Tooltip as $e, Empty as Nt, theme as Bl, Pagination as Nl, Table as zl, message as Dl } from "ant-design-vue";
|
|
20
|
+
import { omit as ze, cloneDeep as zt, pick as Ol } from "lodash-es";
|
|
21
|
+
import { tableProps as El } from "ant-design-vue/es/table/Table";
|
|
22
22
|
import "ant-design-vue/es/_util/props-util";
|
|
23
|
-
import { warning as
|
|
23
|
+
import { warning as Ll } from "ant-design-vue/es/vc-util/warning";
|
|
24
24
|
import Z from "dayjs";
|
|
25
|
-
import { useContext as
|
|
26
|
-
import { TinyColor as
|
|
27
|
-
const
|
|
28
|
-
...ze(
|
|
25
|
+
import { useContext as Dt } from "@gx-design-vue/context";
|
|
26
|
+
import { TinyColor as gt } from "@ctrl/tinycolor";
|
|
27
|
+
const jl = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], Ot = {
|
|
28
|
+
...ze(El(), jl),
|
|
29
29
|
direction: {
|
|
30
30
|
type: String,
|
|
31
31
|
default: "ltr"
|
|
@@ -49,8 +49,8 @@ const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
|
|
|
49
49
|
type: Object,
|
|
50
50
|
default: void 0
|
|
51
51
|
}
|
|
52
|
-
}, { provideContext:
|
|
53
|
-
...
|
|
52
|
+
}, { provideContext: Hl, useInjectContext: Ke } = Dt("pro-table"), he = {
|
|
53
|
+
...Ot,
|
|
54
54
|
id: {
|
|
55
55
|
type: String,
|
|
56
56
|
default: ""
|
|
@@ -313,7 +313,7 @@ const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
|
|
|
313
313
|
onLoadingChange: Function,
|
|
314
314
|
onRequestError: Function,
|
|
315
315
|
onBeforeSearchSubmit: Function
|
|
316
|
-
},
|
|
316
|
+
}, Wl = /* @__PURE__ */ ge({
|
|
317
317
|
name: "RequestSelect",
|
|
318
318
|
props: {
|
|
319
319
|
fetch: Function,
|
|
@@ -332,53 +332,53 @@ const Ll = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
|
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
334
|
setup(e, {
|
|
335
|
-
slots:
|
|
335
|
+
slots: a
|
|
336
336
|
}) {
|
|
337
|
-
const l =
|
|
337
|
+
const l = w([]), n = w(e.loading ?? !1), o = w("init"), s = xl(e.fetch, e.debounceTime || 10);
|
|
338
338
|
return q([() => e.fetch, () => e.manual], () => {
|
|
339
|
-
if (o.value !== "init" &&
|
|
339
|
+
if (o.value !== "init" && n.value) return;
|
|
340
340
|
const u = e.manual ?? !1;
|
|
341
|
-
e.fetch && !u && (
|
|
342
|
-
l.value =
|
|
341
|
+
e.fetch && !u && (n.value = !0, s().then((b) => {
|
|
342
|
+
l.value = zt(b), o.value = "success";
|
|
343
343
|
}).catch((b) => {
|
|
344
344
|
console.error(b), o.value = "error";
|
|
345
345
|
}).finally(() => {
|
|
346
|
-
|
|
346
|
+
n.value = !1;
|
|
347
347
|
}));
|
|
348
348
|
}, {
|
|
349
349
|
immediate: !0
|
|
350
350
|
}), () => {
|
|
351
|
-
const u =
|
|
352
|
-
return
|
|
351
|
+
const u = a.default?.();
|
|
352
|
+
return lt(J(u) ? u[0] : u, {
|
|
353
353
|
options: l.value,
|
|
354
|
-
notFoundContent: e.notFoundContent?.(
|
|
354
|
+
notFoundContent: e.notFoundContent?.(n.value)
|
|
355
355
|
});
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
|
-
function
|
|
360
|
-
const l =
|
|
361
|
-
function
|
|
359
|
+
function Yl(e, a) {
|
|
360
|
+
const l = at({});
|
|
361
|
+
function n() {
|
|
362
362
|
Object.assign(l, ae(ce(e)));
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
e[
|
|
366
|
-
e[
|
|
363
|
+
const s = a.find((u) => u.valueType === "dateRange");
|
|
364
|
+
s && o(s.name || "", e[s.rangeStartName || "start"] ? [
|
|
365
|
+
e[s.rangeStartName || "start"],
|
|
366
|
+
e[s.rangeEndName || "end"]
|
|
367
367
|
] : []);
|
|
368
368
|
}
|
|
369
369
|
q(() => e, () => {
|
|
370
|
-
|
|
370
|
+
n();
|
|
371
371
|
}, { deep: !0, immediate: !0 });
|
|
372
|
-
function o(
|
|
373
|
-
l[
|
|
372
|
+
function o(s, u) {
|
|
373
|
+
l[s] = u;
|
|
374
374
|
}
|
|
375
375
|
return {
|
|
376
376
|
formState: l,
|
|
377
|
-
resetFormState:
|
|
377
|
+
resetFormState: n,
|
|
378
378
|
changeFormState: o
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
const
|
|
381
|
+
const Ml = (e) => ({
|
|
382
382
|
[`${e.componentCls}-search`]: {
|
|
383
383
|
position: "relative",
|
|
384
384
|
display: "flex",
|
|
@@ -485,7 +485,7 @@ const Yl = (e) => ({
|
|
|
485
485
|
justifyContent: "center",
|
|
486
486
|
alignItems: "center"
|
|
487
487
|
}
|
|
488
|
-
}),
|
|
488
|
+
}), Je = [
|
|
489
489
|
{ value: "xxl", span: 4 },
|
|
490
490
|
{ value: "xl", span: 3 },
|
|
491
491
|
{ value: "lg", span: 2 },
|
|
@@ -493,40 +493,40 @@ const Yl = (e) => ({
|
|
|
493
493
|
{ value: "sm", span: 2 },
|
|
494
494
|
{ value: "xs", span: 1 }
|
|
495
495
|
];
|
|
496
|
-
function me(e,
|
|
497
|
-
return typeof
|
|
496
|
+
function me(e, a) {
|
|
497
|
+
return typeof a == "function" ? a(Z(e)) : Z(e).format(a);
|
|
498
498
|
}
|
|
499
|
-
function Ae(e,
|
|
500
|
-
return
|
|
499
|
+
function Ae(e, a) {
|
|
500
|
+
return a ? "YYYY-MM-DD HH:mm:ss" : e ?? "YYYY-MM-DD";
|
|
501
501
|
}
|
|
502
|
-
const
|
|
502
|
+
const bt = (e, a, l = "string") => {
|
|
503
503
|
if (J(e)) {
|
|
504
|
-
const [
|
|
505
|
-
let
|
|
506
|
-
if (Array.isArray(
|
|
507
|
-
const b =
|
|
504
|
+
const [n, o] = e;
|
|
505
|
+
let s, u;
|
|
506
|
+
if (Array.isArray(a) ? (s = a[0], u = a[1]) : typeof a == "object" && a.type === "mask" ? (s = a.format, u = a.format) : (s = a, u = a), l === "string") {
|
|
507
|
+
const b = n ? me(n, s) : "", f = o ? me(o, u) : "";
|
|
508
508
|
return [b, f];
|
|
509
509
|
}
|
|
510
|
-
return [Z(
|
|
510
|
+
return [Z(n), Z(o)];
|
|
511
511
|
}
|
|
512
512
|
};
|
|
513
|
-
function
|
|
513
|
+
function ql(e) {
|
|
514
514
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
|
|
515
515
|
}
|
|
516
516
|
const {
|
|
517
|
-
MonthPicker:
|
|
518
|
-
RangePicker:
|
|
519
|
-
YearPicker:
|
|
520
|
-
WeekPicker:
|
|
521
|
-
QuarterPicker:
|
|
522
|
-
} =
|
|
523
|
-
function
|
|
524
|
-
let
|
|
517
|
+
MonthPicker: Kl,
|
|
518
|
+
RangePicker: kl,
|
|
519
|
+
YearPicker: Vl,
|
|
520
|
+
WeekPicker: Xl,
|
|
521
|
+
QuarterPicker: _l
|
|
522
|
+
} = At;
|
|
523
|
+
function Gl(e) {
|
|
524
|
+
let a = e.reduce((l, n) => n.order !== void 0 ? Math.max(l, n.order) : l, 0);
|
|
525
525
|
return e.forEach((l) => {
|
|
526
|
-
l.order === void 0 && (
|
|
527
|
-
}), e.sort((l,
|
|
526
|
+
l.order === void 0 && (a += 1, l.order = a);
|
|
527
|
+
}), e.sort((l, n) => l.order - n.order), e;
|
|
528
528
|
}
|
|
529
|
-
const
|
|
529
|
+
const Ql = {
|
|
530
530
|
modalScroll: he.modalScroll,
|
|
531
531
|
formCols: {
|
|
532
532
|
type: Array,
|
|
@@ -540,180 +540,180 @@ const Gl = {
|
|
|
540
540
|
default: () => ({})
|
|
541
541
|
},
|
|
542
542
|
onSearch: Function
|
|
543
|
-
},
|
|
543
|
+
}, Ul = /* @__PURE__ */ ge({
|
|
544
544
|
name: "ProTableForm",
|
|
545
545
|
inheritAttrs: !1,
|
|
546
|
-
props:
|
|
546
|
+
props: Ql,
|
|
547
547
|
setup(e, {
|
|
548
|
-
slots:
|
|
548
|
+
slots: a,
|
|
549
549
|
expose: l
|
|
550
550
|
}) {
|
|
551
551
|
const {
|
|
552
|
-
wrapSSR:
|
|
552
|
+
wrapSSR: n,
|
|
553
553
|
hashId: o
|
|
554
|
-
} =
|
|
554
|
+
} = rt("ProTableForm", [Ml], e.prefixCls), s = Tt(), u = it(), {
|
|
555
555
|
formAutoRequest: b,
|
|
556
556
|
formConfig: f,
|
|
557
557
|
formActions: $,
|
|
558
|
-
screenWidth:
|
|
559
|
-
styles:
|
|
560
|
-
classNames:
|
|
561
|
-
} =
|
|
558
|
+
screenWidth: m,
|
|
559
|
+
styles: S,
|
|
560
|
+
classNames: v
|
|
561
|
+
} = Ke(), {
|
|
562
562
|
formState: i,
|
|
563
|
-
resetFormState:
|
|
563
|
+
resetFormState: x,
|
|
564
564
|
changeFormState: h
|
|
565
|
-
} =
|
|
565
|
+
} = Yl(e.defaultFormSearch, e.formCols), E = w(pe(f.value?.gap || 16)), A = T(() => {
|
|
566
566
|
if (f.value?.breakpoint && ne(f.value.breakpoint) && Object.keys(f.value.breakpoint).length)
|
|
567
567
|
return f.value?.breakpoint;
|
|
568
|
-
}),
|
|
568
|
+
}), F = w(f.value?.collapsed ?? f.value?.defaultCollapsed), N = T(() => De($.value?.reset) ? $.value?.reset : !b.value), L = T(() => A.value ? k(A.value, m.value) : H(f.value?.span, u.value)), K = T(() => f.value?.label);
|
|
569
569
|
q(() => f.value?.collapsed, (t) => {
|
|
570
|
-
|
|
570
|
+
F.value = t;
|
|
571
571
|
});
|
|
572
|
-
function k(t,
|
|
572
|
+
function k(t, r) {
|
|
573
573
|
let y = 4;
|
|
574
|
-
const g = Object.keys(t).map((
|
|
575
|
-
for (let
|
|
576
|
-
const c = g[
|
|
577
|
-
if (t[c] &&
|
|
574
|
+
const g = Object.keys(t).map((C) => Number(C)).filter((C) => !Number.isNaN(C)).sort((C, c) => c - C);
|
|
575
|
+
for (let C = 0; C < g.length; C += 1) {
|
|
576
|
+
const c = g[C];
|
|
577
|
+
if (t[c] && r >= c) {
|
|
578
578
|
y = t[c];
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
return y;
|
|
583
583
|
}
|
|
584
|
-
function H(t,
|
|
584
|
+
function H(t, r) {
|
|
585
585
|
let y = 4;
|
|
586
|
-
for (let g = 0; g <
|
|
587
|
-
const
|
|
588
|
-
if (
|
|
589
|
-
y = t?.[
|
|
586
|
+
for (let g = 0; g < Je.length; g += 1) {
|
|
587
|
+
const C = Je[g].value;
|
|
588
|
+
if (r[C]) {
|
|
589
|
+
y = t?.[C] || (e.modalScroll ? 3 : Je[g].span);
|
|
590
590
|
break;
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
return y;
|
|
594
594
|
}
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
}, X = (t,
|
|
595
|
+
const B = (t) => {
|
|
596
|
+
F.value = t;
|
|
597
|
+
}, X = (t, r, y) => (t + 1) % r === 0 ? {
|
|
598
598
|
...y,
|
|
599
599
|
marginRight: pe(0)
|
|
600
600
|
} : {
|
|
601
601
|
...y,
|
|
602
|
-
marginRight:
|
|
603
|
-
},
|
|
604
|
-
const t =
|
|
605
|
-
return
|
|
606
|
-
}, W = (t = !1,
|
|
607
|
-
(b.value || t) && e.onSearch?.(
|
|
608
|
-
}, Y = (t,
|
|
609
|
-
const g = i[
|
|
610
|
-
switch (
|
|
602
|
+
marginRight: E.value
|
|
603
|
+
}, O = () => {
|
|
604
|
+
const t = zt(i), r = e.formCols.find((C) => C.valueType === "text") || "", y = e.formCols.find((C) => C.valueType === "dateRange") || "", g = e.formCols.find((C) => C.valueType === "treeSelect");
|
|
605
|
+
return r && (t[r.name] = i[r.name] || r.initialValue || ""), y && (t[y.rangeStartName || "start"] = t[y.name] ? t[y.name][0] : "", t[y.rangeEndName || "end"] = t[y.name] ? t[y.name][1] : "", delete t[y.name]), g && (g?.name && J(i[g?.name]) && (t[g.name] = i[g.name].length ? i[g.name].map((C) => C[g.valueKey === "text" ? "label" : "value"]).join() : ""), g?.name && J(t[g?.name]) && (t[g.name] = t[g.name].length ? t[g.name].map((C) => C[g.valueKey === "text" ? "label" : "value"]) : "")), t;
|
|
606
|
+
}, W = (t = !1, r) => {
|
|
607
|
+
(b.value || t) && e.onSearch?.(O(), t ? r ? "reset" : "submit" : void 0);
|
|
608
|
+
}, Y = (t, r, y) => {
|
|
609
|
+
const g = i[r.name || ""];
|
|
610
|
+
switch (r.valueType) {
|
|
611
611
|
case "text":
|
|
612
|
-
h(
|
|
612
|
+
h(r.name || "", t || "");
|
|
613
613
|
break;
|
|
614
614
|
case "number":
|
|
615
|
-
h(
|
|
615
|
+
h(r.name || "", t || void 0);
|
|
616
616
|
break;
|
|
617
617
|
case "numberRange":
|
|
618
|
-
Ce(y?.key) && g && (g[y.key] = t, h(
|
|
618
|
+
Ce(y?.key) && g && (g[y.key] = t, h(r.name || "", g || []));
|
|
619
619
|
break;
|
|
620
620
|
case "select":
|
|
621
|
-
h(
|
|
621
|
+
h(r.name || "", t ?? void 0);
|
|
622
622
|
break;
|
|
623
623
|
case "treeSelect":
|
|
624
|
-
h(
|
|
624
|
+
h(r.name || "", t ?? (r.field?.treeCheckable || r.field?.multiple ? [] : null));
|
|
625
625
|
break;
|
|
626
626
|
case "date":
|
|
627
|
-
h(
|
|
627
|
+
h(r.name || "", t ? me(t, Ae(r.valueFormat, r.showTime)) : null);
|
|
628
628
|
break;
|
|
629
629
|
case "dateWeek":
|
|
630
|
-
h(
|
|
630
|
+
h(r.name || "", t ? me(t, "YYYY-wo") : null);
|
|
631
631
|
break;
|
|
632
632
|
case "dateMonth":
|
|
633
|
-
h(
|
|
633
|
+
h(r.name || "", t ? me(t, "YYYY-MM") : null);
|
|
634
634
|
break;
|
|
635
635
|
case "dateQuarter":
|
|
636
|
-
h(
|
|
636
|
+
h(r.name || "", t ? me(t, "YYYY-QQ") : null);
|
|
637
637
|
break;
|
|
638
638
|
case "dateYear":
|
|
639
|
-
h(
|
|
639
|
+
h(r.name || "", t ? me(t, "YYYY") : null);
|
|
640
640
|
break;
|
|
641
641
|
case "dateRange":
|
|
642
|
-
h(
|
|
642
|
+
h(r.name || "", t && J(t) && t.length === 2 ? bt(t, Ae(r.valueFormat, r.showTime)) : null);
|
|
643
643
|
break;
|
|
644
644
|
case "time":
|
|
645
|
-
h(
|
|
645
|
+
h(r.name || "", t ? me(t, r.valueFormat || "HH:mm:ss") : null);
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
|
-
|
|
648
|
+
r.valueType === "treeSelect" || r.valueType, W();
|
|
649
649
|
}, M = (t = !0) => {
|
|
650
|
-
|
|
650
|
+
x(), W(!0, t);
|
|
651
651
|
};
|
|
652
652
|
l({
|
|
653
|
-
getFormSearch: () =>
|
|
653
|
+
getFormSearch: () => O(),
|
|
654
654
|
resetForm: M
|
|
655
655
|
});
|
|
656
656
|
const ee = () => {
|
|
657
|
-
const t =
|
|
657
|
+
const t = s?.emptyText?.value;
|
|
658
658
|
if (t) {
|
|
659
|
-
const
|
|
659
|
+
const r = le(t), y = r ? pt(t) : wt(t || []);
|
|
660
660
|
return d("div", {
|
|
661
661
|
class: D(`${e.prefixCls}-search-empty-text`, o.value)
|
|
662
|
-
}, [
|
|
662
|
+
}, [r ? y : J(y) ? y.map((g) => lt(g)) : void 0]);
|
|
663
663
|
}
|
|
664
|
-
},
|
|
665
|
-
class: D(`${e.prefixCls}-search-buttons ${o.value}`,
|
|
666
|
-
style:
|
|
667
|
-
}, [N.value && d(
|
|
664
|
+
}, re = () => (!b.value || N.value) && d("div", {
|
|
665
|
+
class: D(`${e.prefixCls}-search-buttons ${o.value}`, v.value?.searchButtons),
|
|
666
|
+
style: S.value?.searchButtons
|
|
667
|
+
}, [N.value && d(ht, {
|
|
668
668
|
key: "reset",
|
|
669
669
|
onClick: () => M()
|
|
670
670
|
}, {
|
|
671
671
|
default: () => [$.value?.resetText || "重置"]
|
|
672
|
-
}), !b.value && d(
|
|
672
|
+
}), !b.value && d(ht, {
|
|
673
673
|
key: "submit",
|
|
674
674
|
loading: e.loading,
|
|
675
675
|
type: "primary",
|
|
676
676
|
onClick: () => W(!0)
|
|
677
677
|
}, {
|
|
678
678
|
default: () => [$.value?.searchText || "查询"]
|
|
679
|
-
})]),
|
|
679
|
+
})]), se = ({
|
|
680
680
|
formItemStyle: t = {},
|
|
681
|
-
collapsed:
|
|
681
|
+
collapsed: r,
|
|
682
682
|
collapseRender: y = !0
|
|
683
683
|
}) => d("div", {
|
|
684
684
|
style: {
|
|
685
685
|
...t,
|
|
686
|
-
...
|
|
686
|
+
...S.value?.searchControl
|
|
687
687
|
},
|
|
688
|
-
class: D(`${e.prefixCls}-search-control ${o.value}`,
|
|
688
|
+
class: D(`${e.prefixCls}-search-control ${o.value}`, v.value?.searchControl)
|
|
689
689
|
}, [d("div", {
|
|
690
|
-
class: D(`${e.prefixCls}-search-control-content ${o.value}`,
|
|
691
|
-
}, [
|
|
692
|
-
class: D(`${e.prefixCls}-search-control-text ${o.value}`,
|
|
693
|
-
style:
|
|
694
|
-
onClick: () =>
|
|
695
|
-
}, [
|
|
690
|
+
class: D(`${e.prefixCls}-search-control-content ${o.value}`, v.value?.searchContent)
|
|
691
|
+
}, [re(), f.value?.collapseRender !== !1 && y && d(we, null, [typeof f.value?.collapseRender == "function" ? f.value?.collapseRender(r) : d("span", {
|
|
692
|
+
class: D(`${e.prefixCls}-search-control-text ${o.value}`, v.value?.searchText),
|
|
693
|
+
style: S.value?.searchText,
|
|
694
|
+
onClick: () => B(!r)
|
|
695
|
+
}, [r ? "收起" : "展开", r ? d(el, null, null) : d(tl, null, null)])])])]);
|
|
696
696
|
function be(t) {
|
|
697
|
-
return t === void 0 ? void 0 : t ? d(
|
|
697
|
+
return t === void 0 ? void 0 : t ? d(Bt, {
|
|
698
698
|
size: "small",
|
|
699
|
-
indicator:
|
|
699
|
+
indicator: s?.indicator?.value
|
|
700
700
|
}, null) : ee();
|
|
701
701
|
}
|
|
702
|
-
function de(t,
|
|
703
|
-
return d(
|
|
702
|
+
function de(t, r) {
|
|
703
|
+
return d(Wl, Q(t.request, {
|
|
704
704
|
loading: t.loading,
|
|
705
705
|
notFoundContent: be
|
|
706
|
-
}),
|
|
707
|
-
default: () => [
|
|
706
|
+
}), ql(r) ? r : {
|
|
707
|
+
default: () => [r]
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
710
|
const Re = (t) => {
|
|
711
|
-
let
|
|
711
|
+
let r;
|
|
712
712
|
const y = b.value ? We.Search : We, g = ze(t.field || {}, "rules");
|
|
713
|
-
let
|
|
713
|
+
let C = null;
|
|
714
714
|
switch (t.valueType) {
|
|
715
715
|
case "text":
|
|
716
|
-
|
|
716
|
+
r = d(y, Q({
|
|
717
717
|
style: {
|
|
718
718
|
width: "100%"
|
|
719
719
|
},
|
|
@@ -725,7 +725,7 @@ const Gl = {
|
|
|
725
725
|
}, g), null);
|
|
726
726
|
break;
|
|
727
727
|
case "number":
|
|
728
|
-
|
|
728
|
+
r = d(Ue, Q({
|
|
729
729
|
style: {
|
|
730
730
|
width: "100%"
|
|
731
731
|
},
|
|
@@ -735,11 +735,11 @@ const Gl = {
|
|
|
735
735
|
}, g), null);
|
|
736
736
|
break;
|
|
737
737
|
case "numberRange":
|
|
738
|
-
|
|
738
|
+
r = d(We.Group, {
|
|
739
739
|
compact: !0,
|
|
740
740
|
class: D(o.value, `${e.prefixCls}-search-input-compact`)
|
|
741
741
|
}, {
|
|
742
|
-
default: () => [d(
|
|
742
|
+
default: () => [d(Ue, {
|
|
743
743
|
value: i[t.name]?.[0],
|
|
744
744
|
onChange: (c) => Y(c, t, {
|
|
745
745
|
key: 0
|
|
@@ -748,7 +748,7 @@ const Gl = {
|
|
|
748
748
|
}, null), d(We, {
|
|
749
749
|
disabled: !0,
|
|
750
750
|
placeholder: "~"
|
|
751
|
-
}, null), d(
|
|
751
|
+
}, null), d(Ue, {
|
|
752
752
|
value: i[t.name]?.[1],
|
|
753
753
|
onChange: (c) => Y(c, t, {
|
|
754
754
|
key: 1
|
|
@@ -758,7 +758,7 @@ const Gl = {
|
|
|
758
758
|
});
|
|
759
759
|
break;
|
|
760
760
|
case "select":
|
|
761
|
-
|
|
761
|
+
C = d(Al, Q({
|
|
762
762
|
style: {
|
|
763
763
|
width: "100%"
|
|
764
764
|
},
|
|
@@ -774,7 +774,7 @@ const Gl = {
|
|
|
774
774
|
}, g), null);
|
|
775
775
|
break;
|
|
776
776
|
case "treeSelect":
|
|
777
|
-
|
|
777
|
+
C = d(Il, Q({
|
|
778
778
|
style: {
|
|
779
779
|
width: "100%"
|
|
780
780
|
},
|
|
@@ -788,7 +788,7 @@ const Gl = {
|
|
|
788
788
|
}, g), null);
|
|
789
789
|
break;
|
|
790
790
|
case "date":
|
|
791
|
-
|
|
791
|
+
r = d(At, Q({
|
|
792
792
|
style: {
|
|
793
793
|
width: "100%"
|
|
794
794
|
},
|
|
@@ -803,7 +803,7 @@ const Gl = {
|
|
|
803
803
|
}, g), null);
|
|
804
804
|
break;
|
|
805
805
|
case "dateWeek":
|
|
806
|
-
|
|
806
|
+
r = d(Xl, Q({
|
|
807
807
|
style: {
|
|
808
808
|
width: "100%"
|
|
809
809
|
},
|
|
@@ -815,7 +815,7 @@ const Gl = {
|
|
|
815
815
|
}, g), null);
|
|
816
816
|
break;
|
|
817
817
|
case "dateMonth":
|
|
818
|
-
|
|
818
|
+
r = d(Kl, Q({
|
|
819
819
|
style: {
|
|
820
820
|
width: "100%"
|
|
821
821
|
},
|
|
@@ -827,7 +827,7 @@ const Gl = {
|
|
|
827
827
|
}, g), null);
|
|
828
828
|
break;
|
|
829
829
|
case "dateQuarter":
|
|
830
|
-
|
|
830
|
+
r = d(_l, Q({
|
|
831
831
|
style: {
|
|
832
832
|
width: "100%"
|
|
833
833
|
},
|
|
@@ -839,7 +839,7 @@ const Gl = {
|
|
|
839
839
|
}, g), null);
|
|
840
840
|
break;
|
|
841
841
|
case "dateYear":
|
|
842
|
-
|
|
842
|
+
r = d(Vl, Q({
|
|
843
843
|
style: {
|
|
844
844
|
width: "100%"
|
|
845
845
|
},
|
|
@@ -851,11 +851,11 @@ const Gl = {
|
|
|
851
851
|
}, g), null);
|
|
852
852
|
break;
|
|
853
853
|
case "dateRange":
|
|
854
|
-
|
|
854
|
+
r = d(kl, Q({
|
|
855
855
|
style: {
|
|
856
856
|
width: "100%"
|
|
857
857
|
},
|
|
858
|
-
value: i[t.name] && J(i[t.name]) && i[t.name]?.length === 2 ?
|
|
858
|
+
value: i[t.name] && J(i[t.name]) && i[t.name]?.length === 2 ? bt(i[t.name], Ae(t.valueFormat, t.showTime), "dayjs") : void 0,
|
|
859
859
|
getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
|
|
860
860
|
placeholder: t.placeholder || ["开始日期", "结束日期"],
|
|
861
861
|
format: Ae(t.valueFormat, t.showTime),
|
|
@@ -864,7 +864,7 @@ const Gl = {
|
|
|
864
864
|
}, g), null);
|
|
865
865
|
break;
|
|
866
866
|
case "time":
|
|
867
|
-
|
|
867
|
+
r = d(Fl, Q({
|
|
868
868
|
style: {
|
|
869
869
|
width: "100%"
|
|
870
870
|
},
|
|
@@ -878,73 +878,73 @@ const Gl = {
|
|
|
878
878
|
}, g), null);
|
|
879
879
|
break;
|
|
880
880
|
}
|
|
881
|
-
return t.valueType && ["select", "treeSelect"].includes(t.valueType) && (
|
|
881
|
+
return t.valueType && ["select", "treeSelect"].includes(t.valueType) && (r = t.request ? de(t, C) : C), r;
|
|
882
882
|
}, oe = ({
|
|
883
883
|
formItemStyle: t = {},
|
|
884
|
-
item:
|
|
884
|
+
item: r
|
|
885
885
|
}) => {
|
|
886
|
-
const y = le(
|
|
886
|
+
const y = le(r) ? r.props?.label : r.label, g = (le(r) ? r.props?.labelWidth : r.labelWidth) || K.value?.width, C = (le(r) ? r.props?.labelAlign : r.labelAlign) || K.value?.align;
|
|
887
887
|
return d("div", {
|
|
888
|
-
class: D(`${e.prefixCls}-search-item`, o.value,
|
|
888
|
+
class: D(`${e.prefixCls}-search-item`, o.value, v.value?.searchItem),
|
|
889
889
|
style: {
|
|
890
890
|
...t,
|
|
891
891
|
gap: K.value?.gap ? pe(K.value?.gap) : void 0,
|
|
892
|
-
...
|
|
892
|
+
...S.value?.searchItem || {}
|
|
893
893
|
}
|
|
894
894
|
}, [y && d("div", {
|
|
895
|
-
class: D(`${e.prefixCls}-search-item-label`, K.value?.colon === !1 && `${e.prefixCls}-search-item-label-no-colon`,
|
|
895
|
+
class: D(`${e.prefixCls}-search-item-label`, K.value?.colon === !1 && `${e.prefixCls}-search-item-label-no-colon`, C && `${e.prefixCls}-search-item-label-${C}`),
|
|
896
896
|
style: {
|
|
897
897
|
width: g ? pe(g) : void 0
|
|
898
898
|
}
|
|
899
899
|
}, [y]), d("div", {
|
|
900
900
|
class: D(`${e.prefixCls}-search-item-children`)
|
|
901
|
-
}, [le(
|
|
901
|
+
}, [le(r) ? r : Re(r)])]);
|
|
902
902
|
}, Pe = () => {
|
|
903
|
-
let t =
|
|
903
|
+
let t = a.default?.() || [];
|
|
904
904
|
t.length === 1 && t[0].type === "template" && (t = t[0]?.children || []);
|
|
905
|
-
const
|
|
905
|
+
const r = Gl([...e.formCols, ...t.map((g) => ({
|
|
906
906
|
...g,
|
|
907
907
|
order: g.props?.order || void 0
|
|
908
908
|
}))]), y = {
|
|
909
|
-
width: `calc((100% - (${L.value - 1} * ${
|
|
909
|
+
width: `calc((100% - (${L.value - 1} * ${E.value})) / ${L.value})`
|
|
910
910
|
};
|
|
911
|
-
return
|
|
912
|
-
const c = X(
|
|
913
|
-
return
|
|
911
|
+
return r.map((g, C) => {
|
|
912
|
+
const c = X(C, L.value, y);
|
|
913
|
+
return r.length < L.value || F.value ? d(we, null, [oe({
|
|
914
914
|
formItemStyle: c,
|
|
915
915
|
item: g
|
|
916
|
-
}),
|
|
916
|
+
}), C === r.length - 1 && se({
|
|
917
917
|
formItemStyle: {
|
|
918
918
|
flex: 1,
|
|
919
919
|
justifyContent: "flex-end"
|
|
920
920
|
},
|
|
921
|
-
collapsed:
|
|
922
|
-
collapseRender: !!
|
|
923
|
-
})]) : d(we, null, [
|
|
921
|
+
collapsed: F.value,
|
|
922
|
+
collapseRender: !!F.value
|
|
923
|
+
})]) : d(we, null, [C < L.value - 1 && oe({
|
|
924
924
|
formItemStyle: c,
|
|
925
925
|
item: g
|
|
926
|
-
}),
|
|
926
|
+
}), C === L.value - 1 && (L.value - 1 === 0 || r.length === L.value) && oe({
|
|
927
927
|
formItemStyle: c,
|
|
928
928
|
item: g
|
|
929
|
-
}),
|
|
929
|
+
}), C === L.value - 1 && r.length >= L.value && se({
|
|
930
930
|
formItemStyle: {
|
|
931
931
|
flex: 1,
|
|
932
932
|
justifyContent: "flex-end"
|
|
933
933
|
},
|
|
934
934
|
collapsed: !1,
|
|
935
|
-
collapseRender:
|
|
935
|
+
collapseRender: r.length !== L.value
|
|
936
936
|
})]);
|
|
937
937
|
});
|
|
938
938
|
};
|
|
939
939
|
return () => {
|
|
940
940
|
const t = e.cardBordered && `${e.prefixCls}-search-border`;
|
|
941
|
-
return
|
|
942
|
-
class: D(
|
|
943
|
-
style:
|
|
941
|
+
return n(d("div", {
|
|
942
|
+
class: D(v.value?.search, o.value, `${e.prefixCls}-search`, t, o.value, f.value?.className),
|
|
943
|
+
style: S.value?.search
|
|
944
944
|
}, [Pe()]));
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
}), { useInjectContext:
|
|
947
|
+
}), { useInjectContext: Et, provideContext: Jl } = Dt("scrollbar"), Te = 4, Zl = {
|
|
948
948
|
vertical: {
|
|
949
949
|
offset: "offsetHeight",
|
|
950
950
|
scroll: "scrollTop",
|
|
@@ -965,10 +965,10 @@ const Gl = {
|
|
|
965
965
|
client: "clientX",
|
|
966
966
|
direction: "left"
|
|
967
967
|
}
|
|
968
|
-
},
|
|
969
|
-
[l.size]:
|
|
968
|
+
}, ea = ({ move: e, size: a, bar: l }) => ({
|
|
969
|
+
[l.size]: a,
|
|
970
970
|
transform: `translate${l.axis}(${e}%)`
|
|
971
|
-
}),
|
|
971
|
+
}), ta = {
|
|
972
972
|
vertical: Boolean,
|
|
973
973
|
size: String,
|
|
974
974
|
move: Number,
|
|
@@ -981,84 +981,84 @@ const Gl = {
|
|
|
981
981
|
type: [Object],
|
|
982
982
|
default: () => ({})
|
|
983
983
|
}
|
|
984
|
-
},
|
|
985
|
-
props:
|
|
984
|
+
}, tt = /* @__PURE__ */ ge({
|
|
985
|
+
props: ta,
|
|
986
986
|
setup(e) {
|
|
987
987
|
const {
|
|
988
|
-
tableHeaderHeight:
|
|
988
|
+
tableHeaderHeight: a,
|
|
989
989
|
hashId: l,
|
|
990
|
-
wrapElement:
|
|
990
|
+
wrapElement: n,
|
|
991
991
|
scrollbarElement: o,
|
|
992
|
-
className:
|
|
993
|
-
} =
|
|
994
|
-
let
|
|
995
|
-
const h = T(() =>
|
|
992
|
+
className: s
|
|
993
|
+
} = Et(), u = w(), b = w(), f = w({}), $ = w(!1);
|
|
994
|
+
let m = !1, S = !1, v = 0, i = 0, x = Tl ? document.onselectstart : null;
|
|
995
|
+
const h = T(() => Zl[e.vertical ? "vertical" : "horizontal"]), E = T(() => ea({
|
|
996
996
|
size: e.size,
|
|
997
997
|
move: e.move,
|
|
998
998
|
bar: h.value
|
|
999
|
-
})),
|
|
999
|
+
})), A = T(() => (
|
|
1000
1000
|
// offsetRatioX = original width of thumb / current width of thumb / ratioX
|
|
1001
1001
|
// offsetRatioY = original height of thumb / current height of thumb / ratioY
|
|
1002
1002
|
// instance height = wrap height - GAP
|
|
1003
|
-
u.value[h.value.offset] ** 2 /
|
|
1004
|
-
)),
|
|
1005
|
-
if (
|
|
1006
|
-
window.getSelection()?.removeAllRanges(), L(
|
|
1007
|
-
const W =
|
|
1008
|
-
W && (f.value[h.value.axis] = W[h.value.offset] - (
|
|
1009
|
-
}, N = (
|
|
1010
|
-
if (!b.value || !u.value || !
|
|
1011
|
-
const W = Math.abs(
|
|
1012
|
-
|
|
1003
|
+
u.value[h.value.offset] ** 2 / n.value[h.value.scrollSize] / e.ratio / b.value[h.value.offset]
|
|
1004
|
+
)), F = (O) => {
|
|
1005
|
+
if (O.stopPropagation(), O.ctrlKey || [1, 2].includes(O.button)) return;
|
|
1006
|
+
window.getSelection()?.removeAllRanges(), L(O);
|
|
1007
|
+
const W = O.currentTarget;
|
|
1008
|
+
W && (f.value[h.value.axis] = W[h.value.offset] - (O[h.value.client] - W.getBoundingClientRect()[h.value.direction]));
|
|
1009
|
+
}, N = (O) => {
|
|
1010
|
+
if (!b.value || !u.value || !n.value) return;
|
|
1011
|
+
const W = Math.abs(O.target.getBoundingClientRect()[h.value.direction] - O[h.value.client]), Y = b.value[h.value.offset] / 2, M = (W - Y) * 100 * A.value / u.value[h.value.offset];
|
|
1012
|
+
n.value[h.value.scroll] = M * n.value[h.value.scrollSize] / 100;
|
|
1013
1013
|
};
|
|
1014
|
-
function L(
|
|
1015
|
-
|
|
1014
|
+
function L(O) {
|
|
1015
|
+
n.value && (O.stopImmediatePropagation(), m = !0, v = n.value.scrollHeight, i = n.value.scrollWidth, document.addEventListener("mousemove", K), document.addEventListener("mouseup", k), x = document.onselectstart, document.onselectstart = () => !1);
|
|
1016
1016
|
}
|
|
1017
|
-
function K(
|
|
1018
|
-
if (!
|
|
1017
|
+
function K(O) {
|
|
1018
|
+
if (!n.value || !u.value || !b.value || m === !1) return;
|
|
1019
1019
|
const W = f.value[h.value.axis];
|
|
1020
1020
|
if (!W) return;
|
|
1021
|
-
const Y = (u.value.getBoundingClientRect()[h.value.direction] -
|
|
1022
|
-
h.value.scroll === "scrollLeft" ?
|
|
1021
|
+
const Y = (u.value.getBoundingClientRect()[h.value.direction] - O[h.value.client]) * -1, M = b.value[h.value.offset] - W, ee = (Y - M) * 100 * A.value / u.value[h.value.offset];
|
|
1022
|
+
h.value.scroll === "scrollLeft" ? n.value[h.value.scroll] = ee * i / 100 : n.value[h.value.scroll] = ee * v / 100;
|
|
1023
1023
|
}
|
|
1024
1024
|
function k() {
|
|
1025
|
-
|
|
1025
|
+
m = !1, f.value[h.value.axis] = 0, document.removeEventListener("mousemove", K), document.removeEventListener("mouseup", k), X(), S && ($.value = !1);
|
|
1026
1026
|
}
|
|
1027
1027
|
const H = () => {
|
|
1028
|
-
|
|
1029
|
-
},
|
|
1030
|
-
|
|
1028
|
+
S = !1, $.value = !!e.size;
|
|
1029
|
+
}, B = () => {
|
|
1030
|
+
S = !0, $.value = m;
|
|
1031
1031
|
};
|
|
1032
|
-
|
|
1032
|
+
Qt(() => {
|
|
1033
1033
|
X(), document.removeEventListener("mouseup", k);
|
|
1034
1034
|
});
|
|
1035
1035
|
function X() {
|
|
1036
|
-
document.onselectstart !==
|
|
1036
|
+
document.onselectstart !== x && (document.onselectstart = x);
|
|
1037
1037
|
}
|
|
1038
|
-
return
|
|
1039
|
-
const
|
|
1040
|
-
height: `calc(100% - ${pe(
|
|
1041
|
-
top: pe(
|
|
1038
|
+
return mt(o, "mousemove", H), mt(o, "mouseleave", B), () => {
|
|
1039
|
+
const O = h.value.key === "vertical" ? {
|
|
1040
|
+
height: `calc(100% - ${pe(a.value + 1)})`,
|
|
1041
|
+
top: pe(a.value + 1)
|
|
1042
1042
|
} : {};
|
|
1043
1043
|
return d("div", {
|
|
1044
1044
|
ref: u,
|
|
1045
1045
|
style: {
|
|
1046
1046
|
...e.barStyle,
|
|
1047
|
-
...
|
|
1047
|
+
...O
|
|
1048
1048
|
},
|
|
1049
|
-
class: [`${
|
|
1049
|
+
class: [`${s}-bar`, "is-" + h.value.key, l.value],
|
|
1050
1050
|
onMousedown: N
|
|
1051
1051
|
}, [d("div", {
|
|
1052
1052
|
ref: b,
|
|
1053
|
-
class: `${
|
|
1054
|
-
style:
|
|
1055
|
-
onMousedown:
|
|
1053
|
+
class: `${s}-thumb ${l.value}`,
|
|
1054
|
+
style: E.value,
|
|
1055
|
+
onMousedown: F
|
|
1056
1056
|
}, null)]);
|
|
1057
1057
|
};
|
|
1058
1058
|
}
|
|
1059
1059
|
});
|
|
1060
|
-
|
|
1061
|
-
const
|
|
1060
|
+
tt.inheritAttrs = !1;
|
|
1061
|
+
const la = {
|
|
1062
1062
|
always: {
|
|
1063
1063
|
type: Boolean,
|
|
1064
1064
|
default: !0
|
|
@@ -1074,46 +1074,48 @@ const ta = {
|
|
|
1074
1074
|
type: [Object],
|
|
1075
1075
|
default: () => ({})
|
|
1076
1076
|
}
|
|
1077
|
-
},
|
|
1077
|
+
}, aa = /* @__PURE__ */ ge({
|
|
1078
1078
|
inheritAttrs: !1,
|
|
1079
|
-
props:
|
|
1079
|
+
props: la,
|
|
1080
1080
|
setup(e, {
|
|
1081
|
-
expose:
|
|
1081
|
+
expose: a
|
|
1082
1082
|
}) {
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1083
|
+
const {
|
|
1084
|
+
tableScrollState: l
|
|
1085
|
+
} = Ke(), n = Et(), o = w(0), s = w(0), u = w(""), b = w(""), f = w(1), $ = w(1), m = (v) => {
|
|
1086
|
+
if (v) {
|
|
1087
|
+
const i = v.offsetHeight - Te, x = v.offsetWidth - Te;
|
|
1088
|
+
s.value = v.scrollTop * 100 / i * f.value, o.value = v.scrollLeft * 100 / x * $.value;
|
|
1087
1089
|
}
|
|
1088
|
-
},
|
|
1089
|
-
const
|
|
1090
|
-
if (!
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1090
|
+
}, S = () => {
|
|
1091
|
+
const v = n?.wrapElement;
|
|
1092
|
+
if (!v?.value) return;
|
|
1093
|
+
const i = v.value.offsetHeight - Te, x = v.value.offsetWidth - Te, h = i ** 2 / v.value.scrollHeight, E = x ** 2 / v.value.scrollWidth, A = Math.max(h, e.minSize), F = Math.max(E, e.minSize);
|
|
1094
|
+
f.value = h / (i - h) / (A / (i - A)), $.value = E / (x - E) / (F / (x - F)), b.value = A + Te < i ? `${A}px` : "", u.value = F + Te < x ? `${F}px` : "";
|
|
1093
1095
|
};
|
|
1094
|
-
return
|
|
1095
|
-
|
|
1096
|
-
|
|
1096
|
+
return nt(() => {
|
|
1097
|
+
ot(() => {
|
|
1098
|
+
S();
|
|
1097
1099
|
});
|
|
1098
|
-
}),
|
|
1099
|
-
update:
|
|
1100
|
-
handleScroll:
|
|
1101
|
-
}), () => d(we, null, [d(
|
|
1102
|
-
move:
|
|
1100
|
+
}), a({
|
|
1101
|
+
update: S,
|
|
1102
|
+
handleScroll: m
|
|
1103
|
+
}), () => d(we, null, [d(tt, {
|
|
1104
|
+
move: o.value,
|
|
1103
1105
|
barStyle: e.barStyle.x,
|
|
1104
|
-
ratio:
|
|
1105
|
-
size:
|
|
1106
|
+
ratio: $.value,
|
|
1107
|
+
size: u.value,
|
|
1106
1108
|
always: e.always
|
|
1107
|
-
}, null), d(
|
|
1108
|
-
move:
|
|
1109
|
+
}, null), !!l.value.y && d(tt, {
|
|
1110
|
+
move: s.value,
|
|
1109
1111
|
barStyle: e.barStyle.y,
|
|
1110
|
-
ratio:
|
|
1111
|
-
size:
|
|
1112
|
+
ratio: f.value,
|
|
1113
|
+
size: b.value,
|
|
1112
1114
|
vertical: !0,
|
|
1113
1115
|
always: e.always
|
|
1114
1116
|
}, null)]);
|
|
1115
1117
|
}
|
|
1116
|
-
}),
|
|
1118
|
+
}), na = (e) => ({
|
|
1117
1119
|
[`${e.componentCls}`]: {
|
|
1118
1120
|
lineHeight: 1,
|
|
1119
1121
|
"&-with-after": {
|
|
@@ -1188,31 +1190,31 @@ const ta = {
|
|
|
1188
1190
|
}
|
|
1189
1191
|
}
|
|
1190
1192
|
});
|
|
1191
|
-
function
|
|
1193
|
+
function oa(e) {
|
|
1192
1194
|
if (le(e))
|
|
1193
1195
|
return e;
|
|
1194
1196
|
if (e) {
|
|
1195
|
-
const
|
|
1197
|
+
const a = e, {
|
|
1196
1198
|
icon: l,
|
|
1197
|
-
tooltip:
|
|
1199
|
+
tooltip: n,
|
|
1198
1200
|
onClick: o,
|
|
1199
|
-
key:
|
|
1200
|
-
} =
|
|
1201
|
-
return l &&
|
|
1202
|
-
title:
|
|
1203
|
-
key:
|
|
1201
|
+
key: s
|
|
1202
|
+
} = a;
|
|
1203
|
+
return l && n ? d($e, {
|
|
1204
|
+
title: n,
|
|
1205
|
+
key: s
|
|
1204
1206
|
}, {
|
|
1205
1207
|
default: () => [d("span", {
|
|
1206
|
-
key:
|
|
1208
|
+
key: s,
|
|
1207
1209
|
onClick: () => {
|
|
1208
|
-
o && o(
|
|
1210
|
+
o && o(s);
|
|
1209
1211
|
}
|
|
1210
1212
|
}, [l])]
|
|
1211
1213
|
}) : l;
|
|
1212
1214
|
}
|
|
1213
1215
|
return null;
|
|
1214
1216
|
}
|
|
1215
|
-
const
|
|
1217
|
+
const Lt = /* @__PURE__ */ ge({
|
|
1216
1218
|
props: {
|
|
1217
1219
|
actions: [Array],
|
|
1218
1220
|
settings: [Array],
|
|
@@ -1225,142 +1227,142 @@ const Et = /* @__PURE__ */ ge({
|
|
|
1225
1227
|
},
|
|
1226
1228
|
setup(e) {
|
|
1227
1229
|
const {
|
|
1228
|
-
wrapSSR:
|
|
1230
|
+
wrapSSR: a,
|
|
1229
1231
|
hashId: l
|
|
1230
|
-
} =
|
|
1232
|
+
} = rt("ListToolBar", [na], e.prefixCls), n = w(), {
|
|
1231
1233
|
height: o
|
|
1232
|
-
} =
|
|
1234
|
+
} = wl(n), s = it(), {
|
|
1233
1235
|
isMobile: u,
|
|
1234
1236
|
tableListToolsHeight: b,
|
|
1235
1237
|
classNames: f,
|
|
1236
1238
|
styles: $
|
|
1237
|
-
} =
|
|
1238
|
-
|
|
1239
|
+
} = Ke();
|
|
1240
|
+
yt(() => {
|
|
1239
1241
|
b.value = o.value || 0;
|
|
1240
1242
|
});
|
|
1241
|
-
const
|
|
1243
|
+
const m = T(() => !!(e.headerTitleTip || e.headerTitle)), S = Ne(() => {
|
|
1242
1244
|
if (!Array.isArray(e.actions) || e.actions?.length < 1)
|
|
1243
1245
|
return {
|
|
1244
1246
|
left: null,
|
|
1245
1247
|
right: null
|
|
1246
1248
|
};
|
|
1247
|
-
const
|
|
1249
|
+
const A = e.actions.filter((N) => le(N)).filter((N) => (N?.props?.placement || e.actionsPlacement) === "left"), F = e.actions.filter((N) => le(N)).filter((N) => (N?.props?.placement || e.actionsPlacement) === "right");
|
|
1248
1250
|
return {
|
|
1249
|
-
left:
|
|
1251
|
+
left: A.length ? d("div", {
|
|
1250
1252
|
class: `${e.prefixCls}-actions ${l.value}`
|
|
1251
|
-
}, [
|
|
1252
|
-
right:
|
|
1253
|
+
}, [A]) : null,
|
|
1254
|
+
right: F.length ? d("div", {
|
|
1253
1255
|
class: `${e.prefixCls}-actions ${l.value}`
|
|
1254
|
-
}, [
|
|
1256
|
+
}, [F]) : null
|
|
1255
1257
|
};
|
|
1256
|
-
}, [() => e.actions, () => e.actionsPlacement]),
|
|
1257
|
-
if (!
|
|
1258
|
+
}, [() => e.actions, () => e.actionsPlacement]), v = T(() => !!(e.headerTitleTip || e.headerTitle || S.value.left)), i = T(() => !!(e.settings?.length || S.value.right)), x = Ne(() => {
|
|
1259
|
+
if (!v.value && i.value)
|
|
1258
1260
|
return d("div", {
|
|
1259
1261
|
class: `${e.prefixCls}-left ${l.value}`
|
|
1260
1262
|
}, null);
|
|
1261
|
-
const
|
|
1262
|
-
return
|
|
1263
|
-
class:
|
|
1263
|
+
const A = S.value.left, F = D(`${e.prefixCls}-left ${l.value}`, f.value?.toolbarLeft), N = $.value?.toolbarLeft;
|
|
1264
|
+
return m.value ? d("div", {
|
|
1265
|
+
class: F,
|
|
1264
1266
|
style: N
|
|
1265
1267
|
}, [d("div", {
|
|
1266
1268
|
class: `${e.prefixCls}-title ${l.value}`
|
|
1267
1269
|
}, [e.headerTitle, e.headerTitleTip && d($e, {
|
|
1268
1270
|
title: e.titleTipText
|
|
1269
1271
|
}, {
|
|
1270
|
-
default: () => [De(e.headerTitleTip) && e.headerTitleTip ? d(
|
|
1271
|
-
})]),
|
|
1272
|
-
class:
|
|
1272
|
+
default: () => [De(e.headerTitleTip) && e.headerTitleTip ? d(ll, null, null) : e.headerTitleTip]
|
|
1273
|
+
})]), A]) : d("div", {
|
|
1274
|
+
class: F,
|
|
1273
1275
|
style: N
|
|
1274
|
-
}, [
|
|
1275
|
-
}, [() =>
|
|
1276
|
+
}, [A]);
|
|
1277
|
+
}, [() => v.value, () => i.value, () => m.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.headerTitleTip]), h = Ne(() => {
|
|
1276
1278
|
if (!i.value) return null;
|
|
1277
|
-
const
|
|
1279
|
+
const A = S.value.right;
|
|
1278
1280
|
return d("div", {
|
|
1279
1281
|
class: D(`${e.prefixCls}-right ${l.value}`, f.value?.toolbarRight),
|
|
1280
1282
|
style: {
|
|
1281
|
-
alignItems:
|
|
1282
|
-
flexDirection:
|
|
1283
|
+
alignItems: s.value.lg ? "center" : "flex-end",
|
|
1284
|
+
flexDirection: s.value.lg ? "row" : "column",
|
|
1283
1285
|
...$.value?.toolbarRight || {}
|
|
1284
1286
|
}
|
|
1285
|
-
}, [
|
|
1287
|
+
}, [A, e.settings?.length ? d("div", {
|
|
1286
1288
|
class: D(`${e.prefixCls}-setting-items`, l.value)
|
|
1287
|
-
}, [e.settings.map((
|
|
1288
|
-
const L =
|
|
1289
|
+
}, [e.settings.map((F, N) => {
|
|
1290
|
+
const L = oa(F);
|
|
1289
1291
|
return d("div", {
|
|
1290
1292
|
key: N,
|
|
1291
1293
|
class: D(`${e.prefixCls}-setting-item`, l.value)
|
|
1292
1294
|
}, [L]);
|
|
1293
1295
|
})]) : null]);
|
|
1294
|
-
}, [() =>
|
|
1295
|
-
if (!i.value && !
|
|
1296
|
-
const
|
|
1296
|
+
}, [() => s.value, () => i.value, () => e.prefixCls, () => m.value, () => S.value, () => e.settings]), E = Ne(() => {
|
|
1297
|
+
if (!i.value && !v.value) return null;
|
|
1298
|
+
const A = {
|
|
1297
1299
|
[`${l.value}`]: !0,
|
|
1298
1300
|
[`${e.prefixCls}-container`]: !0,
|
|
1299
1301
|
[`${e.prefixCls}-container-mobile`]: u.value
|
|
1300
1302
|
};
|
|
1301
1303
|
return d("div", {
|
|
1302
|
-
class:
|
|
1303
|
-
}, [
|
|
1304
|
-
}, [() => u.value, () =>
|
|
1305
|
-
return () =>
|
|
1306
|
-
ref:
|
|
1304
|
+
class: A
|
|
1305
|
+
}, [x.value, h.value]);
|
|
1306
|
+
}, [() => u.value, () => v.value, () => i.value, () => x.value, () => e.prefixCls, () => h.value]);
|
|
1307
|
+
return () => a(d("div", {
|
|
1308
|
+
ref: n,
|
|
1307
1309
|
class: D(`${e.prefixCls} ${l.value}`, e.listToolAfter && `${e.prefixCls}-with-after`, f.value?.toolbar),
|
|
1308
1310
|
style: $.value?.toolbar
|
|
1309
|
-
}, [
|
|
1311
|
+
}, [E.value, e.listToolAfter && d("div", {
|
|
1310
1312
|
class: D(`${e.prefixCls}-after ${l.value}`, f.value?.toolbarAfter),
|
|
1311
1313
|
style: $.value?.toolbarAfter
|
|
1312
1314
|
}, [e.listToolAfter])]));
|
|
1313
1315
|
}
|
|
1314
1316
|
});
|
|
1315
|
-
|
|
1316
|
-
const
|
|
1317
|
+
Lt.inheritAttrs = !1;
|
|
1318
|
+
const jt = /* @__PURE__ */ ge({
|
|
1317
1319
|
setup() {
|
|
1318
1320
|
const {
|
|
1319
1321
|
isFullscreen: e
|
|
1320
|
-
} =
|
|
1322
|
+
} = It();
|
|
1321
1323
|
return () => e.value ? d($e, {
|
|
1322
1324
|
title: "退出全屏"
|
|
1323
1325
|
}, {
|
|
1324
|
-
default: () => [d(
|
|
1326
|
+
default: () => [d(al, null, null)]
|
|
1325
1327
|
}) : d($e, {
|
|
1326
1328
|
title: "全屏"
|
|
1327
1329
|
}, {
|
|
1328
|
-
default: () => [d(
|
|
1330
|
+
default: () => [d(nl, null, null)]
|
|
1329
1331
|
});
|
|
1330
1332
|
}
|
|
1331
1333
|
});
|
|
1332
|
-
function
|
|
1334
|
+
function ia() {
|
|
1333
1335
|
return {
|
|
1334
1336
|
reload: {
|
|
1335
1337
|
text: "刷新",
|
|
1336
|
-
icon: d(
|
|
1338
|
+
icon: d(ol, null, null)
|
|
1337
1339
|
},
|
|
1338
1340
|
fullScreen: {
|
|
1339
1341
|
text: "全屏",
|
|
1340
|
-
icon: d(
|
|
1342
|
+
icon: d(jt, null, null)
|
|
1341
1343
|
}
|
|
1342
1344
|
};
|
|
1343
1345
|
}
|
|
1344
|
-
function
|
|
1345
|
-
return
|
|
1346
|
-
const
|
|
1347
|
-
if (!
|
|
1346
|
+
function ra(e, a) {
|
|
1347
|
+
return Rt(e).filter((l) => l).map((l) => {
|
|
1348
|
+
const n = e[l];
|
|
1349
|
+
if (!n)
|
|
1348
1350
|
return null;
|
|
1349
|
-
let o =
|
|
1351
|
+
let o = n === !0 ? a[l] : () => n?.();
|
|
1350
1352
|
if (typeof o != "function" && (o = () => {
|
|
1351
1353
|
}), l === "fullScreen")
|
|
1352
1354
|
return d("span", {
|
|
1353
1355
|
key: l,
|
|
1354
1356
|
onClick: o
|
|
1355
|
-
}, [d(
|
|
1356
|
-
const
|
|
1357
|
-
return
|
|
1357
|
+
}, [d(jt, null, null)]);
|
|
1358
|
+
const s = ia()[l];
|
|
1359
|
+
return s ? d("span", {
|
|
1358
1360
|
key: l,
|
|
1359
1361
|
onClick: o
|
|
1360
1362
|
}, [d($e, {
|
|
1361
|
-
title:
|
|
1363
|
+
title: s.text
|
|
1362
1364
|
}, {
|
|
1363
|
-
default: () => [
|
|
1365
|
+
default: () => [s.icon]
|
|
1364
1366
|
})]) : null;
|
|
1365
1367
|
}).filter((l) => l);
|
|
1366
1368
|
}
|
|
@@ -1372,26 +1374,26 @@ const sa = {
|
|
|
1372
1374
|
headerTitleTip: [Function, Boolean, Object, String],
|
|
1373
1375
|
titleTipText: [String],
|
|
1374
1376
|
actionsRender: [Array]
|
|
1375
|
-
},
|
|
1377
|
+
}, ua = /* @__PURE__ */ ge({
|
|
1376
1378
|
props: sa,
|
|
1377
1379
|
inheritAttrs: !1,
|
|
1378
1380
|
setup(e) {
|
|
1379
|
-
const
|
|
1381
|
+
const a = $t({
|
|
1380
1382
|
suffixCls: "table-list-toolbar",
|
|
1381
1383
|
isPor: !0
|
|
1382
1384
|
}), {
|
|
1383
1385
|
action: l
|
|
1384
|
-
} =
|
|
1386
|
+
} = Ke(), n = Ne(() => e.options === !1 ? [] : ra({
|
|
1385
1387
|
reload: () => l?.reload(),
|
|
1386
1388
|
fullScreen: () => l?.toggle()
|
|
1387
1389
|
}, ne(e.options) ? e.options : {}), [() => e.options]);
|
|
1388
1390
|
return () => {
|
|
1389
1391
|
const o = e.actionsRender || [];
|
|
1390
|
-
return d(
|
|
1391
|
-
prefixCls:
|
|
1392
|
+
return d(Lt, {
|
|
1393
|
+
prefixCls: a,
|
|
1392
1394
|
actions: o,
|
|
1393
1395
|
actionsPlacement: e.actionsPlacement,
|
|
1394
|
-
settings:
|
|
1396
|
+
settings: R(n),
|
|
1395
1397
|
headerTitle: e.headerTitle,
|
|
1396
1398
|
listToolAfter: e.listToolAfter,
|
|
1397
1399
|
headerTitleTip: e.headerTitleTip,
|
|
@@ -1400,105 +1402,105 @@ const sa = {
|
|
|
1400
1402
|
};
|
|
1401
1403
|
}
|
|
1402
1404
|
});
|
|
1403
|
-
function
|
|
1404
|
-
return
|
|
1405
|
+
function ca(e) {
|
|
1406
|
+
return Ut();
|
|
1405
1407
|
}
|
|
1406
|
-
function
|
|
1407
|
-
|
|
1408
|
+
function da(e, a = !0, l) {
|
|
1409
|
+
ca() ? Ct(e, l) : a ? e() : ot(e);
|
|
1408
1410
|
}
|
|
1409
|
-
function
|
|
1410
|
-
const u =
|
|
1411
|
+
function fa({ scroll: e, columns: a, breakpoint: l, draggable: n, autoScroll: o, neverScroll: s }) {
|
|
1412
|
+
const u = w([]);
|
|
1411
1413
|
q([
|
|
1412
1414
|
() => e.value,
|
|
1413
|
-
() => n.value,
|
|
1414
|
-
() => l.value,
|
|
1415
1415
|
() => a.value,
|
|
1416
1416
|
() => l.value,
|
|
1417
|
+
() => n.value,
|
|
1418
|
+
() => l.value,
|
|
1417
1419
|
() => o.value,
|
|
1418
|
-
() =>
|
|
1420
|
+
() => s.value
|
|
1419
1421
|
], () => {
|
|
1420
|
-
const
|
|
1421
|
-
qe(
|
|
1422
|
+
const v = $(ce(a.value));
|
|
1423
|
+
qe(v, ce(u.value)) || (u.value = ae(v));
|
|
1422
1424
|
}, {
|
|
1423
1425
|
deep: !0,
|
|
1424
1426
|
immediate: !0
|
|
1425
1427
|
});
|
|
1426
|
-
const b = T(() => f(
|
|
1427
|
-
function f(
|
|
1428
|
-
return
|
|
1428
|
+
const b = T(() => f(R(u)));
|
|
1429
|
+
function f(v) {
|
|
1430
|
+
return v.sort((i, x) => cl(i, x, "order", 0));
|
|
1429
1431
|
}
|
|
1430
|
-
function $(
|
|
1431
|
-
return ae(
|
|
1432
|
-
if (i.dataIndex === "action" ||
|
|
1432
|
+
function $(v) {
|
|
1433
|
+
return ae(v).map((i, x) => {
|
|
1434
|
+
if (i.dataIndex === "action" || x === v.length - 1 ? i.resizable = !1 : i.resizable = De(i.resizable) ? i.resizable : !!(Ce(i.width) && R(n)), !i.width || R(s))
|
|
1433
1435
|
return i;
|
|
1434
|
-
if (i.dataIndex === "action" &&
|
|
1435
|
-
if (
|
|
1436
|
+
if (i.dataIndex === "action" && R(o))
|
|
1437
|
+
if (R(e)?.x || !R(l))
|
|
1436
1438
|
i.width = i.width || 100, i.fixed = "right";
|
|
1437
1439
|
else {
|
|
1438
|
-
const h =
|
|
1440
|
+
const h = R(a).find((E) => E.dataIndex === i.dataIndex);
|
|
1439
1441
|
i.width = h?.width || "", i.fixed = h?.fixed;
|
|
1440
1442
|
}
|
|
1441
1443
|
return i;
|
|
1442
1444
|
});
|
|
1443
1445
|
}
|
|
1444
|
-
function v
|
|
1445
|
-
u.value = u.value.map((
|
|
1446
|
+
function m(v, i) {
|
|
1447
|
+
u.value = u.value.map((x) => (x.uuid === i.uuid && (x.width = v), x));
|
|
1446
1448
|
}
|
|
1447
|
-
function
|
|
1448
|
-
if (
|
|
1449
|
+
function S(v) {
|
|
1450
|
+
if (v.length <= 0) {
|
|
1449
1451
|
u.value = [];
|
|
1450
1452
|
return;
|
|
1451
1453
|
}
|
|
1452
|
-
qe($(
|
|
1454
|
+
qe($(v), ce(u.value)) || (u.value = $(v));
|
|
1453
1455
|
}
|
|
1454
1456
|
return {
|
|
1455
1457
|
breakpoint: l,
|
|
1456
1458
|
proColumns: b,
|
|
1457
|
-
setColumns:
|
|
1458
|
-
resizeColumnWidth:
|
|
1459
|
+
setColumns: S,
|
|
1460
|
+
resizeColumnWidth: m
|
|
1459
1461
|
};
|
|
1460
1462
|
}
|
|
1461
|
-
function
|
|
1462
|
-
const l = T(() =>
|
|
1463
|
-
function
|
|
1464
|
-
|
|
1463
|
+
function va(e, a) {
|
|
1464
|
+
const l = T(() => a), n = w(), o = w(e);
|
|
1465
|
+
function s() {
|
|
1466
|
+
n.value && (clearTimeout(n.value), n.value = null);
|
|
1465
1467
|
}
|
|
1466
1468
|
async function u(...b) {
|
|
1467
|
-
return l.value === 0 || l.value === void 0 ? o.value(...b) : (
|
|
1468
|
-
b[0]?.immediate ? f(await o.value(...b)) :
|
|
1469
|
+
return l.value === 0 || l.value === void 0 ? o.value(...b) : (s(), new Promise(async (f) => {
|
|
1470
|
+
b[0]?.immediate ? f(await o.value(...b)) : n.value = setTimeout(async () => {
|
|
1469
1471
|
f(await o.value(...b));
|
|
1470
1472
|
}, l.value);
|
|
1471
1473
|
}));
|
|
1472
1474
|
}
|
|
1473
|
-
return
|
|
1474
|
-
cancel:
|
|
1475
|
+
return rl(s), {
|
|
1476
|
+
cancel: s,
|
|
1475
1477
|
run: u
|
|
1476
1478
|
};
|
|
1477
1479
|
}
|
|
1478
|
-
function
|
|
1479
|
-
const
|
|
1480
|
+
function ma(e) {
|
|
1481
|
+
const a = T(() => e.rowKey), l = T(() => e.polling), n = T(() => e.debounceTime), o = T(() => e.dataSource), s = T(() => e.autoRequest);
|
|
1480
1482
|
return {
|
|
1481
|
-
rowKey:
|
|
1483
|
+
rowKey: a,
|
|
1482
1484
|
polling: l,
|
|
1483
1485
|
request: e.request,
|
|
1484
1486
|
postData: e.postData,
|
|
1485
|
-
debounceTime:
|
|
1487
|
+
debounceTime: n,
|
|
1486
1488
|
dataSource: o,
|
|
1487
|
-
autoRequest:
|
|
1489
|
+
autoRequest: s
|
|
1488
1490
|
};
|
|
1489
1491
|
}
|
|
1490
|
-
function
|
|
1491
|
-
const K =
|
|
1492
|
-
(k.value || t) &&
|
|
1492
|
+
function ha({ rowKey: e, autoRequest: a, polling: l, request: n, postData: o, dataSource: s, waitRequest: u, debounceTime: b }, { params: f, columns: $, setLoading: m, setColumns: S, removeRowKeys: v, syncSelectedRows: i, defaultFormSearch: x, setPagination: h, pageInfo: E, onRequestError: A, onBeforeSearchSubmit: F, hasCustomRender: N }, L) {
|
|
1493
|
+
const K = w(""), k = w(!1), H = w(!1), B = w([]), X = w(), O = w(null), W = (t = !1) => {
|
|
1494
|
+
(k.value || t) && m(!1), de(!1);
|
|
1493
1495
|
}, Y = async (t = {}) => {
|
|
1494
|
-
const { pagination:
|
|
1495
|
-
if (!
|
|
1496
|
-
return
|
|
1497
|
-
c ? de(!0) :
|
|
1496
|
+
const { pagination: r = {}, filters: y = {}, sorter: g = {}, removeKeys: C = [], isPolling: c = !1, extra: fe } = t;
|
|
1497
|
+
if (!n || !Me(n))
|
|
1498
|
+
return s.value || [];
|
|
1499
|
+
c ? de(!0) : m(!0), r && h(r);
|
|
1498
1500
|
try {
|
|
1499
|
-
|
|
1501
|
+
C.length && v(C);
|
|
1500
1502
|
const U = ne(g) ? Object.keys(g).length ? [g] : [] : g;
|
|
1501
|
-
|
|
1503
|
+
S(R($).map((Se) => {
|
|
1502
1504
|
const xe = U.find((ie) => (ie?.columnKey || ie?.field) === Se.dataIndex);
|
|
1503
1505
|
return {
|
|
1504
1506
|
...Se,
|
|
@@ -1506,22 +1508,22 @@ function ma({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
|
|
|
1506
1508
|
};
|
|
1507
1509
|
}));
|
|
1508
1510
|
let Fe = {
|
|
1509
|
-
...ce(
|
|
1510
|
-
current:
|
|
1511
|
-
...
|
|
1512
|
-
...
|
|
1511
|
+
...ce(E),
|
|
1512
|
+
current: vl(ce(E), C.length),
|
|
1513
|
+
...R(x),
|
|
1514
|
+
...R(f),
|
|
1513
1515
|
...t.params
|
|
1514
1516
|
};
|
|
1515
|
-
|
|
1517
|
+
F && Me(F) && (Fe = await F({
|
|
1516
1518
|
params: Fe,
|
|
1517
1519
|
sorter: U,
|
|
1518
1520
|
filter: y,
|
|
1519
1521
|
extra: fe
|
|
1520
1522
|
}));
|
|
1521
1523
|
let ve = [];
|
|
1522
|
-
const ue = `table_request_${
|
|
1524
|
+
const ue = `table_request_${Pt().uuid(10)}`;
|
|
1523
1525
|
K.value = ue;
|
|
1524
|
-
const Ie = await
|
|
1526
|
+
const Ie = await n?.({
|
|
1525
1527
|
params: ae(ce(Fe)),
|
|
1526
1528
|
sorter: U,
|
|
1527
1529
|
filter: y,
|
|
@@ -1535,38 +1537,38 @@ function ma({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
|
|
|
1535
1537
|
return [];
|
|
1536
1538
|
ve = typeof o == "function" ? await o?.(xe) : xe, i(ve);
|
|
1537
1539
|
const ie = Ie.total || ve?.length || 0;
|
|
1538
|
-
ie !==
|
|
1540
|
+
ie !== E.total && h({
|
|
1539
1541
|
total: ie
|
|
1540
1542
|
});
|
|
1541
|
-
const
|
|
1542
|
-
return qe(ve,
|
|
1543
|
+
const ke = R(B).map((Ve) => ze(Ve, "sortIndex"));
|
|
1544
|
+
return qe(ve, ke) ? R(B) : (oe(ve), ve);
|
|
1543
1545
|
} else
|
|
1544
1546
|
return [];
|
|
1545
1547
|
} catch (U) {
|
|
1546
|
-
if (
|
|
1548
|
+
if (A === void 0)
|
|
1547
1549
|
throw new Error(U);
|
|
1548
|
-
|
|
1550
|
+
B.value === void 0 && oe([]), A(U);
|
|
1549
1551
|
} finally {
|
|
1550
1552
|
W(!0);
|
|
1551
1553
|
}
|
|
1552
1554
|
return [];
|
|
1553
|
-
}, M =
|
|
1554
|
-
if (X.value && clearTimeout(X.value), !
|
|
1555
|
+
}, M = va(async (t = {}) => {
|
|
1556
|
+
if (X.value && clearTimeout(X.value), !n)
|
|
1555
1557
|
return;
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1558
|
+
const r = new AbortController();
|
|
1559
|
+
O.value = r;
|
|
1558
1560
|
try {
|
|
1559
1561
|
const y = await Promise.race([
|
|
1560
1562
|
Y(t),
|
|
1561
|
-
new Promise((
|
|
1562
|
-
|
|
1563
|
+
new Promise((C, c) => {
|
|
1564
|
+
O.value?.signal?.addEventListener?.("abort", () => {
|
|
1563
1565
|
c("aborted"), M.cancel(), W();
|
|
1564
1566
|
});
|
|
1565
1567
|
})
|
|
1566
1568
|
]);
|
|
1567
|
-
if (
|
|
1569
|
+
if (r.signal.aborted)
|
|
1568
1570
|
return;
|
|
1569
|
-
const g =
|
|
1571
|
+
const g = dl(l.value, y);
|
|
1570
1572
|
return g && !k.value && (X.value = setTimeout(() => {
|
|
1571
1573
|
M.run({ ...t, isPolling: g });
|
|
1572
1574
|
}, Math.max(g, 2e3))), y;
|
|
@@ -1576,90 +1578,90 @@ function ma({ rowKey: e, autoRequest: n, polling: l, request: a, postData: o, da
|
|
|
1576
1578
|
throw y;
|
|
1577
1579
|
}
|
|
1578
1580
|
}, b.value || 30), ee = () => {
|
|
1579
|
-
|
|
1581
|
+
O.value?.abort(), M.cancel(), W();
|
|
1580
1582
|
};
|
|
1581
|
-
|
|
1582
|
-
k.value = !1;
|
|
1583
|
-
}), yt(() => {
|
|
1583
|
+
nt(() => {
|
|
1584
1584
|
k.value = !1;
|
|
1585
1585
|
}), Ct(() => {
|
|
1586
|
-
|
|
1586
|
+
k.value = !1;
|
|
1587
1587
|
}), St(() => {
|
|
1588
1588
|
ee(), k.value = !0, clearTimeout(X.value);
|
|
1589
|
+
}), xt(() => {
|
|
1590
|
+
ee(), k.value = !0, clearTimeout(X.value);
|
|
1589
1591
|
}), q(() => l.value, () => {
|
|
1590
1592
|
u.value || (l.value ? M.run({ isPolling: !0 }) : clearTimeout(X.value));
|
|
1591
1593
|
}, { immediate: !0 }), q(() => u.value, () => {
|
|
1592
|
-
u.value ?
|
|
1593
|
-
}, { immediate: !0 }), q(() =>
|
|
1594
|
-
|
|
1594
|
+
u.value ? m(!0) : M.run({ isPolling: !1 });
|
|
1595
|
+
}, { immediate: !0 }), q(() => s.value, () => {
|
|
1596
|
+
s.value && oe(s.value || []);
|
|
1595
1597
|
}, { deep: !0, immediate: !0 }), q(() => f.value, () => {
|
|
1596
|
-
u.value ||
|
|
1597
|
-
}, { deep: !0, immediate: !0 }), q(() =>
|
|
1598
|
-
u.value || qe(t,
|
|
1598
|
+
u.value || a.value && (h({ current: 1 }), re());
|
|
1599
|
+
}, { deep: !0, immediate: !0 }), q(() => x.value, (t, r) => {
|
|
1600
|
+
u.value || qe(t, r) || (h({ current: 1 }), re());
|
|
1599
1601
|
}, { deep: !0, immediate: !0 });
|
|
1600
|
-
function
|
|
1601
|
-
|
|
1602
|
+
function re() {
|
|
1603
|
+
n ? l.value || (ee(), M.run({ isPolling: !1 })) : oe(s.value || []);
|
|
1602
1604
|
}
|
|
1603
|
-
const
|
|
1605
|
+
const se = T(() => {
|
|
1604
1606
|
if (N.value)
|
|
1605
|
-
return
|
|
1606
|
-
const t = $.value.filter((
|
|
1607
|
-
return !
|
|
1608
|
-
}), be = T(() =>
|
|
1607
|
+
return R(B);
|
|
1608
|
+
const t = $.value.filter((r) => r.show || r.show === void 0);
|
|
1609
|
+
return !R(B) || !t || t.length === 0 ? [] : R(B);
|
|
1610
|
+
}), be = T(() => R(B).some((t) => J(t.children) && t.children.length > 0));
|
|
1609
1611
|
function de(t) {
|
|
1610
1612
|
H.value = t;
|
|
1611
1613
|
}
|
|
1612
|
-
function Re(t,
|
|
1613
|
-
ee(), M.run({ pagination: t, filters:
|
|
1614
|
+
function Re(t, r = {}, y = {}, g) {
|
|
1615
|
+
ee(), M.run({ pagination: t, filters: r, sorter: y, extra: g, isPolling: !1 });
|
|
1614
1616
|
}
|
|
1615
1617
|
function oe(t) {
|
|
1616
|
-
const
|
|
1617
|
-
if (
|
|
1618
|
-
const y =
|
|
1619
|
-
y !==
|
|
1618
|
+
const r = fl(ae(t), ce(E));
|
|
1619
|
+
if (B.value = r, !n || !Me(n)) {
|
|
1620
|
+
const y = r.length || 0;
|
|
1621
|
+
y !== E.total && h({
|
|
1620
1622
|
total: y
|
|
1621
1623
|
});
|
|
1622
1624
|
}
|
|
1623
1625
|
}
|
|
1624
1626
|
return {
|
|
1625
|
-
dataSource:
|
|
1627
|
+
dataSource: se,
|
|
1626
1628
|
isTreeDataRef: be,
|
|
1627
1629
|
setTableDataList: oe,
|
|
1628
1630
|
operateTableDataRow: (t) => {
|
|
1629
|
-
const { key:
|
|
1630
|
-
switch (!y &&
|
|
1631
|
+
const { key: r, row: y, value: g, type: C = "update" } = t, c = r ?? e.value, fe = y?.[c] ?? g;
|
|
1632
|
+
switch (!y && C !== "delete" && console.warn("row is required"), C) {
|
|
1631
1633
|
case "update":
|
|
1632
|
-
c && fe && y && (
|
|
1634
|
+
c && fe && y && (B.value = B.value.map((U) => fe === U[c] ? ye(U, y) : U));
|
|
1633
1635
|
break;
|
|
1634
1636
|
case "push":
|
|
1635
|
-
y &&
|
|
1637
|
+
y && B.value.push(y);
|
|
1636
1638
|
break;
|
|
1637
1639
|
case "unshift":
|
|
1638
|
-
y &&
|
|
1640
|
+
y && B.value.unshift(y);
|
|
1639
1641
|
break;
|
|
1640
1642
|
case "delete":
|
|
1641
|
-
c && (
|
|
1643
|
+
c && (B.value = B.value.filter((U) => g !== U[c]));
|
|
1642
1644
|
break;
|
|
1643
1645
|
}
|
|
1644
1646
|
},
|
|
1645
1647
|
handleTableChange: Re,
|
|
1646
1648
|
run: async (t) => {
|
|
1647
|
-
u.value || (
|
|
1649
|
+
u.value || (n ? await M.run({ ...t, isPolling: !1 }) : L("reload"));
|
|
1648
1650
|
}
|
|
1649
1651
|
};
|
|
1650
1652
|
}
|
|
1651
|
-
function
|
|
1652
|
-
const
|
|
1653
|
+
function ga(e) {
|
|
1654
|
+
const a = w(l(e.loading.value));
|
|
1653
1655
|
q(() => e.loading.value, (o) => {
|
|
1654
|
-
|
|
1656
|
+
a.value = l(o, a.value);
|
|
1655
1657
|
});
|
|
1656
|
-
function l(o,
|
|
1657
|
-
return De(o) ? o : ne(o) ? o?.spinning ??
|
|
1658
|
+
function l(o, s = !1) {
|
|
1659
|
+
return De(o) ? o : ne(o) ? o?.spinning ?? s : s;
|
|
1658
1660
|
}
|
|
1659
|
-
function
|
|
1660
|
-
|
|
1661
|
+
function n(o) {
|
|
1662
|
+
a.value = o;
|
|
1661
1663
|
}
|
|
1662
|
-
return [
|
|
1664
|
+
return [a, n];
|
|
1663
1665
|
}
|
|
1664
1666
|
const Ye = {
|
|
1665
1667
|
current: 1,
|
|
@@ -1669,13 +1671,13 @@ const Ye = {
|
|
|
1669
1671
|
showSizeChanger: !0,
|
|
1670
1672
|
pageSizeOptions: ["10", "20", "50", "100"]
|
|
1671
1673
|
};
|
|
1672
|
-
function
|
|
1674
|
+
function ba({
|
|
1673
1675
|
pagination: e,
|
|
1674
|
-
pageItemRender:
|
|
1676
|
+
pageItemRender: a
|
|
1675
1677
|
}) {
|
|
1676
|
-
const l =
|
|
1678
|
+
const l = w({
|
|
1677
1679
|
...Ye
|
|
1678
|
-
}),
|
|
1680
|
+
}), n = at({
|
|
1679
1681
|
current: Ye.current,
|
|
1680
1682
|
pageSize: Ye.pageSize,
|
|
1681
1683
|
total: 0
|
|
@@ -1685,12 +1687,12 @@ function ga({
|
|
|
1685
1687
|
l.value = !1;
|
|
1686
1688
|
return;
|
|
1687
1689
|
}
|
|
1688
|
-
const
|
|
1690
|
+
const s = Me(a) ? {
|
|
1689
1691
|
itemRender: ({
|
|
1690
1692
|
page: b,
|
|
1691
1693
|
type: f,
|
|
1692
1694
|
originalElement: $
|
|
1693
|
-
}) =>
|
|
1695
|
+
}) => a ? a({
|
|
1694
1696
|
page: b,
|
|
1695
1697
|
type: f,
|
|
1696
1698
|
originalElement: $
|
|
@@ -1698,88 +1700,88 @@ function ga({
|
|
|
1698
1700
|
} : null, u = {
|
|
1699
1701
|
...Ye,
|
|
1700
1702
|
...e.value || {},
|
|
1701
|
-
...
|
|
1703
|
+
...s || {}
|
|
1702
1704
|
};
|
|
1703
|
-
e.value?.showTotal || (u.showTotal = (b) => `共${b < u.pageSize ? 1 : Math.ceil(b / (u.pageSize || 10))}页 ${b}条记录`), l.value = ae(u),
|
|
1704
|
-
Ce(u[b]) && (
|
|
1705
|
+
e.value?.showTotal || (u.showTotal = (b) => `共${b < u.pageSize ? 1 : Math.ceil(b / (u.pageSize || 10))}页 ${b}条记录`), l.value = ae(u), ml(n, (b) => {
|
|
1706
|
+
Ce(u[b]) && (n[b] = u[b]);
|
|
1705
1707
|
});
|
|
1706
1708
|
}, {
|
|
1707
1709
|
deep: 1,
|
|
1708
1710
|
immediate: !0
|
|
1709
1711
|
});
|
|
1710
|
-
function o(
|
|
1711
|
-
l.value = ye(
|
|
1712
|
-
for (const u in
|
|
1713
|
-
|
|
1712
|
+
function o(s) {
|
|
1713
|
+
l.value = ye(R(l), s);
|
|
1714
|
+
for (const u in n)
|
|
1715
|
+
s[u] && Ce(s[u]) && (n[u] = s[u]);
|
|
1714
1716
|
}
|
|
1715
1717
|
return {
|
|
1716
1718
|
paginationInfo: l,
|
|
1717
|
-
requestPagination:
|
|
1719
|
+
requestPagination: n,
|
|
1718
1720
|
setPagination: o
|
|
1719
1721
|
};
|
|
1720
1722
|
}
|
|
1721
|
-
function
|
|
1722
|
-
const l =
|
|
1723
|
-
q(() =>
|
|
1724
|
-
|
|
1723
|
+
function pa(e, a) {
|
|
1724
|
+
const l = w([]), n = w([]);
|
|
1725
|
+
q(() => a.value?.selectedRows, (m) => {
|
|
1726
|
+
n.value = ae(m || []);
|
|
1725
1727
|
}, {
|
|
1726
1728
|
deep: !0,
|
|
1727
1729
|
immediate: !0
|
|
1728
|
-
}), q(() =>
|
|
1729
|
-
l.value =
|
|
1730
|
+
}), q(() => a.value?.selectedRowKeys, (m) => {
|
|
1731
|
+
l.value = hl([...m || []]);
|
|
1730
1732
|
}, {
|
|
1731
1733
|
deep: !0,
|
|
1732
1734
|
immediate: !0
|
|
1733
1735
|
});
|
|
1734
|
-
const o = (
|
|
1735
|
-
const
|
|
1736
|
-
e.value && (
|
|
1737
|
-
},
|
|
1738
|
-
|
|
1736
|
+
const o = (m, S) => {
|
|
1737
|
+
const v = a.value?.type || "checkbox";
|
|
1738
|
+
e.value && (S ? m?.[e.value] && v === "checkbox" ? (l.value.push(m[e.value]), n.value.push(m)) : (l.value = [m[e.value]], n.value = [m]) : (l.value = l.value.filter((i) => i !== m[e.value]), n.value = n.value.filter((i) => i[e.value] !== m[e.value])));
|
|
1739
|
+
}, s = () => {
|
|
1740
|
+
a.value && a.value?.onChange?.(l.value, n.value);
|
|
1739
1741
|
};
|
|
1740
1742
|
return {
|
|
1741
1743
|
selectedKeys: l,
|
|
1742
|
-
selectedItems:
|
|
1744
|
+
selectedItems: n,
|
|
1743
1745
|
selectRowKey: o,
|
|
1744
|
-
selectAllRowKey: (
|
|
1745
|
-
e.value && (
|
|
1746
|
+
selectAllRowKey: (m, S, v) => {
|
|
1747
|
+
e.value && (m ? S.map((i) => (l.value.every((x) => x !== i?.[e.value]) && i?.[e.value] && (l.value.push(i[e.value]), n.value.push(i)), i)) : v.map((i) => (l.value.includes(i?.[e.value]) && (l.value = l.value.filter((x) => x !== i[e.value]), n.value = n.value.filter((x) => x[e.value] !== i[e.value])), i)));
|
|
1746
1748
|
},
|
|
1747
|
-
removeRowKeys: (
|
|
1748
|
-
l.value = l.value.filter((
|
|
1749
|
+
removeRowKeys: (m) => {
|
|
1750
|
+
l.value = l.value.filter((S) => !m.includes(S)), n.value = n.value.filter((S) => !m.includes(S?.[e.value || ""])), s();
|
|
1749
1751
|
},
|
|
1750
|
-
changeRowKey:
|
|
1751
|
-
syncSelectedRows: (
|
|
1752
|
-
if (e.value && l.value.length !==
|
|
1753
|
-
const
|
|
1754
|
-
|
|
1755
|
-
|
|
1752
|
+
changeRowKey: s,
|
|
1753
|
+
syncSelectedRows: (m) => {
|
|
1754
|
+
if (e.value && l.value.length !== n.value.length) {
|
|
1755
|
+
const S = n.value.map((i) => i[e.value]), v = l.value.filter((i) => !S.includes(i));
|
|
1756
|
+
m.forEach((i) => {
|
|
1757
|
+
v.includes(i[e.value]) && n.value.push(ae(i));
|
|
1756
1758
|
});
|
|
1757
1759
|
}
|
|
1758
1760
|
},
|
|
1759
1761
|
clearAllRowKeys: () => {
|
|
1760
|
-
l.value = [],
|
|
1762
|
+
l.value = [], n.value = [], s();
|
|
1761
1763
|
}
|
|
1762
1764
|
};
|
|
1763
1765
|
}
|
|
1764
|
-
function
|
|
1766
|
+
function ya(e) {
|
|
1765
1767
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
|
|
1766
1768
|
}
|
|
1767
|
-
function
|
|
1768
|
-
if (!
|
|
1769
|
+
function Ca(e, a, l, n) {
|
|
1770
|
+
if (!a) return e;
|
|
1769
1771
|
let o = e;
|
|
1770
|
-
if (ne(
|
|
1771
|
-
const
|
|
1772
|
-
return d(
|
|
1773
|
-
class:
|
|
1774
|
-
onClick:
|
|
1775
|
-
}),
|
|
1772
|
+
if (ne(a)) {
|
|
1773
|
+
const s = a.node === "a" ? "span" : a.node;
|
|
1774
|
+
return d(s, Q(a?.attr || {}, {
|
|
1775
|
+
class: a.class,
|
|
1776
|
+
onClick: a.click
|
|
1777
|
+
}), ya(e) ? e : {
|
|
1776
1778
|
default: () => [e]
|
|
1777
1779
|
});
|
|
1778
1780
|
}
|
|
1779
|
-
switch (
|
|
1781
|
+
switch (a) {
|
|
1780
1782
|
case "link":
|
|
1781
1783
|
o = d("span", {
|
|
1782
|
-
class: [`${l}-a`,
|
|
1784
|
+
class: [`${l}-a`, n]
|
|
1783
1785
|
}, [e]);
|
|
1784
1786
|
break;
|
|
1785
1787
|
case "time":
|
|
@@ -1797,61 +1799,61 @@ function ya(e, n, l, a) {
|
|
|
1797
1799
|
}
|
|
1798
1800
|
return o;
|
|
1799
1801
|
}
|
|
1800
|
-
function
|
|
1801
|
-
const l =
|
|
1802
|
-
return e.filter((o,
|
|
1802
|
+
function Sa(e, a) {
|
|
1803
|
+
const l = a && a.current || 1, n = a && a.pageSize || 10;
|
|
1804
|
+
return e.filter((o, s) => s < l * n && s >= n * (l - 1));
|
|
1803
1805
|
}
|
|
1804
|
-
function
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1806
|
+
function xa(e) {
|
|
1807
|
+
const a = document.createElement("textarea");
|
|
1808
|
+
a.style.position = "absolute", a.style.opacity = "0", a.value = e, document.body.appendChild(a), a.select(), document.execCommand("copy"), document.body.removeChild(a);
|
|
1807
1809
|
}
|
|
1808
|
-
function Be(e,
|
|
1809
|
-
let l = null,
|
|
1810
|
+
function Be(e, a) {
|
|
1811
|
+
let l = null, n = null;
|
|
1810
1812
|
function o() {
|
|
1811
|
-
l && l.disconnect(),
|
|
1813
|
+
l && l.disconnect(), n && n.disconnect();
|
|
1812
1814
|
}
|
|
1813
|
-
function
|
|
1815
|
+
function s(f) {
|
|
1814
1816
|
f && (l = new ResizeObserver(() => {
|
|
1815
|
-
|
|
1816
|
-
}), l.observe(f),
|
|
1817
|
+
a(f);
|
|
1818
|
+
}), l.observe(f), a(f));
|
|
1817
1819
|
}
|
|
1818
1820
|
function u() {
|
|
1819
1821
|
return typeof e == "string" ? document.querySelector(e) : e();
|
|
1820
1822
|
}
|
|
1821
1823
|
const b = u();
|
|
1822
|
-
return b ? (
|
|
1824
|
+
return b ? (s(b), o) : (n = new MutationObserver(() => {
|
|
1823
1825
|
const f = u();
|
|
1824
|
-
f && (
|
|
1825
|
-
}),
|
|
1826
|
+
f && (n.disconnect(), s(f));
|
|
1827
|
+
}), n.observe(document.body, {
|
|
1826
1828
|
childList: !0,
|
|
1827
1829
|
subtree: !0
|
|
1828
1830
|
}), o);
|
|
1829
1831
|
}
|
|
1830
|
-
function
|
|
1831
|
-
const o =
|
|
1832
|
-
let
|
|
1832
|
+
function Ta({ fitPage: e, hashId: a, scroll: l, baseClassName: n }) {
|
|
1833
|
+
const o = w(), s = w(), u = w(), b = w(), f = w(), $ = w(), m = w(0);
|
|
1834
|
+
let S, v, i, x;
|
|
1833
1835
|
sl(() => {
|
|
1834
|
-
|
|
1836
|
+
S = Be(() => s.value?.querySelector(".ant-pagination"), (H) => {
|
|
1835
1837
|
H && (u.value = H);
|
|
1836
|
-
}), i = Be(() =>
|
|
1838
|
+
}), i = Be(() => s.value?.querySelector(".ant-table-header"), (H) => {
|
|
1837
1839
|
H && (b.value = H);
|
|
1838
|
-
}),
|
|
1840
|
+
}), x = Be(() => s.value?.querySelector(".ant-table-body>table"), (H) => {
|
|
1839
1841
|
H && ($.value = H);
|
|
1840
1842
|
});
|
|
1841
1843
|
}), q(() => l.value, (H) => {
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
}) : H.x && (
|
|
1845
|
-
|
|
1844
|
+
v && v(), H.y ? v = Be(() => s.value?.querySelector(".ant-table-body"), (B) => {
|
|
1845
|
+
B && (f.value = B);
|
|
1846
|
+
}) : H.x && (v = Be(() => s.value?.querySelector(".ant-table-content"), (B) => {
|
|
1847
|
+
B && (f.value = B);
|
|
1846
1848
|
}));
|
|
1847
1849
|
}, { immediate: !0 });
|
|
1848
|
-
const { height: h } = He(
|
|
1850
|
+
const { height: h } = He(s), { height: E } = He(b), { height: A } = He($), { height: F } = He(u), N = T(() => !s.value || !e.value ? 0 : h.value - E.value - m.value - F.value), L = T(() => N.value && e.value ? A.value <= N.value : !1);
|
|
1849
1851
|
q([
|
|
1850
1852
|
() => f.value,
|
|
1851
1853
|
() => N.value
|
|
1852
1854
|
], () => {
|
|
1853
1855
|
f.value && e.value && f.value.setAttribute("style", `height: ${N.value}px;`);
|
|
1854
|
-
}),
|
|
1856
|
+
}), $l(f, {
|
|
1855
1857
|
onScroll: () => {
|
|
1856
1858
|
f.value && o.value?.handleScroll(f.value);
|
|
1857
1859
|
}
|
|
@@ -1859,83 +1861,84 @@ function xa({ fitPage: e, hashId: n, scroll: l, baseClassName: a }) {
|
|
|
1859
1861
|
const K = () => {
|
|
1860
1862
|
o.value?.update();
|
|
1861
1863
|
};
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
+
Rl(f, K), nt(() => {
|
|
1865
|
+
ot(() => {
|
|
1864
1866
|
K();
|
|
1865
1867
|
});
|
|
1866
|
-
}),
|
|
1868
|
+
}), Jt(() => K());
|
|
1867
1869
|
function k() {
|
|
1868
|
-
|
|
1870
|
+
S && S(), v && v(), i && i(), x && x();
|
|
1869
1871
|
}
|
|
1870
|
-
return
|
|
1872
|
+
return St(() => {
|
|
1871
1873
|
k();
|
|
1872
|
-
}),
|
|
1874
|
+
}), xt(() => {
|
|
1873
1875
|
k && k();
|
|
1874
|
-
}),
|
|
1875
|
-
className: `${
|
|
1876
|
-
hashId:
|
|
1877
|
-
|
|
1878
|
-
|
|
1876
|
+
}), Jl({
|
|
1877
|
+
className: `${n}-scroll`,
|
|
1878
|
+
hashId: a,
|
|
1879
|
+
tableScrollYHeight: N,
|
|
1880
|
+
tableHeaderHeight: E,
|
|
1881
|
+
scrollbarElement: s,
|
|
1879
1882
|
wrapElement: f
|
|
1880
1883
|
}), {
|
|
1881
1884
|
barRef: o,
|
|
1882
|
-
tableCardEl:
|
|
1885
|
+
tableCardEl: s,
|
|
1883
1886
|
tableScrollEl: f,
|
|
1884
1887
|
tableOverHidden: L,
|
|
1885
1888
|
tableScrollYHeight: N,
|
|
1886
|
-
tableListToolsHeight:
|
|
1889
|
+
tableListToolsHeight: m
|
|
1887
1890
|
};
|
|
1888
1891
|
}
|
|
1889
|
-
function
|
|
1890
|
-
const
|
|
1892
|
+
function wa(e) {
|
|
1893
|
+
const a = {};
|
|
1891
1894
|
return e.forEach((l) => {
|
|
1892
|
-
let
|
|
1893
|
-
const o = ["select", "number"],
|
|
1894
|
-
l.valueType ? !
|
|
1895
|
-
}),
|
|
1895
|
+
let n = l.initialValue;
|
|
1896
|
+
const o = ["select", "number"], s = ["date", "time", "dateRange"], u = ["treeSelect", "numberRange"];
|
|
1897
|
+
l.valueType ? !n && o.includes(l.valueType) ? n = void 0 : !n && s.includes(l.valueType) ? n = null : !n && u.includes(l.valueType) ? n = [] : n || (n = "") : n || (n = ""), l.name === "dateRange" ? (a[l.rangeStartName || "start"] = n ? n[0] : null, a[l.rangeEndName || "end"] = n ? n[1] : null) : l.name && (a[l.name] = n);
|
|
1898
|
+
}), a;
|
|
1896
1899
|
}
|
|
1897
|
-
function
|
|
1898
|
-
const l =
|
|
1899
|
-
function o(
|
|
1900
|
-
|
|
1900
|
+
function $a({ searchMap: e, columns: a }) {
|
|
1901
|
+
const l = w([]), n = w({});
|
|
1902
|
+
function o(s) {
|
|
1903
|
+
s.forEach((b) => {
|
|
1901
1904
|
l.value.some((f) => f.name === b.name) ? l.value = l.value.map((f) => f.name === b.name ? { ...f, ...b } : f) : l.value.push(b);
|
|
1902
1905
|
});
|
|
1903
|
-
const u =
|
|
1904
|
-
|
|
1906
|
+
const u = wa(s);
|
|
1907
|
+
n.value = { ...n.value, ...u };
|
|
1905
1908
|
}
|
|
1906
1909
|
return q(() => e.value, () => {
|
|
1907
|
-
const
|
|
1908
|
-
e.value?.forEach((u) =>
|
|
1909
|
-
}, { deep: !0, immediate: !0 }), q(() =>
|
|
1910
|
-
const
|
|
1911
|
-
|
|
1912
|
-
u.searchConfig &&
|
|
1913
|
-
}), o(
|
|
1914
|
-
}, { deep: !0, immediate: !0 }), { formCols: l, defaultFormSearch:
|
|
1910
|
+
const s = [];
|
|
1911
|
+
e.value?.forEach((u) => s.push(u)), o(s);
|
|
1912
|
+
}, { deep: !0, immediate: !0 }), q(() => a.value, () => {
|
|
1913
|
+
const s = [];
|
|
1914
|
+
a.value && a.value?.length && a.value.forEach((u) => {
|
|
1915
|
+
u.searchConfig && s.push(u.searchConfig);
|
|
1916
|
+
}), o(s);
|
|
1917
|
+
}, { deep: !0, immediate: !0 }), { formCols: l, defaultFormSearch: n };
|
|
1915
1918
|
}
|
|
1916
|
-
function
|
|
1917
|
-
const $ = T(() => f.value ? Ce(f.value) ? b.value > f.value :
|
|
1918
|
-
let
|
|
1919
|
-
const i =
|
|
1920
|
-
h.forEach((
|
|
1921
|
-
|
|
1919
|
+
function Ra({ scroll: e, columns: a, autoScroll: l, modalScroll: n, neverScroll: o, rowSelection: s, screens: u, innerWidth: b, scrollBreakpoint: f }) {
|
|
1920
|
+
const $ = T(() => f.value ? Ce(f.value) ? b.value > f.value : Ft(f.value) ? u.value?.[f.value] : u.value?.xl : u.value?.xl), m = T(() => {
|
|
1921
|
+
let v = 0;
|
|
1922
|
+
const i = R(s) ? 60 : 0, x = 150, h = ae(R(a));
|
|
1923
|
+
h.forEach((F) => {
|
|
1924
|
+
v += Number.parseInt(String(F.width)) || 0;
|
|
1922
1925
|
});
|
|
1923
|
-
const
|
|
1924
|
-
return
|
|
1926
|
+
const A = h.filter((F) => !Reflect.has(F, "width")).length;
|
|
1927
|
+
return A !== 0 && (v += A * x), i && (v += i), v;
|
|
1925
1928
|
});
|
|
1926
|
-
return { proScroll: T(() => o.value ? {} : e.value &&
|
|
1929
|
+
return { proScroll: T(() => o.value ? {} : e.value && Rt(e.value).length ? R(e) : n.value ? {
|
|
1927
1930
|
y: e.value?.y || (u.value?.xl ? 400 : 235)
|
|
1928
|
-
} : l.value ? $.value ? {} : De($.value) ? { x:
|
|
1931
|
+
} : l.value ? $.value ? {} : De($.value) ? { x: m.value } : {} : {}), breakpoint: $ };
|
|
1929
1932
|
}
|
|
1930
|
-
function
|
|
1931
|
-
const
|
|
1932
|
-
q(() => e.size.value, (
|
|
1933
|
-
function l(
|
|
1934
|
-
|
|
1933
|
+
function Pa(e) {
|
|
1934
|
+
const a = w(e.size.value || "middle");
|
|
1935
|
+
q(() => e.size.value, (n) => a.value = n);
|
|
1936
|
+
function l(n) {
|
|
1937
|
+
a.value = n || a.value;
|
|
1935
1938
|
}
|
|
1936
|
-
return [
|
|
1939
|
+
return [a, l];
|
|
1937
1940
|
}
|
|
1938
|
-
const
|
|
1941
|
+
const Fa = (e) => ({
|
|
1939
1942
|
[e.componentCls]: {
|
|
1940
1943
|
[`${e.componentCls}-list`]: {
|
|
1941
1944
|
clear: "both",
|
|
@@ -1962,14 +1965,14 @@ const Pa = (e) => ({
|
|
|
1962
1965
|
}
|
|
1963
1966
|
}
|
|
1964
1967
|
}
|
|
1965
|
-
}),
|
|
1968
|
+
}), Ze = () => ({
|
|
1966
1969
|
scrollbarWidth: "none",
|
|
1967
1970
|
"&::-webkit-scrollbar": {
|
|
1968
1971
|
width: 0,
|
|
1969
1972
|
height: 0
|
|
1970
1973
|
}
|
|
1971
|
-
}),
|
|
1972
|
-
const
|
|
1974
|
+
}), Ia = (e) => {
|
|
1975
|
+
const a = new gt(e.colorText).setAlpha(0.2).toRgbString(), l = new gt(e.colorText).setAlpha(0.4).toRgbString();
|
|
1973
1976
|
return {
|
|
1974
1977
|
[e.componentCls]: {
|
|
1975
1978
|
[`${e.antCls}-table-container`]: {
|
|
@@ -2004,7 +2007,7 @@ const Pa = (e) => ({
|
|
|
2004
2007
|
height: 0,
|
|
2005
2008
|
cursor: "pointer",
|
|
2006
2009
|
opacity: 1,
|
|
2007
|
-
backgroundColor:
|
|
2010
|
+
backgroundColor: a,
|
|
2008
2011
|
borderRadius: "inherit",
|
|
2009
2012
|
transition: ".3s background-color",
|
|
2010
2013
|
"&:hover": {
|
|
@@ -2013,15 +2016,15 @@ const Pa = (e) => ({
|
|
|
2013
2016
|
}
|
|
2014
2017
|
}
|
|
2015
2018
|
},
|
|
2016
|
-
[`${e.antCls}-table-content`]:
|
|
2017
|
-
[`${e.antCls}-table-body`]:
|
|
2019
|
+
[`${e.antCls}-table-content`]: Ze(),
|
|
2020
|
+
[`${e.antCls}-table-body`]: Ze(),
|
|
2018
2021
|
[`${e.antCls}-table-empty`]: {
|
|
2019
|
-
[`${e.antCls}-table-content`]:
|
|
2022
|
+
[`${e.antCls}-table-content`]: Ze()
|
|
2020
2023
|
}
|
|
2021
2024
|
}
|
|
2022
2025
|
};
|
|
2023
|
-
},
|
|
2024
|
-
const
|
|
2026
|
+
}, Aa = (e) => {
|
|
2027
|
+
const a = `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`;
|
|
2025
2028
|
return {
|
|
2026
2029
|
[e.componentCls]: {
|
|
2027
2030
|
[`&${e.componentCls}-full-page`]: {
|
|
@@ -2039,9 +2042,9 @@ const Pa = (e) => ({
|
|
|
2039
2042
|
overflow: "hidden",
|
|
2040
2043
|
[`${e.componentCls}-overflow-hidden`]: {
|
|
2041
2044
|
[`${e.antCls}-table${e.antCls}-table-bordered>${e.antCls}-table-container`]: {
|
|
2042
|
-
borderBlockEnd:
|
|
2045
|
+
borderBlockEnd: a,
|
|
2043
2046
|
[`${e.antCls}-table-body`]: {
|
|
2044
|
-
borderInlineEnd:
|
|
2047
|
+
borderInlineEnd: a
|
|
2045
2048
|
},
|
|
2046
2049
|
[`${e.antCls}-table-row`]: {
|
|
2047
2050
|
[`${e.antCls}-table-cell`]: {
|
|
@@ -2060,7 +2063,7 @@ const Pa = (e) => ({
|
|
|
2060
2063
|
}
|
|
2061
2064
|
}
|
|
2062
2065
|
};
|
|
2063
|
-
},
|
|
2066
|
+
}, Ba = (e) => ({
|
|
2064
2067
|
[e.componentCls]: {
|
|
2065
2068
|
[`${e.componentCls}-card`]: {
|
|
2066
2069
|
[`${e.antCls}-table-pagination${e.antCls}-pagination`]: {
|
|
@@ -2229,39 +2232,39 @@ const Pa = (e) => ({
|
|
|
2229
2232
|
}
|
|
2230
2233
|
}
|
|
2231
2234
|
});
|
|
2232
|
-
function
|
|
2235
|
+
function Na(e) {
|
|
2233
2236
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
|
|
2234
2237
|
}
|
|
2235
|
-
const
|
|
2238
|
+
const za = Nt.PRESENTED_IMAGE_SIMPLE, Da = {
|
|
2236
2239
|
reload: !0,
|
|
2237
2240
|
fullScreen: !0
|
|
2238
|
-
},
|
|
2241
|
+
}, Oa = Bl.useToken, et = /* @__PURE__ */ ge({
|
|
2239
2242
|
name: "GProTable",
|
|
2240
2243
|
inheritAttrs: !1,
|
|
2241
2244
|
props: he,
|
|
2242
2245
|
emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "columnsStateChange", "loadingChange"],
|
|
2243
2246
|
slots: Object,
|
|
2244
2247
|
setup(e, {
|
|
2245
|
-
emit:
|
|
2248
|
+
emit: a,
|
|
2246
2249
|
slots: l,
|
|
2247
|
-
expose:
|
|
2250
|
+
expose: n
|
|
2248
2251
|
}) {
|
|
2249
|
-
const o =
|
|
2252
|
+
const o = $t({
|
|
2250
2253
|
suffixCls: "table",
|
|
2251
2254
|
isPor: !0
|
|
2252
2255
|
}), {
|
|
2253
|
-
wrapSSR:
|
|
2256
|
+
wrapSSR: s,
|
|
2254
2257
|
hashId: u
|
|
2255
|
-
} =
|
|
2258
|
+
} = rt("ProBaseTable", [Ba, Ia, Aa, Fa], o), {
|
|
2256
2259
|
token: b
|
|
2257
|
-
} =
|
|
2258
|
-
width:
|
|
2259
|
-
} =
|
|
2260
|
-
|
|
2260
|
+
} = Oa(), f = ul(), $ = it(), {
|
|
2261
|
+
width: m
|
|
2262
|
+
} = Pl(), S = w(!1), v = Tt(), i = w(), x = w(), h = w(e.waitRequest);
|
|
2263
|
+
yt(() => h.value = e.waitRequest);
|
|
2261
2264
|
const {
|
|
2262
|
-
toggle:
|
|
2263
|
-
isFullscreen:
|
|
2264
|
-
} =
|
|
2265
|
+
toggle: E,
|
|
2266
|
+
isFullscreen: A
|
|
2267
|
+
} = It(i), F = T(() => !$.value.xl), N = T(() => (e.virtualScroll && Ll(!e.scroll?.y, "参数scroll的Y值不能为空!"), !!(e.scroll?.y && e.virtualScroll))), L = T(() => {
|
|
2265
2268
|
if (e.form === !1) return !1;
|
|
2266
2269
|
const p = {
|
|
2267
2270
|
actions: {
|
|
@@ -2271,163 +2274,163 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, za = {
|
|
|
2271
2274
|
searchText: "查询"
|
|
2272
2275
|
};
|
|
2273
2276
|
return ne(e.form) ? ye(p, e.form) : p;
|
|
2274
|
-
}), K = T(() => L.value === !1 ? {} : L.value), k = T(() => K.value?.autoRequest ?? e.autoRequest), H = T(() => K.value?.actions),
|
|
2275
|
-
const p = e.columns.filter((
|
|
2276
|
-
const P =
|
|
2277
|
-
return
|
|
2277
|
+
}), K = T(() => L.value === !1 ? {} : L.value), k = T(() => K.value?.autoRequest ?? e.autoRequest), H = T(() => K.value?.actions), B = T(() => {
|
|
2278
|
+
const p = e.columns.filter((I) => I.key || I.dataIndex).map((I) => {
|
|
2279
|
+
const P = I.key || I.dataIndex;
|
|
2280
|
+
return I.key = P, I.dataIndex = P, I.align = I.align || e.align, I.uuid = I.uuid || Pt().uuid(15), I;
|
|
2278
2281
|
});
|
|
2279
|
-
return
|
|
2282
|
+
return gl(p, {
|
|
2280
2283
|
align: e.align || "left",
|
|
2281
2284
|
showIndex: e.showIndex ?? !1
|
|
2282
2285
|
});
|
|
2283
|
-
}), [X,
|
|
2286
|
+
}), [X, O] = ga({
|
|
2284
2287
|
loading: V(e, "loading")
|
|
2285
|
-
}), [W, Y] =
|
|
2288
|
+
}), [W, Y] = Pa({
|
|
2286
2289
|
size: V(e, "size")
|
|
2287
2290
|
}), {
|
|
2288
2291
|
paginationInfo: M,
|
|
2289
2292
|
requestPagination: ee,
|
|
2290
|
-
setPagination:
|
|
2291
|
-
} =
|
|
2293
|
+
setPagination: re
|
|
2294
|
+
} = ba({
|
|
2292
2295
|
pagination: V(e, "pagination"),
|
|
2293
|
-
pageItemRender:
|
|
2296
|
+
pageItemRender: vt({
|
|
2294
2297
|
slots: l,
|
|
2295
2298
|
props: e,
|
|
2296
2299
|
key: "pageItemRender"
|
|
2297
2300
|
})
|
|
2298
2301
|
}), {
|
|
2299
|
-
proScroll:
|
|
2302
|
+
proScroll: se,
|
|
2300
2303
|
breakpoint: be
|
|
2301
|
-
} =
|
|
2304
|
+
} = Ra({
|
|
2302
2305
|
scroll: V(e, "scroll"),
|
|
2303
2306
|
autoScroll: V(e, "autoScroll"),
|
|
2304
2307
|
modalScroll: V(e, "modalScroll"),
|
|
2305
2308
|
neverScroll: V(e, "neverScroll"),
|
|
2306
2309
|
rowSelection: V(e, "rowSelection"),
|
|
2307
2310
|
scrollBreakpoint: V(e, "scrollBreakpoint"),
|
|
2308
|
-
innerWidth:
|
|
2309
|
-
columns:
|
|
2311
|
+
innerWidth: m,
|
|
2312
|
+
columns: B,
|
|
2310
2313
|
screens: $
|
|
2311
2314
|
}), {
|
|
2312
2315
|
proColumns: de,
|
|
2313
2316
|
setColumns: Re,
|
|
2314
2317
|
resizeColumnWidth: oe
|
|
2315
|
-
} =
|
|
2318
|
+
} = fa({
|
|
2316
2319
|
draggable: V(e, "draggable"),
|
|
2317
2320
|
neverScroll: V(e, "neverScroll"),
|
|
2318
2321
|
autoScroll: V(e, "autoScroll"),
|
|
2319
2322
|
breakpoint: be,
|
|
2320
|
-
scroll:
|
|
2321
|
-
columns:
|
|
2323
|
+
scroll: se,
|
|
2324
|
+
columns: B
|
|
2322
2325
|
}), {
|
|
2323
2326
|
formCols: Pe,
|
|
2324
2327
|
defaultFormSearch: t
|
|
2325
|
-
} =
|
|
2328
|
+
} = $a({
|
|
2326
2329
|
searchMap: V(e, "searchMap"),
|
|
2327
|
-
columns:
|
|
2330
|
+
columns: B
|
|
2328
2331
|
}), {
|
|
2329
|
-
selectedKeys:
|
|
2332
|
+
selectedKeys: r,
|
|
2330
2333
|
selectedItems: y,
|
|
2331
2334
|
changeRowKey: g,
|
|
2332
|
-
selectRowKey:
|
|
2335
|
+
selectRowKey: C,
|
|
2333
2336
|
selectAllRowKey: c,
|
|
2334
2337
|
syncSelectedRows: fe,
|
|
2335
2338
|
removeRowKeys: U,
|
|
2336
2339
|
clearAllRowKeys: Fe
|
|
2337
|
-
} =
|
|
2340
|
+
} = pa(V(e, "rowKey"), V(e, "rowSelection")), ve = ma(e), {
|
|
2338
2341
|
run: ue,
|
|
2339
2342
|
setTableDataList: Ie,
|
|
2340
2343
|
operateTableDataRow: Se,
|
|
2341
2344
|
isTreeDataRef: xe,
|
|
2342
2345
|
dataSource: ie,
|
|
2343
|
-
handleTableChange:
|
|
2344
|
-
} =
|
|
2346
|
+
handleTableChange: ke
|
|
2347
|
+
} = ha({
|
|
2345
2348
|
...ve,
|
|
2346
2349
|
waitRequest: h
|
|
2347
2350
|
}, {
|
|
2348
2351
|
loading: X,
|
|
2349
2352
|
pageInfo: ee,
|
|
2350
|
-
setPagination:
|
|
2353
|
+
setPagination: re,
|
|
2351
2354
|
removeRowKeys: U,
|
|
2352
2355
|
syncSelectedRows: fe,
|
|
2353
|
-
setLoading:
|
|
2356
|
+
setLoading: O,
|
|
2354
2357
|
setColumns: Re,
|
|
2355
2358
|
columns: de,
|
|
2356
2359
|
defaultFormSearch: t,
|
|
2357
2360
|
params: V(e, "params"),
|
|
2358
2361
|
onRequestError: e.onRequestError,
|
|
2359
2362
|
onBeforeSearchSubmit: e.onBeforeSearchSubmit,
|
|
2360
|
-
hasCustomRender: T(() =>
|
|
2361
|
-
},
|
|
2362
|
-
tableCardEl:
|
|
2363
|
+
hasCustomRender: T(() => Qe(e.customRender || l?.customRender))
|
|
2364
|
+
}, a), {
|
|
2365
|
+
tableCardEl: Ve,
|
|
2363
2366
|
tableScrollYHeight: Oe,
|
|
2364
|
-
tableListToolsHeight:
|
|
2365
|
-
tableScrollEl:
|
|
2366
|
-
tableOverHidden:
|
|
2367
|
-
barRef:
|
|
2368
|
-
} =
|
|
2367
|
+
tableListToolsHeight: Ht,
|
|
2368
|
+
tableScrollEl: st,
|
|
2369
|
+
tableOverHidden: Wt,
|
|
2370
|
+
barRef: Yt
|
|
2371
|
+
} = Ta({
|
|
2369
2372
|
hashId: u,
|
|
2370
|
-
scroll:
|
|
2373
|
+
scroll: se,
|
|
2371
2374
|
baseClassName: o,
|
|
2372
2375
|
fitPage: V(e, "fitPage")
|
|
2373
|
-
}),
|
|
2376
|
+
}), ut = T(() => {
|
|
2374
2377
|
const p = Oe.value && e.fitPage ? {
|
|
2375
2378
|
y: Oe.value
|
|
2376
2379
|
} : {};
|
|
2377
2380
|
return {
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
...F(re),
|
|
2381
|
-
...p
|
|
2382
|
-
},
|
|
2383
|
-
dataSource: F(ie),
|
|
2384
|
-
pagination: F(M),
|
|
2385
|
-
virtualScroll: N.value,
|
|
2386
|
-
columns: F(de).filter((R) => R.show || R.show === void 0)
|
|
2381
|
+
...R(se),
|
|
2382
|
+
...p
|
|
2387
2383
|
};
|
|
2388
|
-
}),
|
|
2384
|
+
}), Mt = T(() => ({
|
|
2385
|
+
size: R(W),
|
|
2386
|
+
scroll: R(ut),
|
|
2387
|
+
dataSource: R(ie),
|
|
2388
|
+
pagination: R(M),
|
|
2389
|
+
virtualScroll: N.value,
|
|
2390
|
+
columns: R(de).filter((p) => p.show || p.show === void 0)
|
|
2391
|
+
})), ct = T(() => {
|
|
2389
2392
|
const p = ne(e.loading) ? ze(e.loading, "spinning") : {};
|
|
2390
|
-
return !p.indicator &&
|
|
2391
|
-
spinning: e.showLoading ?
|
|
2393
|
+
return !p.indicator && v?.indicator?.value && (p.indicator = v?.indicator?.value), {
|
|
2394
|
+
spinning: e.showLoading ? Qe(X.value) : !1,
|
|
2392
2395
|
...p
|
|
2393
2396
|
};
|
|
2394
|
-
}),
|
|
2397
|
+
}), qt = T(() => {
|
|
2395
2398
|
let p;
|
|
2396
|
-
const
|
|
2399
|
+
const I = e.direction === "rtl" ? "bottomLeft" : "right", P = R(M)?.position;
|
|
2397
2400
|
if (P !== null && Array.isArray(P)) {
|
|
2398
2401
|
const z = P.find((te) => te.includes("top")), j = P.find((te) => te.includes("bottom")), _ = P.every((te) => `${te}` == "none");
|
|
2399
|
-
!z && !j && !_ && (p =
|
|
2402
|
+
!z && !j && !_ && (p = I), z && (p = z.toLowerCase().replace("top", "")), j && (p = j.toLowerCase().replace("bottom", ""));
|
|
2400
2403
|
} else
|
|
2401
|
-
p =
|
|
2404
|
+
p = I;
|
|
2402
2405
|
return p;
|
|
2403
2406
|
});
|
|
2404
|
-
|
|
2405
|
-
|
|
2407
|
+
da(() => {
|
|
2408
|
+
S.value ? e.keepAliveReload && ue({
|
|
2406
2409
|
params: e.params
|
|
2407
|
-
}) :
|
|
2410
|
+
}) : S.value = !0;
|
|
2408
2411
|
});
|
|
2409
|
-
const
|
|
2412
|
+
const Kt = async (p, I) => {
|
|
2410
2413
|
if (k.value) {
|
|
2411
2414
|
ue({
|
|
2412
2415
|
params: p
|
|
2413
2416
|
});
|
|
2414
2417
|
return;
|
|
2415
2418
|
}
|
|
2416
|
-
|
|
2419
|
+
I === "reset" ? (a("reset", p), e.request && H.value?.resetReload && ue({
|
|
2417
2420
|
params: p
|
|
2418
|
-
})) : e.request && (
|
|
2421
|
+
})) : e.request && (a("submit", p), ue({
|
|
2419
2422
|
params: p
|
|
2420
2423
|
}));
|
|
2421
|
-
},
|
|
2422
|
-
|
|
2423
|
-
},
|
|
2424
|
-
|
|
2425
|
-
},
|
|
2426
|
-
|
|
2427
|
-
},
|
|
2424
|
+
}, Xe = (p, I, P, z) => {
|
|
2425
|
+
ke(p, I, P, z), a("change", p, I, P, z);
|
|
2426
|
+
}, kt = (p) => {
|
|
2427
|
+
a("expandedRowsChange", p);
|
|
2428
|
+
}, Vt = (p, I) => {
|
|
2429
|
+
a("expand", p, I);
|
|
2430
|
+
}, Xt = (p, I) => oe(p, I), _t = (p, I, P) => {
|
|
2428
2431
|
let z = p;
|
|
2429
|
-
if (
|
|
2430
|
-
const j = J(p) ? typeof p?.[0]?.children == "string" ? p?.[0]?.children : "" : p ? p.toString() : "", _ = P.tooltip === !1 ? {} : P.tooltip, te = P.tooltip === !1 ? 1 : Ce(_?.hiddenLine) && _?.hiddenLine > 0 ? _?.hiddenLine : 1, G = P.tooltip === !1 ? 0 : Ce(_?.width) ? _?.width : 0, Ee = P.tooltip !== !1 &&
|
|
2432
|
+
if (I) {
|
|
2433
|
+
const j = J(p) ? typeof p?.[0]?.children == "string" ? p?.[0]?.children : "" : p ? p.toString() : "", _ = P.tooltip === !1 ? {} : P.tooltip, te = P.tooltip === !1 ? 1 : Ce(_?.hiddenLine) && _?.hiddenLine > 0 ? _?.hiddenLine : 1, G = P.tooltip === !1 ? 0 : Ce(_?.width) ? _?.width : 0, Ee = P.tooltip !== !1 && Ft(j) && G > 0 ? yl(j, {
|
|
2431
2434
|
cssObject: {
|
|
2432
2435
|
fontSize: "14px",
|
|
2433
2436
|
lineHeight: "22px",
|
|
@@ -2436,12 +2439,12 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, za = {
|
|
|
2436
2439
|
}
|
|
2437
2440
|
}) : 0, Le = document.querySelector(`.${o} .ant-table-tbody`), je = d("div", {
|
|
2438
2441
|
class: `${o}-ellipsis-text`
|
|
2439
|
-
}, [p]),
|
|
2442
|
+
}, [p]), ft = () => P.tooltip === !1 || ne(P.tooltip) && Ee < G && G > 0 ? je : d($e, Q({
|
|
2440
2443
|
title: p,
|
|
2441
|
-
getPopupContainer: (
|
|
2444
|
+
getPopupContainer: (_e) => Le ?? _e?.parentNode?.parentNode
|
|
2442
2445
|
}, ne(P.tooltip) ? P.tooltip : {}, {
|
|
2443
2446
|
destroyTooltipOnHide: !0
|
|
2444
|
-
}),
|
|
2447
|
+
}), Na(je) ? je : {
|
|
2445
2448
|
default: () => [je]
|
|
2446
2449
|
});
|
|
2447
2450
|
if (z = d("div", {
|
|
@@ -2449,8 +2452,8 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, za = {
|
|
|
2449
2452
|
style: {
|
|
2450
2453
|
"-webkit-line-clamp": te
|
|
2451
2454
|
}
|
|
2452
|
-
}, [
|
|
2453
|
-
const
|
|
2455
|
+
}, [ft()]), P.copyable) {
|
|
2456
|
+
const _e = typeof P.copyText == "function" ? P.copyText?.(P) : P.copyText || j;
|
|
2454
2457
|
z = d("div", {
|
|
2455
2458
|
class: `${o}-copyable`
|
|
2456
2459
|
}, [d("div", {
|
|
@@ -2458,79 +2461,80 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, za = {
|
|
|
2458
2461
|
style: {
|
|
2459
2462
|
"-webkit-line-clamp": te
|
|
2460
2463
|
}
|
|
2461
|
-
}, [
|
|
2464
|
+
}, [ft()]), d(il, {
|
|
2462
2465
|
class: `${o}-copyable-icon`,
|
|
2463
2466
|
onClick: () => {
|
|
2464
|
-
|
|
2467
|
+
xa(_e), Dl.success("复制成功");
|
|
2465
2468
|
}
|
|
2466
2469
|
}, null)]);
|
|
2467
2470
|
}
|
|
2468
2471
|
}
|
|
2469
2472
|
return z;
|
|
2470
2473
|
};
|
|
2471
|
-
function
|
|
2472
|
-
const p =
|
|
2474
|
+
function dt() {
|
|
2475
|
+
const p = Cl({
|
|
2473
2476
|
slots: l,
|
|
2474
2477
|
props: e,
|
|
2475
2478
|
key: "emptyText"
|
|
2476
2479
|
});
|
|
2477
|
-
if (p !== !1 &&
|
|
2478
|
-
const P = e.emptyTextProps?.extraProps || {}, z = p ||
|
|
2480
|
+
if (p !== !1 && v?.emptyText?.value !== !1) {
|
|
2481
|
+
const P = e.emptyTextProps?.extraProps || {}, z = p || v?.emptyText?.value, j = le(z), _ = j ? pt(z, P) : wt(J(z) ? z : [z]);
|
|
2479
2482
|
return d("div", {
|
|
2480
2483
|
class: D(`${o}-empty-text`, u.value, e.emptyTextProps?.class),
|
|
2481
2484
|
style: e.emptyTextProps?.style
|
|
2482
|
-
}, [j ? _ : J(_) && _.length ? _.map((te) =>
|
|
2483
|
-
image:
|
|
2485
|
+
}, [j ? _ : J(_) && _.length ? _.map((te) => lt(te, P)) : d(Nt, {
|
|
2486
|
+
image: za
|
|
2484
2487
|
}, null)]);
|
|
2485
2488
|
}
|
|
2486
2489
|
return null;
|
|
2487
2490
|
}
|
|
2488
|
-
const
|
|
2489
|
-
const p =
|
|
2491
|
+
const Gt = () => {
|
|
2492
|
+
const p = vt({
|
|
2490
2493
|
slots: l,
|
|
2491
2494
|
props: e,
|
|
2492
2495
|
key: "customRender"
|
|
2493
2496
|
});
|
|
2494
2497
|
if (p) {
|
|
2495
2498
|
if (ie.value?.length) {
|
|
2496
|
-
const
|
|
2499
|
+
const I = ae(R(ie));
|
|
2497
2500
|
return p?.({
|
|
2498
|
-
dataSource:
|
|
2499
|
-
currentData:
|
|
2501
|
+
dataSource: I,
|
|
2502
|
+
currentData: Sa(I, M.value)
|
|
2500
2503
|
});
|
|
2501
2504
|
}
|
|
2502
|
-
return
|
|
2505
|
+
return dt();
|
|
2503
2506
|
}
|
|
2504
2507
|
return d(we, null, null);
|
|
2505
2508
|
};
|
|
2506
|
-
return
|
|
2509
|
+
return Hl({
|
|
2510
|
+
tableScrollState: ut,
|
|
2507
2511
|
tableSize: W,
|
|
2508
2512
|
columns: de,
|
|
2509
|
-
cacheColumns:
|
|
2510
|
-
isMobile:
|
|
2513
|
+
cacheColumns: B,
|
|
2514
|
+
isMobile: F,
|
|
2511
2515
|
formConfig: K,
|
|
2512
2516
|
formAutoRequest: k,
|
|
2513
2517
|
formActions: H,
|
|
2514
|
-
screenWidth:
|
|
2515
|
-
tableListToolsHeight:
|
|
2518
|
+
screenWidth: m,
|
|
2519
|
+
tableListToolsHeight: Ht,
|
|
2516
2520
|
styles: V(e, "styles"),
|
|
2517
2521
|
classNames: V(e, "classNames"),
|
|
2518
2522
|
action: {
|
|
2519
2523
|
setTableSize: Y,
|
|
2520
2524
|
reload: (p) => ue(p),
|
|
2521
|
-
toggle:
|
|
2525
|
+
toggle: E
|
|
2522
2526
|
},
|
|
2523
|
-
setPagination:
|
|
2524
|
-
}),
|
|
2527
|
+
setPagination: re
|
|
2528
|
+
}), n({
|
|
2525
2529
|
formRef: () => ({
|
|
2526
2530
|
getFormSearch: () => ({
|
|
2527
|
-
...
|
|
2528
|
-
...
|
|
2531
|
+
...R(t),
|
|
2532
|
+
...x.value?.getFormSearch(),
|
|
2529
2533
|
...e.params
|
|
2530
2534
|
}),
|
|
2531
|
-
getFormInnerState: () =>
|
|
2535
|
+
getFormInnerState: () => x.value?.getFormSearch() || {},
|
|
2532
2536
|
restFormState: (p) => {
|
|
2533
|
-
h.value = !0, p && p?.(),
|
|
2537
|
+
h.value = !0, p && p?.(), x.value?.resetForm(!1), h.value = !1;
|
|
2534
2538
|
}
|
|
2535
2539
|
}),
|
|
2536
2540
|
actionRef: () => ({
|
|
@@ -2538,43 +2542,43 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, za = {
|
|
|
2538
2542
|
dataSource: ie,
|
|
2539
2543
|
pageInfo: ee,
|
|
2540
2544
|
pagination: M.value,
|
|
2541
|
-
selectedKeys: T(() =>
|
|
2545
|
+
selectedKeys: T(() => r.value),
|
|
2542
2546
|
selectedItems: T(() => y.value),
|
|
2543
2547
|
rowsSelection: {
|
|
2544
2548
|
clear: Fe,
|
|
2545
|
-
select:
|
|
2549
|
+
select: C,
|
|
2546
2550
|
remove: U,
|
|
2547
2551
|
sync: fe,
|
|
2548
2552
|
selectAll: c
|
|
2549
2553
|
},
|
|
2550
2554
|
reload: ue,
|
|
2551
|
-
getLoadingStatus: () =>
|
|
2555
|
+
getLoadingStatus: () => R(X),
|
|
2552
2556
|
reloadAndReset: async (p) => {
|
|
2553
|
-
h.value = !0,
|
|
2557
|
+
h.value = !0, re({
|
|
2554
2558
|
current: 1,
|
|
2555
2559
|
pageSize: ee?.pageSize || 10
|
|
2556
|
-
}), p && p?.callBack && (p.wait ? await p.callBack() : p.callBack()),
|
|
2560
|
+
}), p && p?.callBack && (p.wait ? await p.callBack() : p.callBack()), x.value?.resetForm(!0), h.value = !1;
|
|
2557
2561
|
},
|
|
2558
|
-
setPageInfo:
|
|
2562
|
+
setPageInfo: Xe,
|
|
2559
2563
|
setTableDataList: Ie,
|
|
2560
|
-
setPagination:
|
|
2564
|
+
setPagination: re,
|
|
2561
2565
|
operateTableDataRow: Se,
|
|
2562
|
-
setLoading:
|
|
2566
|
+
setLoading: O
|
|
2563
2567
|
})
|
|
2564
2568
|
}), () => {
|
|
2565
|
-
const p =
|
|
2569
|
+
const p = Qe(e.customRender || l.customRender), I = l.actions?.() || e.actionProps?.actions, P = bl({
|
|
2566
2570
|
slots: l,
|
|
2567
2571
|
props: e,
|
|
2568
2572
|
keys: ["headerTitle", "headerTitleTip", "listToolAfter"],
|
|
2569
2573
|
render: !0
|
|
2570
2574
|
});
|
|
2571
|
-
return
|
|
2575
|
+
return s(d("div", {
|
|
2572
2576
|
ref: i,
|
|
2573
2577
|
class: D(o, u.value, e.class, e.classNames?.root, [{
|
|
2574
|
-
[`${o}-no-scroll`]: !Object.keys(
|
|
2578
|
+
[`${o}-no-scroll`]: !Object.keys(R(se) || {}).length,
|
|
2575
2579
|
[`${o}-table-tree`]: xe.value,
|
|
2576
2580
|
[`${o}-full-page`]: e.fitPage,
|
|
2577
|
-
[`${o}-full-screen`]:
|
|
2581
|
+
[`${o}-full-screen`]: A.value
|
|
2578
2582
|
}]),
|
|
2579
2583
|
style: {
|
|
2580
2584
|
...e.style,
|
|
@@ -2583,33 +2587,33 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, za = {
|
|
|
2583
2587
|
}, [d("div", {
|
|
2584
2588
|
class: D(`${o}-content`, u.value, e.classNames?.content),
|
|
2585
2589
|
style: e.styles?.content
|
|
2586
|
-
}, [(Pe.value.length > 0 || !!l.form) && e.form !== !1 && d(
|
|
2587
|
-
ref:
|
|
2590
|
+
}, [(Pe.value.length > 0 || !!l.form) && e.form !== !1 && d(Ul, {
|
|
2591
|
+
ref: x,
|
|
2588
2592
|
modalScroll: e.modalScroll,
|
|
2589
2593
|
cardBordered: e.cardBordered,
|
|
2590
2594
|
formCols: Pe.value,
|
|
2591
2595
|
prefixCls: o,
|
|
2592
|
-
loading:
|
|
2593
|
-
onSearch:
|
|
2596
|
+
loading: R(X),
|
|
2597
|
+
onSearch: Kt,
|
|
2594
2598
|
defaultFormSearch: t.value
|
|
2595
2599
|
}, {
|
|
2596
2600
|
default: l.form ? () => l.form?.() : null
|
|
2597
2601
|
}), d("div", {
|
|
2598
|
-
ref:
|
|
2602
|
+
ref: Ve,
|
|
2599
2603
|
class: D(e.classNames?.card, u.value, `${o}-card`, e.cardBordered && `${o}-card-border`),
|
|
2600
2604
|
style: e.styles?.card
|
|
2601
|
-
}, [d(
|
|
2605
|
+
}, [d(ua, {
|
|
2602
2606
|
options: e.options ? {
|
|
2603
|
-
...
|
|
2607
|
+
...Da,
|
|
2604
2608
|
...ne(e.options) ? e.options : {}
|
|
2605
2609
|
} : !1,
|
|
2606
2610
|
titleTipText: e.titleTipText,
|
|
2607
2611
|
actionsPlacement: e.actionProps?.placement,
|
|
2608
|
-
actionsRender:
|
|
2612
|
+
actionsRender: I,
|
|
2609
2613
|
headerTitle: P.headerTitle,
|
|
2610
2614
|
listToolAfter: P.listToolAfter,
|
|
2611
2615
|
headerTitleTip: P.headerTitleTip
|
|
2612
|
-
}, null), p ? d(
|
|
2616
|
+
}, null), p ? d(Bt, ct.value, {
|
|
2613
2617
|
default: () => [d("div", {
|
|
2614
2618
|
class: D(`${o}-list ${u.value}`, e.classNames?.list),
|
|
2615
2619
|
style: e.styles?.list
|
|
@@ -2619,18 +2623,18 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, za = {
|
|
|
2619
2623
|
...e.styles?.listContent || {},
|
|
2620
2624
|
height: Oe.value ? pe(Oe.value) : e.styles?.listContent?.height
|
|
2621
2625
|
}
|
|
2622
|
-
}, [
|
|
2623
|
-
class: D(u.value, `${o}-pagination`, `${o}-pagination-${
|
|
2626
|
+
}, [Gt()]), e.pagination !== !1 && ie.value?.length > 0 && d(Nl, Q(ce(R(M)), {
|
|
2627
|
+
class: D(u.value, `${o}-pagination`, `${o}-pagination-${qt.value}`, e.classNames?.pagination),
|
|
2624
2628
|
style: e.styles?.pagination,
|
|
2625
|
-
onChange: (z, j) =>
|
|
2629
|
+
onChange: (z, j) => Xe({
|
|
2626
2630
|
current: z,
|
|
2627
2631
|
pageSize: j
|
|
2628
2632
|
})
|
|
2629
2633
|
}), null)])]
|
|
2630
|
-
}) : d(we, null, [d(
|
|
2634
|
+
}) : d(we, null, [d(zl, Q(Ol(e, Object.keys(Ot)), Mt.value, {
|
|
2631
2635
|
style: e.styles?.table,
|
|
2632
|
-
class: D(e.classNames?.table, u.value,
|
|
2633
|
-
loading:
|
|
2636
|
+
class: D(e.classNames?.table, u.value, Wt.value && `${o}-overflow-hidden`),
|
|
2637
|
+
loading: ct.value,
|
|
2634
2638
|
rowKey: (z) => z[e.rowKey],
|
|
2635
2639
|
transformCellText: (z) => {
|
|
2636
2640
|
e.transformCellText && typeof e.transformCellText && e.transformCellText?.(z);
|
|
@@ -2643,93 +2647,93 @@ const Na = Bt.PRESENTED_IMAGE_SIMPLE, za = {
|
|
|
2643
2647
|
if (J(G))
|
|
2644
2648
|
if (G.length === 0 || G.length === 1 && !le(G[0])) {
|
|
2645
2649
|
G = G?.[0];
|
|
2646
|
-
const Ee =
|
|
2647
|
-
te = Ee.success, G =
|
|
2650
|
+
const Ee = pl(G, j?.columnEmptyText || e?.columnEmptyText || "");
|
|
2651
|
+
te = Ee.success, G = Ca(Ee.value, j?.valueType || e.columns?.find((Le) => (Le.key || Le.dataIndex) === _)?.valueType, o, u.value);
|
|
2648
2652
|
} else G[0]?.type === "template" && (G = G[0]?.children);
|
|
2649
|
-
return j?.ellipsis ?
|
|
2653
|
+
return j?.ellipsis ? _t(G, te, j) : G;
|
|
2650
2654
|
},
|
|
2651
2655
|
rowSelection: e.rowSelection ? {
|
|
2652
2656
|
...ze(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
|
|
2653
|
-
selectedRowKeys:
|
|
2654
|
-
onSelect:
|
|
2657
|
+
selectedRowKeys: r.value || [],
|
|
2658
|
+
onSelect: C,
|
|
2655
2659
|
onSelectAll: c,
|
|
2656
2660
|
onChange: g
|
|
2657
2661
|
} : void 0,
|
|
2658
|
-
onChange:
|
|
2659
|
-
onExpandedRowsChange:
|
|
2660
|
-
onExpand:
|
|
2661
|
-
onResizeColumn: (z, j) =>
|
|
2662
|
+
onChange: Xe,
|
|
2663
|
+
onExpandedRowsChange: kt,
|
|
2664
|
+
onExpand: Vt,
|
|
2665
|
+
onResizeColumn: (z, j) => Xt(z, j)
|
|
2662
2666
|
}), {
|
|
2663
2667
|
...l,
|
|
2664
|
-
emptyText: () =>
|
|
2665
|
-
}),
|
|
2666
|
-
to:
|
|
2668
|
+
emptyText: () => dt()
|
|
2669
|
+
}), st.value && !p && d(Zt, {
|
|
2670
|
+
to: st.value
|
|
2667
2671
|
}, {
|
|
2668
|
-
default: () => [d(
|
|
2669
|
-
ref:
|
|
2672
|
+
default: () => [d(aa, {
|
|
2673
|
+
ref: Yt
|
|
2670
2674
|
}, null)]
|
|
2671
2675
|
})])])])]));
|
|
2672
2676
|
};
|
|
2673
2677
|
}
|
|
2674
2678
|
});
|
|
2675
|
-
|
|
2676
|
-
function
|
|
2679
|
+
et.install = (e) => (e.component(et.name, et), e);
|
|
2680
|
+
function Ua(e, a) {
|
|
2677
2681
|
function l() {
|
|
2678
|
-
const
|
|
2682
|
+
const m = {
|
|
2679
2683
|
params: {},
|
|
2680
2684
|
searchMap: []
|
|
2681
2685
|
};
|
|
2682
|
-
if (
|
|
2683
|
-
if (
|
|
2684
|
-
return ye(
|
|
2685
|
-
if (ne(
|
|
2686
|
-
return ye(
|
|
2686
|
+
if (a?.state) {
|
|
2687
|
+
if (Ge(a.state) && ne(a.state.value))
|
|
2688
|
+
return ye(m, ae(a.state.value));
|
|
2689
|
+
if (ne(a.state) && !Ge(a.state))
|
|
2690
|
+
return ye(m, ae(a.state));
|
|
2687
2691
|
}
|
|
2688
|
-
return
|
|
2692
|
+
return m;
|
|
2689
2693
|
}
|
|
2690
|
-
const
|
|
2691
|
-
request:
|
|
2694
|
+
const n = at(ye(l(), {
|
|
2695
|
+
request: a?.request
|
|
2692
2696
|
}));
|
|
2693
|
-
|
|
2697
|
+
a?.state && q(() => a.state && Ge(a.state) ? a.state.value : a.state, () => {
|
|
2694
2698
|
f();
|
|
2695
2699
|
}, { deep: !0 });
|
|
2696
|
-
const o = T(() => e.value ? e.value.actionRef() : {}),
|
|
2700
|
+
const o = T(() => e.value ? e.value.actionRef() : {}), s = T(() => e.value ? e.value.formRef() : {}), u = T(() => ({
|
|
2697
2701
|
...o.value.pageInfo || {},
|
|
2698
|
-
...
|
|
2699
|
-
})), b =
|
|
2700
|
-
q(() => o.value.loading?.value, (
|
|
2701
|
-
b.value = !!
|
|
2702
|
-
}), q(b, (
|
|
2703
|
-
o.value?.setLoading?.(!!
|
|
2702
|
+
...s.value.getFormSearch?.() || {}
|
|
2703
|
+
})), b = w(!!o.value.loading?.value);
|
|
2704
|
+
q(() => o.value.loading?.value, (m) => {
|
|
2705
|
+
b.value = !!m;
|
|
2706
|
+
}), q(b, (m) => {
|
|
2707
|
+
o.value?.setLoading?.(!!m);
|
|
2704
2708
|
});
|
|
2705
2709
|
function f() {
|
|
2706
|
-
|
|
2710
|
+
Sl(n, l());
|
|
2707
2711
|
}
|
|
2708
|
-
function $(
|
|
2709
|
-
|
|
2712
|
+
function $(m, S) {
|
|
2713
|
+
n.searchMap && (n.searchMap = ae(n.searchMap).map((v) => v.name === m ? ye(v, S) : v));
|
|
2710
2714
|
}
|
|
2711
2715
|
return {
|
|
2712
|
-
formRef:
|
|
2716
|
+
formRef: s,
|
|
2713
2717
|
actionRef: o,
|
|
2714
|
-
tableState:
|
|
2718
|
+
tableState: n,
|
|
2715
2719
|
requestSearch: u,
|
|
2716
2720
|
loading: b,
|
|
2717
2721
|
dataSource: T(() => o?.value?.dataSource?.value || []),
|
|
2718
2722
|
selectedKeys: T(() => o?.value?.selectedKeys?.value || []),
|
|
2719
2723
|
selectedItems: T(() => o?.value?.selectedItems?.value || []),
|
|
2720
2724
|
rowsSelection: o?.value?.rowsSelection,
|
|
2721
|
-
setTableDataList: (
|
|
2722
|
-
reloadAndReset: (
|
|
2723
|
-
setPageInfo: (
|
|
2724
|
-
setPagination: (
|
|
2725
|
-
setLoading: (
|
|
2726
|
-
operateTableDataRow: (
|
|
2727
|
-
reload: (
|
|
2725
|
+
setTableDataList: (m) => o.value?.setTableDataList?.(m),
|
|
2726
|
+
reloadAndReset: (m) => o.value?.reloadAndReset?.(m),
|
|
2727
|
+
setPageInfo: (m, S, v, i) => o.value?.setPageInfo?.(m, S, v, i),
|
|
2728
|
+
setPagination: (m) => o.value?.setPagination?.(m),
|
|
2729
|
+
setLoading: (m) => b.value = m,
|
|
2730
|
+
operateTableDataRow: (m) => o.value?.operateTableDataRow?.(m),
|
|
2731
|
+
reload: (m) => o.value?.reload?.(m),
|
|
2728
2732
|
updateSearchMap: $
|
|
2729
2733
|
};
|
|
2730
2734
|
}
|
|
2731
2735
|
export {
|
|
2732
|
-
|
|
2736
|
+
et as GProTable,
|
|
2733
2737
|
he as proTableProps,
|
|
2734
|
-
|
|
2738
|
+
Ua as useTable
|
|
2735
2739
|
};
|