@unicom-cloud/ui 0.8.101 → 0.8.102
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/Badge.js +7 -54
- package/Copy.js +5 -4
- package/LiquidFill.js +5 -4
- package/List.js +1 -1
- package/Marquee.js +5 -4
- package/QrCode.js +5 -4
- package/Tooltip.js +3 -4
- package/Tour.js +5 -4
- package/anchor/Anchor.js +12 -12
- package/anchor/util.js +10 -10
- package/back-top/index.js +7 -7
- package/badge/index.js +109 -162
- package/card/index.js +63 -43
- package/color-picker/InputHex.js +3 -4
- package/color-picker/InputRgb.js +7 -8
- package/color-picker/Palette.js +3 -4
- package/color-picker/Panel.js +3 -4
- package/color-picker/colors.js +5 -5
- package/color-picker/hooks/useColorPicker.js +3 -4
- package/color-picker/utils.js +14 -15
- package/components/common/utils/PqbCSSTransition.js +1 -1
- package/components/common/utils/constant.js +6 -3
- package/components/common/utils/reactDOM.js +6 -4
- package/components/common/utils/{scrollIntoView.js → scrollIntoViewIfNeeded.js} +1 -1
- package/components/common/utils/setPrimaryColor.js +18 -18
- package/components/common/utils/setTheme.js +8 -9
- package/copy/index.js +3 -2
- package/dist/scroll-into-view-if-needed/compute/index.js +126 -0
- package/dist/scroll-into-view-if-needed/smooth/index.js +70 -0
- package/dist/scroll-into-view-if-needed/src/index.js +19 -19
- package/form/FormItem.js +69 -65
- package/form/context.js +6 -7
- package/grid/Col-.js +86 -0
- package/grid/Col.js +156 -73
- package/grid/Grid.js +71 -67
- package/grid/Row.js +3 -3
- package/grid/index.js +13 -13
- package/index.js +639 -662
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextAreaHeight.js +7 -7
- package/liquid-fill/index.js +5 -4
- package/list/index.js +1 -1
- package/marquee/index.js +5 -4
- package/menu/Item.js +9 -9
- package/package.json +1 -1
- package/qr-code/index.js +5 -4
- package/splitter/SplitBar.js +81 -79
- package/splitter/Splitter.js +70 -78
- package/splitter/hooks/useResizable.js +9 -18
- package/splitter/hooks/useResize.js +10 -10
- package/splitter/hooks/useSizes.js +28 -28
- package/statistic/index.js +10 -10
- package/style.css +1 -1
- package/table/Table.js +369 -370
- package/table/hook/useThResizable.js +5 -4
- package/table/th-resizable/index.js +12 -11
- package/time-picker/util.js +8 -8
- package/tooltip/index.js +1 -2
- package/tour/index.js +5 -4
- package/tree/NodeList.js +1 -1
- package/types/common/utils/constant.d.ts +1 -0
- package/types/common/utils/scrollIntoViewIfNeeded.d.ts +4 -0
- package/types/common/utils/tree.d.ts +1 -0
- package/types/common/utils/tween.d.ts +1 -0
- package/types/pc/anchor/util.d.ts +1 -1
- package/types/pc/badge/interface.d.ts +2 -0
- package/types/pc/card/interface.d.ts +8 -0
- package/types/pc/color-picker/hooks/useColorPicker.d.ts +7 -2
- package/types/pc/color-picker/utils.d.ts +6 -1
- package/types/pc/form/FormItem.d.ts +1 -1
- package/types/pc/grid/Col-.d.ts +4 -0
- package/types/pc/grid/Col.d.ts +3 -2
- package/types/pc/grid/Grid.d.ts +2 -2
- package/types/pc/grid/Item.d.ts +3 -3
- package/types/pc/grid/Row.d.ts +2 -2
- package/types/pc/grid/hook/useResponsiveState.d.ts +2 -2
- package/types/pc/grid/interface.d.ts +13 -7
- package/types/pc/splitter/SplitBar.d.ts +0 -1
- package/types/pc/splitter/hooks/useResizable.d.ts +0 -1
- package/types/pc/splitter/hooks/useResize.d.ts +1 -2
- package/types/pc/splitter/interface.d.ts +0 -8
- package/types/pc/tour/index.d.ts +1 -1
- package/types/pc/upload/interface.d.ts +1 -0
- package/types/pc/utils/constant.d.ts +1 -2
- package/types/pc/utils/dayjs.d.ts +2 -1
- package/types/pc/utils/index.d.ts +2 -5
- package/types/pc/utils/scrollIntoViewIfNeeded.d.ts +3 -0
- package/types/pc/utils/tree.d.ts +2 -1
- package/types/pc/utils/tween.d.ts +1 -1
- package/typography/Ellipsis.js +5 -4
- package/typography/Operations.js +5 -4
- package/upload/request.js +12 -13
- package/upload/request_.js +2 -3
- package/utils/constant.js +5 -5
- package/utils/dayjs.js +13 -12
- package/utils/index.js +261 -284
- package/utils/scrollIntoViewIfNeeded.js +12 -0
- package/utils/tree.js +11 -9
- package/utils/tween.js +5 -5
- package/version/index.js +1 -1
- package/components/common/utils/convertToDurationBasedOnTimeUnits.js +0 -6
- package/dist/compute-scroll-into-view/src/index.js +0 -126
- package/dist/tinycolor/chunk/BOzCVdr0.js +0 -182
- package/dist/tinycolor/customize/index.js +0 -12
- package/dist/tinycolor/src/conversion.js +0 -143
- package/dist/tinycolor/src/css-color-names.js +0 -153
- package/dist/tinycolor/src/format-input.js +0 -77
- package/dist/tinycolor/src/index.js +0 -388
- package/dist/tinycolor/src/util.js +0 -32
- package/types/common/utils/convertToDurationBasedOnTimeUnits.d.ts +0 -3
- package/types/common/utils/scrollIntoView.d.ts +0 -4
- package/types/common/utils/tinycolor.d.ts +0 -1
- package/types/pc/utils/color.d.ts +0 -1
- package/types/pc/utils/computeScrollIntoView.d.ts +0 -1
- package/types/pc/utils/convertToDurationBasedOnTimeUnits.d.ts +0 -3
- package/types/pc/utils/scrollIntoView.d.ts +0 -3
- package/types/pc/utils/tinycolor.d.ts +0 -1
- package/utils/color.js +0 -4
- package/utils/computeScrollIntoView.js +0 -6
- package/utils/convertToDurationBasedOnTimeUnits.js +0 -6
- package/utils/scrollIntoView.js +0 -6
- package/utils/tinycolor.js +0 -29
package/table/Table.js
CHANGED
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { Tween as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import Je from "
|
|
7
|
-
import p from "lodash/isPlainObject";
|
|
8
|
-
import lo from "lodash/throttle";
|
|
9
|
-
import co, { forwardRef as ao, useContext as fo, useMemo as ne, useRef as w, useState as V, useImperativeHandle as uo, useCallback as po, useEffect as Qe } from "react";
|
|
1
|
+
import { jsx as a, jsxs as F, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
+
import { Tween as sr } from "../dist/tween/src/tween.js";
|
|
3
|
+
import lr from "../dist/tween/src/easing.js";
|
|
4
|
+
import ir from "lodash/debounce";
|
|
5
|
+
import cr from "lodash/throttle";
|
|
6
|
+
import ar, { forwardRef as dr, useContext as fr, useMemo as le, useRef as w, useState as V, useImperativeHandle as ur, useCallback as pr, useEffect as Je } from "react";
|
|
10
7
|
import "../config-provider/ConfigProvider.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { on as
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
|
|
8
|
+
import mr from "../components/common/hooks/useIsomorphicLayoutEffect.js";
|
|
9
|
+
import Qe from "../components/common/hooks/useMergeProps.js";
|
|
10
|
+
import Ze from "../components/common/hooks/useUpdateEffect.js";
|
|
11
|
+
import et from "../pagination/Pagination.js";
|
|
12
|
+
import gr from "../spin/index.js";
|
|
13
|
+
import tt from "@unicom-cloud/utils/class-name";
|
|
14
|
+
import { on as ie, off as ce } from "../components/common/utils/dom.js";
|
|
15
|
+
import "../components/common/utils/is.js";
|
|
16
|
+
import { pickDataAttributes as hr } from "../components/common/utils/pick.js";
|
|
17
|
+
import { resizeObserver as yr } from "../components/common/utils/resizeObserver.js";
|
|
18
|
+
import ae from "./ColGroup.js";
|
|
19
|
+
import br from "./hook/useColumns.js";
|
|
20
|
+
import Cr from "./hook/useComponent.js";
|
|
21
|
+
import xr from "./hook/useExpand.js";
|
|
22
|
+
import Sr from "./hook/useRowSelection.js";
|
|
23
|
+
import wr from "./hook/useSorter.js";
|
|
24
|
+
import Tr from "./hook/useStickyClassNames.js";
|
|
25
|
+
import Fr from "./hook/useStickyOffsets.js";
|
|
26
|
+
import Pr from "./tbody/index.js";
|
|
27
|
+
import $r from "./tfoot/index.js";
|
|
28
|
+
import Nr from "./thead/index.js";
|
|
29
|
+
import { deepCloneData as vr, getOriginData as C, getSorterPriority as rt, getSorterFn as ot, getScrollBarHeight as Dr, getScrollBarWidth as Br } from "./util.js";
|
|
30
|
+
import Lr from "../config-provider/context.js";
|
|
31
|
+
import { isPlainObject as p, isFunction as $, isNumber as nt, isArray as M } from "@unicom-cloud/utils/is";
|
|
32
|
+
const zr = [], Rr = [], Hr = {
|
|
34
33
|
showHeader: !0,
|
|
35
34
|
border: !0,
|
|
36
35
|
hover: !0,
|
|
@@ -40,322 +39,321 @@ const zo = [], Ro = [], Ho = {
|
|
|
40
39
|
indentSize: 15,
|
|
41
40
|
showSorterTooltip: !0
|
|
42
41
|
};
|
|
43
|
-
function
|
|
42
|
+
function Er(de, st) {
|
|
44
43
|
const {
|
|
45
|
-
getPrefixCls:
|
|
46
|
-
loadingElement:
|
|
47
|
-
size:
|
|
44
|
+
getPrefixCls: lt,
|
|
45
|
+
loadingElement: it,
|
|
46
|
+
size: De,
|
|
48
47
|
tablePagination: ct,
|
|
49
48
|
renderEmpty: at,
|
|
50
|
-
componentConfig:
|
|
51
|
-
rtl:
|
|
52
|
-
} =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
),
|
|
57
|
-
p(
|
|
58
|
-
p(
|
|
49
|
+
componentConfig: fe,
|
|
50
|
+
rtl: N
|
|
51
|
+
} = fr(Lr), m = Qe(
|
|
52
|
+
de,
|
|
53
|
+
Hr,
|
|
54
|
+
fe?.Table
|
|
55
|
+
), v = Qe(
|
|
56
|
+
p(de?.pagination) ? de?.pagination : {},
|
|
57
|
+
p(fe?.Table?.pagination) ? fe?.Table?.pagination : {},
|
|
59
58
|
ct || {}
|
|
60
59
|
), {
|
|
61
|
-
style:
|
|
62
|
-
className:
|
|
60
|
+
style: dt,
|
|
61
|
+
className: ft,
|
|
63
62
|
component: ut,
|
|
64
63
|
border: b,
|
|
65
|
-
borderCell:
|
|
66
|
-
columns:
|
|
67
|
-
data: g =
|
|
68
|
-
scroll:
|
|
64
|
+
borderCell: ue,
|
|
65
|
+
columns: Be = Rr,
|
|
66
|
+
data: g = zr,
|
|
67
|
+
scroll: l,
|
|
69
68
|
noDataElement: pt,
|
|
70
69
|
showHeader: mt,
|
|
71
70
|
stripe: gt,
|
|
72
|
-
hover:
|
|
73
|
-
pagination:
|
|
74
|
-
onChange:
|
|
71
|
+
hover: ht,
|
|
72
|
+
pagination: T,
|
|
73
|
+
onChange: Y,
|
|
75
74
|
pagePosition: x,
|
|
76
|
-
childrenColumnName:
|
|
77
|
-
indentSize:
|
|
75
|
+
childrenColumnName: E,
|
|
76
|
+
indentSize: yt,
|
|
78
77
|
rowSelection: k,
|
|
79
78
|
tableLayoutFixed: bt,
|
|
80
|
-
header:
|
|
79
|
+
header: Le,
|
|
81
80
|
// 潘启宝添加
|
|
82
|
-
footer:
|
|
83
|
-
virtualized:
|
|
84
|
-
renderPagination:
|
|
85
|
-
summary:
|
|
86
|
-
rowKey:
|
|
87
|
-
} = m,
|
|
88
|
-
() =>
|
|
89
|
-
[g,
|
|
90
|
-
), n =
|
|
91
|
-
|
|
92
|
-
), [
|
|
93
|
-
|
|
94
|
-
|
|
81
|
+
footer: ze,
|
|
82
|
+
virtualized: D,
|
|
83
|
+
renderPagination: Re,
|
|
84
|
+
summary: pe,
|
|
85
|
+
rowKey: K
|
|
86
|
+
} = m, He = le(
|
|
87
|
+
() => vr(g, E),
|
|
88
|
+
[g, E]
|
|
89
|
+
), n = lt?.("table"), me = m.size || (["default", "middle", "small", "mini"].indexOf(De) > -1 ? De : "default"), B = w(null), u = w(null), ge = w(null), h = w(null), O = w(null), he = w(null), j = w(null), q = w(0), ye = w(!1), [Ee, d] = br(m), { currentFilters: Ct, defaultSorters: xt } = zt(), [W, be] = V(1), [St, wt] = V(
|
|
90
|
+
v.pageSize || v.defaultPageSize || 10
|
|
91
|
+
), [ke, Oe] = V(Ct), [Tt, Ft] = V(0), [Pt, $t] = V([]), Ce = Fr(d), [Nt, We] = Tr(
|
|
92
|
+
Ee,
|
|
93
|
+
d,
|
|
95
94
|
n
|
|
96
95
|
), {
|
|
97
|
-
currentSorter:
|
|
98
|
-
activeSorters:
|
|
96
|
+
currentSorter: I,
|
|
97
|
+
activeSorters: f,
|
|
99
98
|
getNextActiveSorters: vt,
|
|
100
99
|
updateStateSorters: Dt
|
|
101
|
-
} =
|
|
100
|
+
} = wr(d, xt), { ComponentTable: U, ComponentBodyWrapper: Bt, ComponentHeaderWrapper: Lt } = Cr(ut), xe = le(() => $(K) ? (e) => K(C(e)) : (e) => e[K], [K]);
|
|
102
101
|
function zt() {
|
|
103
102
|
const e = {};
|
|
104
103
|
let t = [];
|
|
105
|
-
return
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
108
|
-
const s = rt(
|
|
109
|
-
field:
|
|
104
|
+
return d.forEach((r) => {
|
|
105
|
+
const o = r.dataIndex || r.key;
|
|
106
|
+
if (r.defaultFilters && (e[o] = r.defaultFilters), r.filteredValue && (e[o] = r.filteredValue), "defaultSortOrder" in r || "sortOrder" in r) {
|
|
107
|
+
const s = rt(r.sorter), c = "sortOrder" in r ? r.sortOrder : r.defaultSortOrder, i = {
|
|
108
|
+
field: o,
|
|
110
109
|
direction: c,
|
|
111
|
-
sorterFn:
|
|
110
|
+
sorterFn: ot(r.sorter),
|
|
112
111
|
priority: s
|
|
113
112
|
};
|
|
114
|
-
c ?
|
|
115
|
-
(
|
|
116
|
-
) && t.push(
|
|
113
|
+
c ? nt(s) ? t.every(
|
|
114
|
+
(y) => nt(y.priority) || !y.direction
|
|
115
|
+
) && t.push(i) : t.every((y) => !y.direction) ? t.push(i) : t = [i] : t.push(i);
|
|
117
116
|
}
|
|
118
117
|
}), { currentFilters: e, defaultSorters: t };
|
|
119
118
|
}
|
|
120
|
-
const
|
|
121
|
-
const e =
|
|
122
|
-
(
|
|
119
|
+
const G = le(() => {
|
|
120
|
+
const e = d.filter(
|
|
121
|
+
(r) => "filteredValue" in r
|
|
123
122
|
), t = {};
|
|
124
|
-
return e.length && e.forEach((
|
|
125
|
-
const s =
|
|
126
|
-
s !== void 0 && (t[s] =
|
|
123
|
+
return e.length && e.forEach((r, o) => {
|
|
124
|
+
const s = r.key || r.dataIndex || o;
|
|
125
|
+
s !== void 0 && (t[s] = r.filteredValue);
|
|
127
126
|
}), t;
|
|
128
|
-
}, [
|
|
127
|
+
}, [d]), P = le(() => Object.keys(G).length ? G : ke, [ke, G]);
|
|
129
128
|
function Rt(e, t) {
|
|
130
|
-
const
|
|
131
|
-
if (!
|
|
129
|
+
const r = Ye(t);
|
|
130
|
+
if (!r)
|
|
132
131
|
return;
|
|
133
|
-
const
|
|
132
|
+
const o = {
|
|
134
133
|
direction: e,
|
|
135
134
|
field: t,
|
|
136
|
-
sorterFn:
|
|
137
|
-
priority: rt(
|
|
138
|
-
}, s = vt(
|
|
139
|
-
Dt(
|
|
140
|
-
const c =
|
|
141
|
-
|
|
135
|
+
sorterFn: ot(r.sorter),
|
|
136
|
+
priority: rt(r.sorter)
|
|
137
|
+
}, s = vt(o);
|
|
138
|
+
Dt(o, s);
|
|
139
|
+
const c = Z(
|
|
140
|
+
o,
|
|
142
141
|
s,
|
|
143
|
-
|
|
144
|
-
),
|
|
145
|
-
|
|
146
|
-
currentData: C(
|
|
142
|
+
P
|
|
143
|
+
), i = _(c);
|
|
144
|
+
Y?.(z(c), o, P, {
|
|
145
|
+
currentData: C(i),
|
|
147
146
|
currentAllData: C(c),
|
|
148
147
|
action: "sort"
|
|
149
148
|
});
|
|
150
149
|
}
|
|
151
150
|
function Ht(e) {
|
|
152
|
-
const t = function(
|
|
153
|
-
return (c,
|
|
154
|
-
const
|
|
155
|
-
return s === "descend" ? -
|
|
151
|
+
const t = function(o, s) {
|
|
152
|
+
return (c, i) => {
|
|
153
|
+
const y = o(c, i);
|
|
154
|
+
return s === "descend" ? -y : y;
|
|
156
155
|
};
|
|
157
|
-
},
|
|
158
|
-
return
|
|
159
|
-
for (let c = 0,
|
|
160
|
-
const { sorterFn:
|
|
161
|
-
if (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return re;
|
|
156
|
+
}, r = [...e];
|
|
157
|
+
return r.sort((o, s) => s.priority - o.priority), (o, s) => {
|
|
158
|
+
for (let c = 0, i = r.length; c < i; c++) {
|
|
159
|
+
const { sorterFn: y, direction: Ne } = r[c];
|
|
160
|
+
if (!$(y)) continue;
|
|
161
|
+
const se = t(y, Ne)(o, s);
|
|
162
|
+
if (se !== 0)
|
|
163
|
+
return se;
|
|
166
164
|
}
|
|
167
165
|
return 0;
|
|
168
166
|
};
|
|
169
167
|
}
|
|
170
|
-
function
|
|
171
|
-
const
|
|
172
|
-
|
|
168
|
+
function Et(e, t) {
|
|
169
|
+
const r = {
|
|
170
|
+
...P,
|
|
173
171
|
[e.dataIndex]: t
|
|
174
|
-
},
|
|
175
|
-
...
|
|
176
|
-
...
|
|
172
|
+
}, o = {
|
|
173
|
+
...r,
|
|
174
|
+
...G
|
|
177
175
|
};
|
|
178
|
-
if (
|
|
179
|
-
|
|
180
|
-
const s =
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
), c =
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
176
|
+
if (M(t) && t.length) {
|
|
177
|
+
Oe(o);
|
|
178
|
+
const s = Z(
|
|
179
|
+
I,
|
|
180
|
+
f,
|
|
181
|
+
r
|
|
182
|
+
), c = _(s);
|
|
183
|
+
Y?.(
|
|
184
|
+
z(s),
|
|
185
|
+
f.length === 1 ? f[0] : f,
|
|
186
|
+
r,
|
|
189
187
|
{
|
|
190
188
|
currentData: C(c),
|
|
191
189
|
currentAllData: C(s),
|
|
192
190
|
action: "filter"
|
|
193
191
|
}
|
|
194
192
|
);
|
|
195
|
-
} else
|
|
193
|
+
} else M(t) && !t.length && Ie(e);
|
|
196
194
|
}
|
|
197
|
-
function
|
|
195
|
+
function Ie({ dataIndex: e }) {
|
|
198
196
|
const t = {
|
|
199
|
-
|
|
197
|
+
...P
|
|
200
198
|
};
|
|
201
|
-
delete t[e],
|
|
202
|
-
const
|
|
203
|
-
|
|
204
|
-
|
|
199
|
+
delete t[e], Oe(t);
|
|
200
|
+
const r = Z(
|
|
201
|
+
I,
|
|
202
|
+
f,
|
|
205
203
|
t
|
|
206
|
-
),
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
), o = _(r);
|
|
205
|
+
Y?.(
|
|
206
|
+
z(r),
|
|
207
|
+
f.length === 1 ? f[0] : f,
|
|
210
208
|
t,
|
|
211
209
|
{
|
|
212
|
-
currentData: C(
|
|
213
|
-
currentAllData: C(
|
|
210
|
+
currentData: C(o),
|
|
211
|
+
currentAllData: C(r),
|
|
214
212
|
action: "filter"
|
|
215
213
|
}
|
|
216
214
|
);
|
|
217
215
|
}
|
|
218
|
-
const
|
|
219
|
-
function
|
|
220
|
-
let
|
|
221
|
-
Object.keys(
|
|
222
|
-
if (
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
(
|
|
216
|
+
const X = !!d.find((e) => e.fixed === "left"), J = !!d.find((e) => e.fixed === "right"), Q = X || J;
|
|
217
|
+
function Z(e, t, r) {
|
|
218
|
+
let o = (He || []).slice();
|
|
219
|
+
Object.keys(r).forEach((c) => {
|
|
220
|
+
if (r[c] && r[c].length) {
|
|
221
|
+
const i = Ye(c);
|
|
222
|
+
i && $(i.onFilter) && (o = o.filter((y) => r[c].reduce(
|
|
223
|
+
(Ne, se) => Ne || i.onFilter(se, y),
|
|
226
224
|
!1
|
|
227
225
|
)));
|
|
228
226
|
}
|
|
229
227
|
});
|
|
230
|
-
const s = (c) => c.slice().sort(Ht(t)).map((
|
|
231
|
-
...
|
|
232
|
-
[
|
|
233
|
-
} :
|
|
234
|
-
return e.direction &&
|
|
228
|
+
const s = (c) => c.slice().sort(Ht(t)).map((i) => M(i[E]) ? {
|
|
229
|
+
...i,
|
|
230
|
+
[E]: s(i[E])
|
|
231
|
+
} : i);
|
|
232
|
+
return e.direction && $(e.sorterFn) || t.length ? s(o) : o;
|
|
235
233
|
}
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
234
|
+
const L = Z(
|
|
235
|
+
I,
|
|
236
|
+
f,
|
|
237
|
+
P
|
|
240
238
|
);
|
|
241
|
-
function
|
|
242
|
-
const t =
|
|
243
|
-
let
|
|
244
|
-
x === "tl" || x === "bl" ?
|
|
245
|
-
const s =
|
|
246
|
-
c !==
|
|
247
|
-
let
|
|
248
|
-
size:
|
|
239
|
+
function z(e = L) {
|
|
240
|
+
const t = v.pageSize || St || 10, r = me === "middle" ? "default" : me;
|
|
241
|
+
let o = "top";
|
|
242
|
+
x === "tl" || x === "bl" ? o = "bottom" : o = "top";
|
|
243
|
+
const s = M(e) ? e.length : 0, c = Math.ceil(s / t) < W ? 1 : W;
|
|
244
|
+
c !== W && be(c);
|
|
245
|
+
let i = {
|
|
246
|
+
size: r,
|
|
249
247
|
total: s,
|
|
250
248
|
pageSize: t,
|
|
251
249
|
current: c,
|
|
252
250
|
selectProps: {
|
|
253
251
|
triggerProps: {
|
|
254
|
-
position:
|
|
252
|
+
position: o
|
|
255
253
|
}
|
|
256
254
|
}
|
|
257
255
|
};
|
|
258
|
-
return typeof
|
|
259
|
-
...
|
|
260
|
-
...
|
|
261
|
-
}), p(
|
|
262
|
-
...
|
|
263
|
-
...
|
|
264
|
-
}), p(
|
|
265
|
-
...
|
|
266
|
-
...
|
|
267
|
-
}),
|
|
256
|
+
return typeof T == "object" && T.selectProps && (i.selectProps = {
|
|
257
|
+
...i.selectProps,
|
|
258
|
+
...T.selectProps
|
|
259
|
+
}), p(T) && (i = {
|
|
260
|
+
...i,
|
|
261
|
+
...T
|
|
262
|
+
}), p(v) && (i = {
|
|
263
|
+
...i,
|
|
264
|
+
...v
|
|
265
|
+
}), i.onChange = Kt, i;
|
|
268
266
|
}
|
|
269
|
-
const
|
|
270
|
-
function
|
|
271
|
-
const { current:
|
|
272
|
-
return
|
|
267
|
+
const ee = z(), R = _();
|
|
268
|
+
function _(e = L, t = ee) {
|
|
269
|
+
const { current: r = 0, pageSize: o = 10 } = t;
|
|
270
|
+
return T === !1 || p(T) && g.length <= o ? e : e.slice((r - 1) * o, r * o);
|
|
273
271
|
}
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
const e =
|
|
278
|
-
t &&
|
|
279
|
-
const
|
|
280
|
-
return e &&
|
|
281
|
-
|
|
272
|
+
const _e = ir(Ae, 100), S = !!(l && l.y), A = pe?.(C(L)), Se = pe && ar.isValidElement(A) && A.props.fixed, kt = S && Se;
|
|
273
|
+
mr(() => {
|
|
274
|
+
Ae(), ie(window, "resize", _e);
|
|
275
|
+
const e = B.current, t = u.current, r = h.current;
|
|
276
|
+
t && ie(t, "scroll", H);
|
|
277
|
+
const o = e && e.parentNode;
|
|
278
|
+
return e && o && ie(o, "scroll", H), r && ie(r, "scroll", H), () => {
|
|
279
|
+
ce(window, "resize", _e), t && ce(t, "scroll", H), o && ce(o, "scroll", H), r && ce(r, "scroll", H);
|
|
282
280
|
};
|
|
283
281
|
}, [
|
|
284
|
-
G,
|
|
285
282
|
X,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
283
|
+
J,
|
|
284
|
+
l?.x,
|
|
285
|
+
l?.y,
|
|
286
|
+
d.length,
|
|
289
287
|
g
|
|
290
|
-
]),
|
|
291
|
-
const { total: e, pageSize: t } =
|
|
292
|
-
Math.ceil(e / t) <
|
|
293
|
-
}, [g?.length]),
|
|
294
|
-
|
|
295
|
-
}, [g,
|
|
296
|
-
getRootDomElement:
|
|
288
|
+
]), Ze(() => {
|
|
289
|
+
const { total: e, pageSize: t } = z(g);
|
|
290
|
+
Math.ceil(e / t) < W && be(1);
|
|
291
|
+
}, [g?.length]), Ze(() => {
|
|
292
|
+
te();
|
|
293
|
+
}, [g, X, J, N]), ur(st, () => ({
|
|
294
|
+
getRootDomElement: we,
|
|
297
295
|
scrollIntoView: (e) => {
|
|
298
|
-
|
|
296
|
+
he.current && he.current.scrollTo({ key: e });
|
|
299
297
|
},
|
|
300
|
-
getRootDOMNode:
|
|
298
|
+
getRootDOMNode: we
|
|
301
299
|
}));
|
|
302
|
-
function
|
|
303
|
-
return
|
|
300
|
+
function we() {
|
|
301
|
+
return O.current;
|
|
304
302
|
}
|
|
305
|
-
function
|
|
306
|
-
|
|
307
|
-
const e =
|
|
308
|
-
if (e && (
|
|
309
|
-
const
|
|
310
|
-
|
|
303
|
+
function Ae() {
|
|
304
|
+
te();
|
|
305
|
+
const e = we();
|
|
306
|
+
if (e && (Q || l && l.x)) {
|
|
307
|
+
const r = (e.querySelector(`.${n}-body`) || e.querySelector(`.${n}-content-inner`))?.getBoundingClientRect?.()?.width;
|
|
308
|
+
Ft(r);
|
|
311
309
|
}
|
|
312
310
|
}
|
|
313
|
-
const Ot =
|
|
314
|
-
|
|
315
|
-
const e =
|
|
311
|
+
const Ot = pr(
|
|
312
|
+
cr(() => {
|
|
313
|
+
const e = O.current, t = S ? u.current : j.current && j.current.parentNode;
|
|
316
314
|
if (t) {
|
|
317
|
-
const
|
|
318
|
-
|
|
315
|
+
const r = N ? -t.scrollLeft : t.scrollLeft, o = r === 0, s = r + 1 >= t.children[0].getBoundingClientRect().width - t.getBoundingClientRect().width;
|
|
316
|
+
o && s ? re(
|
|
319
317
|
e.classList,
|
|
320
318
|
`${n}-scroll-position-both`
|
|
321
|
-
) :
|
|
319
|
+
) : o ? re(
|
|
322
320
|
e.classList,
|
|
323
|
-
`${n}-scroll-position-${
|
|
324
|
-
) : s ?
|
|
321
|
+
`${n}-scroll-position-${N ? "right" : "left"}`
|
|
322
|
+
) : s ? re(
|
|
325
323
|
e.classList,
|
|
326
|
-
`${n}-scroll-position-${
|
|
327
|
-
) :
|
|
324
|
+
`${n}-scroll-position-${N ? "left" : "right"}`
|
|
325
|
+
) : re(
|
|
328
326
|
e.classList,
|
|
329
327
|
`${n}-scroll-position-middle`
|
|
330
328
|
);
|
|
331
329
|
} else
|
|
332
|
-
e &&
|
|
330
|
+
e && Me(e.classList);
|
|
333
331
|
}, 100),
|
|
334
|
-
[
|
|
332
|
+
[O.current, u.current, S, N]
|
|
335
333
|
);
|
|
336
|
-
function
|
|
337
|
-
if (
|
|
338
|
-
const e =
|
|
339
|
-
e && (
|
|
334
|
+
function te() {
|
|
335
|
+
if (Q || l && p(l) && l.x) {
|
|
336
|
+
const e = O.current;
|
|
337
|
+
e && (X && Ve(
|
|
340
338
|
e.classList,
|
|
341
339
|
`${n}-has-fixed-col-left`
|
|
342
|
-
),
|
|
340
|
+
), J && Ve(
|
|
343
341
|
e.classList,
|
|
344
342
|
`${n}-has-fixed-col-right`
|
|
345
343
|
)), Ot();
|
|
346
344
|
}
|
|
347
345
|
}
|
|
348
|
-
function
|
|
346
|
+
function Ve(e, t) {
|
|
349
347
|
e.contains(t) || e.add(t);
|
|
350
348
|
}
|
|
351
|
-
function
|
|
349
|
+
function Me(e) {
|
|
352
350
|
e.remove(`${n}-scroll-position-both`), e.remove(`${n}-scroll-position-left`), e.remove(`${n}-scroll-position-right`), e.remove(`${n}-scroll-position-middle`);
|
|
353
351
|
}
|
|
354
|
-
function
|
|
355
|
-
e.contains(t) || (
|
|
352
|
+
function re(e, t) {
|
|
353
|
+
e.contains(t) || (Me(e), e.add(t));
|
|
356
354
|
}
|
|
357
355
|
const {
|
|
358
|
-
selectedRowKeys:
|
|
356
|
+
selectedRowKeys: Te,
|
|
359
357
|
indeterminateKeys: Wt,
|
|
360
358
|
onCheckAll: It,
|
|
361
359
|
onCheck: _t,
|
|
@@ -363,264 +361,265 @@ function ko(ce, st) {
|
|
|
363
361
|
setSelectedRowKeys: Vt,
|
|
364
362
|
allSelectedRowKeys: Mt,
|
|
365
363
|
flattenData: Yt
|
|
366
|
-
} =
|
|
367
|
-
function
|
|
368
|
-
return
|
|
364
|
+
} = Sr(m, R, He, xe);
|
|
365
|
+
function Ye(e) {
|
|
366
|
+
return d.find((t, r) => typeof t.key < "u" ? typeof t.key == "number" && typeof e == "string" ? t.key.toString() === e : t.key === e : typeof t.dataIndex < "u" ? t.dataIndex === e : typeof e == "number" ? r === e : !1);
|
|
369
367
|
}
|
|
370
368
|
function Kt(e, t) {
|
|
371
|
-
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
369
|
+
be(e), wt(t), e !== W && jt(), k && !k.checkCrossPage && Te.length && (Vt([]), k.onChange?.([], []));
|
|
370
|
+
const r = { ...z(), current: e, pageSize: t };
|
|
371
|
+
Y?.(
|
|
372
|
+
r,
|
|
373
|
+
f.length === 1 ? f[0] : f,
|
|
374
|
+
P,
|
|
377
375
|
{
|
|
378
376
|
currentData: C(
|
|
379
|
-
|
|
377
|
+
_(L, r)
|
|
380
378
|
),
|
|
381
|
-
currentAllData: C(
|
|
379
|
+
currentAllData: C(L),
|
|
382
380
|
action: "paginate"
|
|
383
381
|
}
|
|
384
|
-
),
|
|
382
|
+
), v.onChange?.(e, t);
|
|
385
383
|
}
|
|
386
384
|
function jt() {
|
|
387
385
|
if (!u.current)
|
|
388
386
|
return;
|
|
389
387
|
const t = u.current.scrollTop;
|
|
390
|
-
new
|
|
388
|
+
new sr({
|
|
391
389
|
from: { scrollTop: t },
|
|
392
390
|
to: { scrollTop: 0 },
|
|
393
|
-
easing:
|
|
391
|
+
easing: lr.quintInOut,
|
|
394
392
|
duration: 300,
|
|
395
|
-
onUpdate: (
|
|
396
|
-
u.current && (u.current.scrollTop =
|
|
393
|
+
onUpdate: (o) => {
|
|
394
|
+
u.current && (u.current.scrollTop = o.scrollTop);
|
|
397
395
|
}
|
|
398
396
|
}).start();
|
|
399
397
|
}
|
|
400
|
-
function
|
|
401
|
-
const { target: t } = e,
|
|
402
|
-
t.scrollLeft !==
|
|
398
|
+
function H(e) {
|
|
399
|
+
const { target: t } = e, r = u.current, o = B.current && B.current.parentNode, s = h.current;
|
|
400
|
+
t.scrollLeft !== q.current && (o && (o.scrollLeft = t.scrollLeft), r && (r.scrollLeft = t.scrollLeft), s && (s.scrollLeft = t.scrollLeft), te()), q.current = e.target.scrollLeft;
|
|
403
401
|
}
|
|
404
402
|
function qt(e) {
|
|
405
|
-
const { target: t } = e,
|
|
406
|
-
t.scrollLeft !==
|
|
403
|
+
const { target: t } = e, r = j.current;
|
|
404
|
+
t.scrollLeft !== q.current && (r.scrollLeft = t.scrollLeft, te()), q.current = e.target.scrollLeft;
|
|
407
405
|
}
|
|
408
|
-
const [
|
|
406
|
+
const [Ke, Ut] = xr(
|
|
409
407
|
m,
|
|
410
408
|
Yt,
|
|
411
|
-
|
|
409
|
+
xe
|
|
412
410
|
);
|
|
413
|
-
let
|
|
414
|
-
|
|
415
|
-
width:
|
|
416
|
-
}),
|
|
417
|
-
maxHeight:
|
|
411
|
+
let je = {}, Fe = {};
|
|
412
|
+
l && (l.x && (typeof l.x == "number" || typeof l.x == "string") && (Fe = {
|
|
413
|
+
width: l.x
|
|
414
|
+
}), l.y && (typeof l.y == "number" || typeof l.y == "string") && (je = {
|
|
415
|
+
maxHeight: l.y
|
|
418
416
|
}));
|
|
419
417
|
function Gt() {
|
|
420
418
|
requestAnimationFrame((e) => {
|
|
421
|
-
const t =
|
|
422
|
-
|
|
423
|
-
const
|
|
424
|
-
|
|
419
|
+
const t = B.current && B.current.parentNode, r = Dr(t);
|
|
420
|
+
r && r > 0 && (t.style.marginBottom = `-${r}px`, t.style.paddingBottom = "0px", h.current && (h.current.style.marginBottom = `-${r}px`, h.current.style.paddingBottom = "0px")), setTimeout(() => {
|
|
421
|
+
const o = u.current;
|
|
422
|
+
Br(o) ? (ye.current = !0, t && (t.style.overflowY = "scroll", t.style.scrollSnapType = "y mandatory"), h.current && (h.current.style.overflowY = "scroll", h.current.style.overflowY = "y mandatory")) : t && ye.current && (ye.current = !1, t.style.overflowY = "auto", t.style.overflowY = "y mandatory", h.current && (h.current.style.overflowY = "auto", h.current.style.overflowY = "y mandatory"));
|
|
425
423
|
}, 0);
|
|
426
424
|
});
|
|
427
425
|
}
|
|
428
|
-
const
|
|
429
|
-
|
|
426
|
+
const qe = /* @__PURE__ */ a(
|
|
427
|
+
Nr,
|
|
430
428
|
{
|
|
431
429
|
...m,
|
|
432
|
-
activeSorters:
|
|
433
|
-
currentSorter:
|
|
434
|
-
selectedRowKeys:
|
|
435
|
-
currentFilters:
|
|
430
|
+
activeSorters: f,
|
|
431
|
+
currentSorter: I,
|
|
432
|
+
selectedRowKeys: Te,
|
|
433
|
+
currentFilters: P,
|
|
436
434
|
onCheckAll: It,
|
|
437
435
|
onSort: Rt,
|
|
438
|
-
data:
|
|
439
|
-
onHandleFilter:
|
|
440
|
-
onHandleFilterReset:
|
|
436
|
+
data: R,
|
|
437
|
+
onHandleFilter: Et,
|
|
438
|
+
onHandleFilterReset: Ie,
|
|
441
439
|
prefixCls: n,
|
|
442
440
|
allSelectedRowKeys: Mt,
|
|
443
|
-
groupColumns:
|
|
444
|
-
stickyOffsets:
|
|
441
|
+
groupColumns: Ee,
|
|
442
|
+
stickyOffsets: Ce,
|
|
445
443
|
groupStickyClassNames: Nt
|
|
446
444
|
}
|
|
447
445
|
);
|
|
448
446
|
function Xt() {
|
|
449
|
-
const e = p(
|
|
450
|
-
return S ||
|
|
451
|
-
|
|
447
|
+
const e = p(l) && l.x === "max-content";
|
|
448
|
+
return S || D ? /* @__PURE__ */ a(Lt, { className: `${n}-header`, children: /* @__PURE__ */ F(
|
|
449
|
+
U,
|
|
452
450
|
{
|
|
453
|
-
ref:
|
|
454
|
-
style: e ? {} :
|
|
451
|
+
ref: B,
|
|
452
|
+
style: e ? {} : Fe,
|
|
455
453
|
children: [
|
|
456
454
|
/* @__PURE__ */ a(
|
|
457
|
-
|
|
455
|
+
ae,
|
|
458
456
|
{
|
|
459
|
-
columns:
|
|
457
|
+
columns: d,
|
|
460
458
|
prefixCls: n,
|
|
461
459
|
producer: !1,
|
|
462
|
-
columnWidths: e &&
|
|
460
|
+
columnWidths: e && l.y ? Pt : null
|
|
463
461
|
}
|
|
464
462
|
),
|
|
465
|
-
|
|
463
|
+
qe
|
|
466
464
|
]
|
|
467
465
|
}
|
|
468
|
-
) }) :
|
|
466
|
+
) }) : qe;
|
|
469
467
|
}
|
|
470
|
-
const
|
|
471
|
-
|
|
468
|
+
const Ue = A && /* @__PURE__ */ a(
|
|
469
|
+
$r,
|
|
472
470
|
{
|
|
473
471
|
prefixCls: n,
|
|
474
|
-
summary:
|
|
475
|
-
data:
|
|
476
|
-
columns:
|
|
477
|
-
stickyOffsets:
|
|
478
|
-
stickyClassNames:
|
|
472
|
+
summary: pe,
|
|
473
|
+
data: R,
|
|
474
|
+
columns: d,
|
|
475
|
+
stickyOffsets: Ce,
|
|
476
|
+
stickyClassNames: We
|
|
479
477
|
}
|
|
480
|
-
),
|
|
481
|
-
|
|
478
|
+
), Ge = /* @__PURE__ */ a(
|
|
479
|
+
Pr,
|
|
482
480
|
{
|
|
483
481
|
...m,
|
|
484
|
-
saveRef: (e) =>
|
|
485
|
-
selectedRowKeys:
|
|
482
|
+
saveRef: (e) => ge.current = e,
|
|
483
|
+
selectedRowKeys: Te,
|
|
486
484
|
indeterminateKeys: Wt,
|
|
487
|
-
expandedRowKeys:
|
|
485
|
+
expandedRowKeys: Ke,
|
|
488
486
|
onCheck: _t,
|
|
489
487
|
onCheckRadio: At,
|
|
490
488
|
onClickExpandBtn: Ut,
|
|
491
|
-
columns:
|
|
492
|
-
data:
|
|
489
|
+
columns: d,
|
|
490
|
+
data: R,
|
|
493
491
|
prefixCls: n,
|
|
494
|
-
hasFixedColumn:
|
|
495
|
-
tableViewWidth:
|
|
496
|
-
indentSize:
|
|
492
|
+
hasFixedColumn: Q,
|
|
493
|
+
tableViewWidth: Tt,
|
|
494
|
+
indentSize: yt,
|
|
497
495
|
noDataElement: pt || at("Table"),
|
|
498
|
-
activeSorters:
|
|
499
|
-
currentSorter:
|
|
500
|
-
stickyOffsets:
|
|
501
|
-
stickyClassNames:
|
|
502
|
-
getRowKey:
|
|
496
|
+
activeSorters: f,
|
|
497
|
+
currentSorter: I,
|
|
498
|
+
stickyOffsets: Ce,
|
|
499
|
+
stickyClassNames: We,
|
|
500
|
+
getRowKey: xe,
|
|
503
501
|
saveVirtualListRef: (e) => {
|
|
504
|
-
|
|
502
|
+
D && (he.current = e, u.current = e?.dom);
|
|
505
503
|
},
|
|
506
504
|
___dangerouslySetInnerHTML___: m.___dangerouslySetInnerHTML___
|
|
507
505
|
}
|
|
508
|
-
),
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
] }) :
|
|
512
|
-
if (
|
|
513
|
-
const e = u.current ||
|
|
506
|
+
), Xe = !D && !kt ? /* @__PURE__ */ F(ve, { children: [
|
|
507
|
+
Ge,
|
|
508
|
+
Ue
|
|
509
|
+
] }) : Ge;
|
|
510
|
+
if (Je(() => {
|
|
511
|
+
const e = u.current || ge.current, t = yr([e], Gt);
|
|
514
512
|
return () => {
|
|
515
513
|
t();
|
|
516
514
|
};
|
|
517
|
-
}, [u.current,
|
|
518
|
-
}), [g, m.consoleTable]), !
|
|
515
|
+
}, [u.current, ge.current]), Je(() => (m.consoleTable && console.table(g), () => {
|
|
516
|
+
}), [g, m.consoleTable]), !Be.length) return null;
|
|
519
517
|
function Jt() {
|
|
520
|
-
const e = p(
|
|
521
|
-
return S && !
|
|
518
|
+
const e = p(l) && l.x === "max-content" && !!l.y && M(g) && g.length > 0;
|
|
519
|
+
return S && !D ? /* @__PURE__ */ a(
|
|
522
520
|
Bt,
|
|
523
521
|
{
|
|
524
522
|
ref: u,
|
|
525
523
|
className: `${n}-body`,
|
|
526
|
-
style:
|
|
527
|
-
children: /* @__PURE__ */
|
|
524
|
+
style: je,
|
|
525
|
+
children: /* @__PURE__ */ F(U, { style: Fe, children: [
|
|
528
526
|
/* @__PURE__ */ a(
|
|
529
|
-
|
|
527
|
+
ae,
|
|
530
528
|
{
|
|
531
|
-
columns:
|
|
529
|
+
columns: d,
|
|
532
530
|
prefixCls: n,
|
|
533
531
|
producer: e,
|
|
534
|
-
onSetColumnWidths:
|
|
535
|
-
expandedRowKeys:
|
|
532
|
+
onSetColumnWidths: $t,
|
|
533
|
+
expandedRowKeys: Ke,
|
|
536
534
|
data: g
|
|
537
535
|
}
|
|
538
536
|
),
|
|
539
|
-
|
|
537
|
+
Xe
|
|
540
538
|
] })
|
|
541
539
|
}
|
|
542
|
-
) :
|
|
540
|
+
) : Xe;
|
|
543
541
|
}
|
|
544
542
|
function Qt() {
|
|
545
543
|
let e = {};
|
|
546
|
-
|
|
547
|
-
width:
|
|
544
|
+
l && p(l) && l.x && (e = {
|
|
545
|
+
width: l.x
|
|
548
546
|
});
|
|
549
|
-
const t = /* @__PURE__ */ a("div", { className: `${n}-tfoot`, ref:
|
|
550
|
-
/* @__PURE__ */ a(
|
|
551
|
-
|
|
552
|
-
] }) }),
|
|
547
|
+
const t = /* @__PURE__ */ a("div", { className: `${n}-tfoot`, ref: h, children: /* @__PURE__ */ F(U, { style: e, children: [
|
|
548
|
+
/* @__PURE__ */ a(ae, { columns: d, prefixCls: n }),
|
|
549
|
+
Ue
|
|
550
|
+
] }) }), r = A && S && Se === "top", o = A && S && Se === "bottom", s = /* @__PURE__ */ F(ve, { children: [
|
|
553
551
|
mt ? Xt() : null,
|
|
554
|
-
|
|
552
|
+
r && t,
|
|
555
553
|
Jt(),
|
|
556
|
-
|
|
557
|
-
] });
|
|
558
|
-
return /* @__PURE__ */
|
|
559
|
-
|
|
554
|
+
o && t
|
|
555
|
+
] }), c = $(Le) && Le(R), i = $(ze) && ze(R);
|
|
556
|
+
return /* @__PURE__ */ F(ve, { children: [
|
|
557
|
+
!!c && /* @__PURE__ */ a("div", { className: `${n}-header-`, children: c }),
|
|
560
558
|
/* @__PURE__ */ a("div", { className: `${n}-container`, children: /* @__PURE__ */ a("div", { className: `${n}-content-scroll`, children: /* @__PURE__ */ a(
|
|
561
559
|
"div",
|
|
562
560
|
{
|
|
563
561
|
className: `${n}-content-inner`,
|
|
564
562
|
onScroll: S ? void 0 : qt,
|
|
565
|
-
children: S ||
|
|
566
|
-
/* @__PURE__ */ a(
|
|
563
|
+
children: S || D ? s : /* @__PURE__ */ F(U, { ref: j, style: e, children: [
|
|
564
|
+
/* @__PURE__ */ a(ae, { prefixCls: n, columns: d }),
|
|
567
565
|
s
|
|
568
566
|
] })
|
|
569
567
|
}
|
|
570
568
|
) }) }),
|
|
571
|
-
|
|
569
|
+
!!i && /* @__PURE__ */ a("div", { className: `${n}-footer`, children: i })
|
|
572
570
|
] });
|
|
573
571
|
}
|
|
574
|
-
const Zt = p(b) ? b.wrapper : b, Pe = p(b) ? b.cell :
|
|
572
|
+
const Zt = p(b) ? b.wrapper : b, Pe = p(b) ? b.cell : ue, er = p(b) ? b.cell || b.headerCell : ue, tr = p(b) ? b.cell || b.bodyCell : ue, rr = tt(
|
|
575
573
|
n,
|
|
576
|
-
`${n}-size-${
|
|
574
|
+
`${n}-size-${me}`,
|
|
577
575
|
{
|
|
578
576
|
[`${n}-border`]: Zt,
|
|
579
577
|
[`${n}-border-cell`]: Pe,
|
|
580
|
-
[`${n}-border-header-cell`]: !Pe &&
|
|
581
|
-
[`${n}-border-body-cell`]: !Pe &&
|
|
578
|
+
[`${n}-border-header-cell`]: !Pe && er,
|
|
579
|
+
[`${n}-border-body-cell`]: !Pe && tr,
|
|
582
580
|
[`${n}-stripe`]: gt,
|
|
583
|
-
[`${n}-hover`]:
|
|
581
|
+
[`${n}-hover`]: ht,
|
|
584
582
|
[`${n}-type-radio`]: k && k.type === "radio",
|
|
585
|
-
[`${n}-layout-fixed`]: bt ||
|
|
586
|
-
[`${n}-fixed-column`]:
|
|
587
|
-
[`${n}-virtualized`]:
|
|
588
|
-
[`${n}-rtl`]:
|
|
583
|
+
[`${n}-layout-fixed`]: bt || l && (l.x || l.y) || Be.find((e) => e.ellipsis),
|
|
584
|
+
[`${n}-fixed-column`]: Q,
|
|
585
|
+
[`${n}-virtualized`]: D,
|
|
586
|
+
[`${n}-rtl`]: N
|
|
589
587
|
},
|
|
590
|
-
|
|
591
|
-
),
|
|
588
|
+
ft
|
|
589
|
+
), $e = x === "tl" || x === "tr" || x === "topCenter", or = tt(`${n}-pagination`, {
|
|
592
590
|
[`${n}-pagination-left`]: x === "tl" || x === "bl",
|
|
593
591
|
[`${n}-pagination-center`]: x === "topCenter" || x === "bottomCenter",
|
|
594
|
-
[`${n}-pagination-top`]:
|
|
592
|
+
[`${n}-pagination-top`]: $e
|
|
595
593
|
});
|
|
596
594
|
let oe = m.loading;
|
|
597
595
|
typeof oe == "boolean" && (oe = { loading: oe });
|
|
598
|
-
const
|
|
599
|
-
|
|
596
|
+
const nr = T !== !1 && (L.length !== 0 || ee?.total > 0);
|
|
597
|
+
let ne;
|
|
598
|
+
return nr && ($(Re) ? ne = Re(/* @__PURE__ */ a(et, { ...ee })) : ne = /* @__PURE__ */ a("div", { className: or, children: /* @__PURE__ */ a(et, { ...ee }) })), /* @__PURE__ */ a(
|
|
600
599
|
"div",
|
|
601
600
|
{
|
|
602
|
-
ref:
|
|
603
|
-
style:
|
|
604
|
-
className:
|
|
605
|
-
...
|
|
606
|
-
children: /* @__PURE__ */
|
|
607
|
-
|
|
601
|
+
ref: O,
|
|
602
|
+
style: dt,
|
|
603
|
+
className: rr,
|
|
604
|
+
...hr(m),
|
|
605
|
+
children: /* @__PURE__ */ F(
|
|
606
|
+
gr,
|
|
608
607
|
{
|
|
609
608
|
className: `${n}-spin`,
|
|
610
|
-
element:
|
|
609
|
+
element: it,
|
|
611
610
|
...oe,
|
|
612
611
|
children: [
|
|
613
|
-
|
|
612
|
+
$e && ne,
|
|
614
613
|
Qt(),
|
|
615
|
-
|
|
614
|
+
!$e && ne
|
|
616
615
|
]
|
|
617
616
|
}
|
|
618
617
|
)
|
|
619
618
|
}
|
|
620
619
|
);
|
|
621
620
|
}
|
|
622
|
-
const
|
|
623
|
-
|
|
621
|
+
const kr = dr(Er);
|
|
622
|
+
kr.displayName = "Table";
|
|
624
623
|
export {
|
|
625
|
-
|
|
624
|
+
kr as default
|
|
626
625
|
};
|