@vtable-guild/vtable-guild 2.6.3 → 2.6.4
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/css/style.css +7 -4
- package/css/tailwind3-utilities.css +7 -4
- package/dist/core/src/components/VirtualList/VirtualList.d.ts.map +1 -1
- package/dist/core/src/components/VirtualList/VirtualList.mjs +97 -91
- package/dist/css/style.css +7 -4
- package/dist/css/tailwind3-utilities.css +7 -4
- package/dist/index.full.mjs +3065 -2930
- package/dist/table/src/components/Table.d.ts +1 -1
- package/dist/table/src/components/Table.d.ts.map +1 -1
- package/dist/table/src/components/Table.mjs +384 -359
- package/dist/table/src/components/VirtualTableBody.d.ts.map +1 -1
- package/dist/table/src/components/VirtualTableBody.mjs +2 -1
- package/dist/table/src/composables/useAutoHeight.d.ts +32 -0
- package/dist/table/src/composables/useAutoHeight.d.ts.map +1 -0
- package/dist/table/src/composables/useAutoHeight.mjs +66 -0
- package/dist/table/src/composables/useAutoHeight.test.d.ts +2 -0
- package/dist/table/src/composables/useAutoHeight.test.d.ts.map +1 -0
- package/dist/table/src/composables/useColumnMetrics.d.ts.map +1 -1
- package/dist/table/src/composables/useColumnMetrics.mjs +49 -49
- package/dist/table/src/composables/useColumnMetrics.test.d.ts +2 -0
- package/dist/table/src/composables/useColumnMetrics.test.d.ts.map +1 -0
- package/dist/table/src/composables/useColumnWindow.mjs +16 -16
- package/dist/table/src/composables/useResize.d.ts.map +1 -1
- package/dist/table/src/composables/useResize.mjs +37 -31
- package/dist/table/src/composables/useScroll.d.ts +8 -0
- package/dist/table/src/composables/useScroll.d.ts.map +1 -1
- package/dist/table/src/composables/useScroll.mjs +37 -37
- package/dist/table/src/composables/useVirtual.d.ts +35 -0
- package/dist/table/src/composables/useVirtual.d.ts.map +1 -1
- package/dist/table/src/composables/useVirtual.mjs +44 -16
- package/dist/table/src/index.d.ts.map +1 -1
- package/dist/table/src/types/table.d.ts +9 -1
- package/dist/table/src/types/table.d.ts.map +1 -1
- package/dist/theme/src/presets/antdv/table.d.ts +3 -1
- package/dist/theme/src/presets/antdv/table.d.ts.map +1 -1
- package/dist/theme/src/presets/antdv/table.mjs +10 -1
- package/dist/theme/src/presets/element-plus/table.d.ts +3 -1
- package/dist/theme/src/presets/element-plus/table.d.ts.map +1 -1
- package/dist/theme/src/presets/element-plus/table.mjs +4 -1
- package/package.json +1 -1
|
@@ -1,74 +1,76 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Pt, inject as Wt, computed as a, provide as Se, ref as S, onMounted as Kt, onBeforeUnmount as _t, watch as b, createVNode as n, Fragment as Mt, isVNode as jt } from "vue";
|
|
2
2
|
import "../../../core/src/utils/tv.mjs";
|
|
3
|
-
import { prefixThemeConfig as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
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
|
-
import {
|
|
34
|
-
|
|
35
|
-
|
|
3
|
+
import { prefixThemeConfig as Vt, prefixVtgClassNames as B } from "../../../core/src/utils/classPrefix.mjs";
|
|
4
|
+
import { devWarn as Yt } from "../../../core/src/utils/devWarn.mjs";
|
|
5
|
+
import { mergeThemeConfigs as R, useTheme as $t } from "../../../core/src/composables/useTheme.mjs";
|
|
6
|
+
import { mergeDeep as N } from "../../../core/src/utils/mergeDeep.mjs";
|
|
7
|
+
import be from "../../../core/src/components/Scrollbar.mjs";
|
|
8
|
+
import { VTABLE_GUILD_INJECTION_KEY as Re } from "../../../core/src/plugin/index.mjs";
|
|
9
|
+
import { resolveTooltipThemePreset as Ut, resolveScrollbarThemePreset as Gt, resolveRadioThemePreset as Xt, resolveInputThemePreset as Jt, resolveCheckboxThemePreset as qt, resolveButtonThemePreset as Qt, resolveTableThemePreset as Zt, resolveTableLocalePreset as el, resolveBuiltInTableLocale as tl } from "../../../theme/src/presets/index.mjs";
|
|
10
|
+
import { antdvTableCompatClasses as ll } from "../../../theme/src/compat/antdv-table.mjs";
|
|
11
|
+
import { getEllipsisConfig as ol } from "../utils/cell.mjs";
|
|
12
|
+
import { getRootCompatClass as al } from "../utils/compat.mjs";
|
|
13
|
+
import { useScroll as nl } from "../composables/useScroll.mjs";
|
|
14
|
+
import { useAutoHeight as rl } from "../composables/useAutoHeight.mjs";
|
|
15
|
+
import { useColumnMetrics as dl } from "../composables/useColumnMetrics.mjs";
|
|
16
|
+
import { resolveFixedColumnRanges as il } from "../composables/useColumnWindow.mjs";
|
|
17
|
+
import { useExpand as sl } from "../composables/useExpand.mjs";
|
|
18
|
+
import { useResize as ul } from "../composables/useResize.mjs";
|
|
19
|
+
import { useVirtual as cl, INVALID_SCROLL_Y_FALLBACK as fl } from "../composables/useVirtual.mjs";
|
|
20
|
+
import { useTreeData as ml } from "../composables/useTreeData.mjs";
|
|
21
|
+
import { useHoverState as pl } from "../composables/useHoverState.mjs";
|
|
22
|
+
import { TABLE_CONTEXT_KEY as vl } from "../context.mjs";
|
|
23
|
+
import { EXPAND_COLUMN as yl, SELECTION_COLUMN as wl } from "../constants.mjs";
|
|
24
|
+
import { resolveTablePresetConfig as hl } from "../preset-config.mjs";
|
|
25
|
+
import De from "./TableHeader.mjs";
|
|
26
|
+
import Ee from "./TableBody.mjs";
|
|
27
|
+
import xl from "./VirtualTableBody.mjs";
|
|
28
|
+
import Ie from "./TableLoading.mjs";
|
|
29
|
+
import F from "./ColGroup.mjs";
|
|
30
|
+
import { antdvTableTheme as Cl } from "../../../theme/src/presets/antdv/table.mjs";
|
|
31
|
+
import { useColumns as Te } from "../composables/useColumns.mjs";
|
|
32
|
+
import { useSorter as gl } from "../composables/useSorter.mjs";
|
|
33
|
+
import { useFilter as Sl } from "../composables/useFilter.mjs";
|
|
34
|
+
import { useSelection as bl } from "../composables/useSelection.mjs";
|
|
35
|
+
import { cn as x } from "tailwind-variants";
|
|
36
|
+
function He(l) {
|
|
37
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !jt(l);
|
|
36
38
|
}
|
|
37
|
-
const
|
|
38
|
-
function
|
|
39
|
+
const Rl = [["xxxl", 2e3], ["xxl", 1600], ["xl", 1200], ["lg", 992], ["md", 768], ["sm", 576], ["xs", 0]];
|
|
40
|
+
function Le() {
|
|
39
41
|
if (typeof window > "u")
|
|
40
42
|
return /* @__PURE__ */ new Set(["md", "sm", "xs"]);
|
|
41
|
-
const l = window.innerWidth,
|
|
42
|
-
return
|
|
43
|
+
const l = window.innerWidth, i = /* @__PURE__ */ new Set();
|
|
44
|
+
return Rl.forEach(([s, r]) => {
|
|
43
45
|
if (s === "xs") {
|
|
44
|
-
l < 576 &&
|
|
46
|
+
l < 576 && i.add("xs");
|
|
45
47
|
return;
|
|
46
48
|
}
|
|
47
|
-
l >= r &&
|
|
48
|
-
}),
|
|
49
|
+
l >= r && i.add(s);
|
|
50
|
+
}), i;
|
|
49
51
|
}
|
|
50
|
-
function
|
|
52
|
+
function Be(l, i) {
|
|
51
53
|
return l.reduce((s, r) => {
|
|
52
54
|
if (typeof r == "symbol")
|
|
53
55
|
return s.push(r), s;
|
|
54
|
-
if (r.responsive?.length && !r.responsive.some((m) =>
|
|
56
|
+
if (r.responsive?.length && !r.responsive.some((m) => i.has(m)))
|
|
55
57
|
return s;
|
|
56
|
-
const
|
|
58
|
+
const y = r.fixed === !0 ? "left" : r.fixed;
|
|
57
59
|
if ("children" in r && Array.isArray(r.children)) {
|
|
58
|
-
const m =
|
|
60
|
+
const m = Be(r.children, i);
|
|
59
61
|
return m.length === 0 || s.push({
|
|
60
62
|
...r,
|
|
61
|
-
fixed:
|
|
63
|
+
fixed: y,
|
|
62
64
|
children: m
|
|
63
65
|
}), s;
|
|
64
66
|
}
|
|
65
|
-
return s.push(
|
|
67
|
+
return s.push(y === r.fixed ? r : {
|
|
66
68
|
...r,
|
|
67
|
-
fixed:
|
|
69
|
+
fixed: y
|
|
68
70
|
}), s;
|
|
69
71
|
}, []);
|
|
70
72
|
}
|
|
71
|
-
const
|
|
73
|
+
const io = /* @__PURE__ */ Pt({
|
|
72
74
|
name: "VTable",
|
|
73
75
|
props: {
|
|
74
76
|
dataSource: {
|
|
@@ -251,38 +253,38 @@ const Jl = /* @__PURE__ */ Nt({
|
|
|
251
253
|
}
|
|
252
254
|
},
|
|
253
255
|
emits: {
|
|
254
|
-
change: (l,
|
|
255
|
-
resizeColumn: (l,
|
|
256
|
+
change: (l, i, s) => !0,
|
|
257
|
+
resizeColumn: (l, i) => !0
|
|
256
258
|
},
|
|
257
259
|
slots: Object,
|
|
258
260
|
setup(l, {
|
|
259
|
-
slots:
|
|
261
|
+
slots: i,
|
|
260
262
|
emit: s
|
|
261
263
|
}) {
|
|
262
|
-
const r =
|
|
263
|
-
const t = r?.theme ?? {}, o =
|
|
264
|
+
const r = Wt(Re, null), y = a(() => r?.themePreset ?? "antdv"), m = a(() => r?.cssMode ?? "prebuilt"), C = a(() => r?.classPrefix ?? "vtg"), Ne = a(() => {
|
|
265
|
+
const t = r?.theme ?? {}, o = y.value, d = (u) => Vt(u, m.value, C.value);
|
|
264
266
|
return {
|
|
265
267
|
...t,
|
|
266
|
-
button:
|
|
267
|
-
checkbox:
|
|
268
|
-
input:
|
|
269
|
-
radio:
|
|
270
|
-
scrollbar:
|
|
271
|
-
tooltip:
|
|
268
|
+
button: R(d(Qt(o)), t.button),
|
|
269
|
+
checkbox: R(d(qt(o)), t.checkbox),
|
|
270
|
+
input: R(d(Jt(o)), t.input),
|
|
271
|
+
radio: R(d(Xt(o)), t.radio),
|
|
272
|
+
scrollbar: R(d(Gt(o)), t.scrollbar),
|
|
273
|
+
tooltip: R(d(Ut(o)), t.tooltip)
|
|
272
274
|
};
|
|
273
275
|
});
|
|
274
|
-
|
|
276
|
+
Se(Re, {
|
|
275
277
|
get themePreset() {
|
|
276
|
-
return
|
|
278
|
+
return y.value;
|
|
277
279
|
},
|
|
278
280
|
get cssMode() {
|
|
279
281
|
return m.value;
|
|
280
282
|
},
|
|
281
283
|
get classPrefix() {
|
|
282
|
-
return
|
|
284
|
+
return C.value;
|
|
283
285
|
},
|
|
284
286
|
get theme() {
|
|
285
|
-
return
|
|
287
|
+
return Ne.value;
|
|
286
288
|
},
|
|
287
289
|
get locale() {
|
|
288
290
|
return r?.locale ?? "zh-CN";
|
|
@@ -294,189 +296,212 @@ const Jl = /* @__PURE__ */ Nt({
|
|
|
294
296
|
return r?.localeOverrides ?? {};
|
|
295
297
|
}
|
|
296
298
|
});
|
|
297
|
-
const
|
|
299
|
+
const Fe = a(() => Zt(y.value) ?? Cl), {
|
|
298
300
|
slots: e
|
|
299
|
-
} =
|
|
300
|
-
compatClasses:
|
|
301
|
-
}),
|
|
301
|
+
} = $t("table", Fe, l, {
|
|
302
|
+
compatClasses: ll
|
|
303
|
+
}), D = r?.compatClass === !0 ? (t) => `ant-table-${t}` : void 0, A = a(() => l.locale ?? r?.locale ?? "zh-CN"), Ae = a(() => ({
|
|
302
304
|
...r?.locales ?? {},
|
|
303
305
|
...l.locales ?? {}
|
|
304
|
-
})),
|
|
305
|
-
const t =
|
|
306
|
-
return
|
|
307
|
-
}),
|
|
308
|
-
function
|
|
309
|
-
|
|
306
|
+
})), ke = a(() => {
|
|
307
|
+
const t = el(y.value), o = tl(y.value, A.value), d = Ae.value[A.value]?.table, u = N(N(t, o), d);
|
|
308
|
+
return N(u, N(r?.localeOverrides?.table ?? {}, l.localeOverrides));
|
|
309
|
+
}), X = S(Le());
|
|
310
|
+
function k() {
|
|
311
|
+
X.value = Le();
|
|
310
312
|
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}),
|
|
314
|
-
window.removeEventListener("resize",
|
|
313
|
+
Kt(() => {
|
|
314
|
+
k(), window.addEventListener("resize", k);
|
|
315
|
+
}), _t(() => {
|
|
316
|
+
window.removeEventListener("resize", k);
|
|
315
317
|
});
|
|
316
|
-
const
|
|
317
|
-
leafColumns:
|
|
318
|
-
} =
|
|
318
|
+
const J = a(() => Be(l.columns, X.value)), g = a(() => l.sticky === !0 ? {} : typeof l.sticky == "object" ? l.sticky : void 0), {
|
|
319
|
+
leafColumns: T
|
|
320
|
+
} = Te(() => J.value), {
|
|
319
321
|
getSortOrder: O,
|
|
320
|
-
toggleSortOrder:
|
|
321
|
-
sortData:
|
|
322
|
-
sorterState:
|
|
323
|
-
sorterResult:
|
|
324
|
-
sortColumns:
|
|
325
|
-
} =
|
|
326
|
-
columns: () =>
|
|
322
|
+
toggleSortOrder: Oe,
|
|
323
|
+
sortData: ze,
|
|
324
|
+
sorterState: Pe,
|
|
325
|
+
sorterResult: q,
|
|
326
|
+
sortColumns: We
|
|
327
|
+
} = gl({
|
|
328
|
+
columns: () => T.value,
|
|
327
329
|
tableSortDirections: () => l.sortDirections,
|
|
328
330
|
onSorterChange(t) {
|
|
329
|
-
const o =
|
|
330
|
-
s("change",
|
|
331
|
+
const o = P();
|
|
332
|
+
s("change", z(), t, {
|
|
331
333
|
action: "sort",
|
|
332
334
|
currentDataSource: o
|
|
333
335
|
});
|
|
334
336
|
}
|
|
335
337
|
}), {
|
|
336
|
-
getFilteredValue:
|
|
337
|
-
confirmFilter:
|
|
338
|
-
resetFilter:
|
|
339
|
-
getAllFilters:
|
|
340
|
-
filterData:
|
|
341
|
-
} =
|
|
342
|
-
columns: () =>
|
|
338
|
+
getFilteredValue: Ke,
|
|
339
|
+
confirmFilter: _e,
|
|
340
|
+
resetFilter: Me,
|
|
341
|
+
getAllFilters: z,
|
|
342
|
+
filterData: je
|
|
343
|
+
} = Sl({
|
|
344
|
+
columns: () => T.value,
|
|
343
345
|
onFilterChange(t) {
|
|
344
|
-
const o =
|
|
345
|
-
s("change", t,
|
|
346
|
+
const o = P();
|
|
347
|
+
s("change", t, q.value, {
|
|
346
348
|
action: "filter",
|
|
347
349
|
currentDataSource: o
|
|
348
350
|
});
|
|
349
351
|
}
|
|
350
352
|
});
|
|
351
|
-
function
|
|
353
|
+
function P() {
|
|
352
354
|
let t = l.dataSource;
|
|
353
|
-
return t =
|
|
355
|
+
return t = je(t), t = ze(t), t;
|
|
354
356
|
}
|
|
355
|
-
const
|
|
356
|
-
function
|
|
357
|
+
const W = a(() => P());
|
|
358
|
+
function H(t, o) {
|
|
357
359
|
return typeof l.rowKey == "function" ? l.rowKey(t) : typeof l.rowKey == "string" && l.rowKey in t ? t[l.rowKey] : o;
|
|
358
360
|
}
|
|
359
361
|
const {
|
|
360
|
-
flattenData:
|
|
361
|
-
rowMetaMap:
|
|
362
|
+
flattenData: Q,
|
|
363
|
+
rowMetaMap: Z,
|
|
362
364
|
isTreeData: K,
|
|
363
|
-
toggleTreeExpand:
|
|
364
|
-
isTreeExpanded:
|
|
365
|
-
indentSize:
|
|
366
|
-
} =
|
|
367
|
-
data: () =>
|
|
365
|
+
toggleTreeExpand: Ve,
|
|
366
|
+
isTreeExpanded: Ye,
|
|
367
|
+
indentSize: $e
|
|
368
|
+
} = ml({
|
|
369
|
+
data: () => W.value,
|
|
368
370
|
childrenColumnName: () => l.childrenColumnName,
|
|
369
371
|
indentSize: () => l.indentSize,
|
|
370
|
-
getRowKey:
|
|
372
|
+
getRowKey: H,
|
|
371
373
|
defaultExpandedRowKeys: () => l.defaultExpandedRowKeys,
|
|
372
374
|
expandedRowKeys: () => l.expandedRowKeys,
|
|
373
375
|
defaultExpandAllRows: () => l.defaultExpandAllRows,
|
|
374
376
|
onExpand: l.onExpand,
|
|
375
377
|
onExpandedRowsChange: l.onExpandedRowsChange
|
|
376
378
|
}), {
|
|
377
|
-
hoverRange:
|
|
378
|
-
setHoverRange:
|
|
379
|
-
clearHoverRange:
|
|
380
|
-
} =
|
|
381
|
-
isSelected:
|
|
382
|
-
isDisabled:
|
|
383
|
-
getSelectionState:
|
|
384
|
-
toggleRow:
|
|
385
|
-
toggleAll:
|
|
386
|
-
allCheckedState:
|
|
387
|
-
invertSelection:
|
|
388
|
-
clearSelection:
|
|
389
|
-
getChangeableRowKeys:
|
|
390
|
-
} =
|
|
379
|
+
hoverRange: Ue,
|
|
380
|
+
setHoverRange: Ge,
|
|
381
|
+
clearHoverRange: Xe
|
|
382
|
+
} = pl(100), p = a(() => K.value ? Q.value.map((t) => t.record) : W.value), {
|
|
383
|
+
isSelected: Je,
|
|
384
|
+
isDisabled: qe,
|
|
385
|
+
getSelectionState: Qe,
|
|
386
|
+
toggleRow: Ze,
|
|
387
|
+
toggleAll: et,
|
|
388
|
+
allCheckedState: tt,
|
|
389
|
+
invertSelection: lt,
|
|
390
|
+
clearSelection: ot,
|
|
391
|
+
getChangeableRowKeys: at
|
|
392
|
+
} = bl({
|
|
391
393
|
rowSelection: () => l.rowSelection,
|
|
392
|
-
getRowKey:
|
|
393
|
-
data: () =>
|
|
394
|
-
visibleData: () =>
|
|
394
|
+
getRowKey: H,
|
|
395
|
+
data: () => W.value,
|
|
396
|
+
visibleData: () => p.value,
|
|
395
397
|
childrenColumnName: () => l.childrenColumnName,
|
|
396
398
|
onSelectionChange() {
|
|
397
|
-
s("change",
|
|
399
|
+
s("change", z(), q.value, {
|
|
398
400
|
action: "select",
|
|
399
|
-
currentDataSource:
|
|
401
|
+
currentDataSource: p.value
|
|
400
402
|
});
|
|
401
403
|
}
|
|
402
404
|
}), {
|
|
403
|
-
isExpanded:
|
|
404
|
-
toggleExpand:
|
|
405
|
-
} =
|
|
405
|
+
isExpanded: nt,
|
|
406
|
+
toggleExpand: rt
|
|
407
|
+
} = sl({
|
|
406
408
|
expandable: () => l.expandable,
|
|
407
|
-
getRowKey:
|
|
408
|
-
data: () =>
|
|
409
|
-
}),
|
|
409
|
+
getRowKey: H,
|
|
410
|
+
data: () => p.value
|
|
411
|
+
}), ee = (t) => {
|
|
410
412
|
const o = l.expandable;
|
|
411
413
|
return o ? o.rowExpandable ? o.rowExpandable(t) : !!o.expandedRowRender : !1;
|
|
412
|
-
},
|
|
413
|
-
|
|
414
|
-
},
|
|
415
|
-
const t = l.expandable, o = l.rowSelection,
|
|
416
|
-
key:
|
|
414
|
+
}, dt = (t, o) => {
|
|
415
|
+
ee(t) && rt(t, o);
|
|
416
|
+
}, it = "__vtg_selection__", st = "__vtg_expand__", ut = a(() => {
|
|
417
|
+
const t = l.expandable, o = l.rowSelection, d = t && t.showExpandColumn !== !1 ? {
|
|
418
|
+
key: st,
|
|
417
419
|
title: "",
|
|
418
420
|
width: t.columnWidth ?? 48,
|
|
419
421
|
align: "center",
|
|
420
422
|
fixed: t.fixed === !0 ? "left" : t.fixed
|
|
421
423
|
} : null, u = o ? {
|
|
422
|
-
key:
|
|
424
|
+
key: it,
|
|
423
425
|
title: "",
|
|
424
426
|
width: o.columnWidth ?? 48,
|
|
425
427
|
align: "center",
|
|
426
428
|
fixed: o.fixed === !0 ? "left" : o.fixed || void 0
|
|
427
|
-
} : null,
|
|
428
|
-
let
|
|
429
|
-
for (const c of
|
|
430
|
-
if (c ===
|
|
431
|
-
|
|
429
|
+
} : null, w = [];
|
|
430
|
+
let h = !1, v = !1;
|
|
431
|
+
for (const c of J.value) {
|
|
432
|
+
if (c === yl) {
|
|
433
|
+
d && !h && (w.push(d), h = !0);
|
|
432
434
|
continue;
|
|
433
435
|
}
|
|
434
|
-
if (c ===
|
|
435
|
-
u && !v && (
|
|
436
|
+
if (c === wl) {
|
|
437
|
+
u && !v && (w.push(u), v = !0);
|
|
436
438
|
continue;
|
|
437
439
|
}
|
|
438
|
-
|
|
440
|
+
w.push(c);
|
|
439
441
|
}
|
|
440
|
-
return
|
|
442
|
+
return d && !h && w.unshift(d), u && !v && w.unshift(u), w;
|
|
441
443
|
}), {
|
|
442
444
|
leafColumns: f,
|
|
443
|
-
headerRows:
|
|
444
|
-
} =
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
445
|
+
headerRows: _
|
|
446
|
+
} = Te(() => ut.value), ct = a(() => _.value.length > 1), {
|
|
447
|
+
columnWidths: M,
|
|
448
|
+
startResize: ft,
|
|
449
|
+
isResizing: mt
|
|
450
|
+
} = ul({
|
|
451
|
+
onResizeColumn(t, o) {
|
|
452
|
+
s("resizeColumn", t, o);
|
|
453
|
+
}
|
|
454
|
+
}), {
|
|
455
|
+
headerWrapRef: j,
|
|
456
|
+
bodyWrapRef: te,
|
|
457
|
+
scrollState: le,
|
|
458
|
+
handleBodyScroll: oe,
|
|
459
|
+
fixedOffsets: ae,
|
|
460
|
+
syncHorizontalScroll: pt
|
|
461
|
+
} = nl({
|
|
462
|
+
displayColumns: () => f.value,
|
|
463
|
+
columnWidths: M
|
|
464
|
+
}), ne = a(() => al({
|
|
465
|
+
compatClass: D,
|
|
466
|
+
fixedOffsets: ae,
|
|
467
|
+
scrollState: le,
|
|
468
|
+
empty: p.value.length === 0,
|
|
458
469
|
fixedHeader: l.scroll?.y !== void 0,
|
|
459
|
-
fixedColumn:
|
|
460
|
-
horizontalScroll:
|
|
461
|
-
layoutFixed:
|
|
462
|
-
})),
|
|
470
|
+
fixedColumn: de.value && re.value,
|
|
471
|
+
horizontalScroll: de.value,
|
|
472
|
+
layoutFixed: V.value === "fixed"
|
|
473
|
+
})), E = a(() => l.scroll?.y === "auto"), vt = a(() => E.value || l.showHeader !== !1 && (!!l.scroll?.y || !!l.sticky)), re = a(() => f.value.some((t) => t.fixed === "left" || t.fixed === "right")), de = a(() => l.scroll?.x !== void 0 || !!l.expandable?.fixed), yt = a(() => T.value.some((t) => ol(t).enabled)), V = a(() => l.tableLayout ? l.tableLayout : l.scroll?.y || l.scroll?.x || re.value || yt.value ? "fixed" : "auto"), wt = a(() => {
|
|
463
474
|
if (g.value)
|
|
464
475
|
return {
|
|
465
476
|
position: "sticky",
|
|
466
477
|
top: `${g.value.offsetHeader ?? 0}px`,
|
|
467
478
|
zIndex: "4"
|
|
468
479
|
};
|
|
480
|
+
}), ie = S(null), se = S(null), {
|
|
481
|
+
bodyHeight: ue
|
|
482
|
+
} = rl({
|
|
483
|
+
enabled: () => E.value,
|
|
484
|
+
wrapperEl: () => ie.value,
|
|
485
|
+
headerEl: () => j.value,
|
|
486
|
+
summaryEl: () => se.value,
|
|
487
|
+
hasData: () => p.value.length > 0
|
|
488
|
+
}), ht = a(() => {
|
|
489
|
+
const t = l.scroll?.y;
|
|
490
|
+
if (t !== void 0)
|
|
491
|
+
return E.value ? ue.value : typeof t == "number" ? Number.isFinite(t) && t > 0 ? t : void 0 : t;
|
|
469
492
|
}), {
|
|
470
|
-
enabled:
|
|
471
|
-
itemHeight:
|
|
472
|
-
listHeight:
|
|
473
|
-
fixedHeight:
|
|
474
|
-
|
|
493
|
+
enabled: L,
|
|
494
|
+
itemHeight: xt,
|
|
495
|
+
listHeight: Ct,
|
|
496
|
+
fixedHeight: gt,
|
|
497
|
+
resolvedScrollY: St
|
|
498
|
+
} = cl({
|
|
475
499
|
virtual: () => l.virtual,
|
|
476
500
|
scrollY: () => l.scroll?.y,
|
|
477
501
|
size: () => l.size,
|
|
478
|
-
rowHeight: () => l.rowHeight
|
|
479
|
-
|
|
502
|
+
rowHeight: () => l.rowHeight,
|
|
503
|
+
measuredHeight: () => ue.value
|
|
504
|
+
}), ce = a(() => T.value.some((t) => !!t.customCell || !!t.customRender)), Y = a(() => !ct.value || l.bordered ? {
|
|
480
505
|
table: "",
|
|
481
506
|
th: "",
|
|
482
507
|
td: ""
|
|
@@ -484,74 +509,72 @@ const Jl = /* @__PURE__ */ Nt({
|
|
|
484
509
|
table: e.groupedHeaderTable(),
|
|
485
510
|
th: e.groupedHeaderTh(),
|
|
486
511
|
td: e.groupedHeaderTd()
|
|
487
|
-
}),
|
|
488
|
-
|
|
512
|
+
}), I = a(() => x(e.table(), Y.value.table) ?? ""), fe = a(() => x(e.th(), Y.value.th) ?? ""), $ = a(() => x(e.td(), Y.value.td) ?? "");
|
|
513
|
+
b([L, ce], ([t, o]) => {
|
|
514
|
+
}, {
|
|
515
|
+
immediate: !0
|
|
516
|
+
}), b([() => l.virtual, St], ([t, o]) => {
|
|
517
|
+
if (!t) return;
|
|
518
|
+
const d = String(l.scroll?.y);
|
|
519
|
+
o.kind === "compat-px" ? Yt("vtable-scroll-y-compat-px", `[VTable] virtual 模式下字符串 scroll.y(${d})按 ${o.value}px 解析,这是兼容行为;请改用数字或 'auto'。`) : o.kind === "invalid-string" || o.kind === "invalid-number" && l.scroll?.y && `${fl}`;
|
|
489
520
|
}, {
|
|
490
521
|
immediate: !0
|
|
491
522
|
});
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
t && (
|
|
495
|
-
}),
|
|
496
|
-
t && (
|
|
523
|
+
const me = S(null), pe = S(null);
|
|
524
|
+
b(() => me.value?.wrapRef, (t) => {
|
|
525
|
+
t && (te.value = t);
|
|
526
|
+
}), b(() => pe.value?.wrapRef, (t) => {
|
|
527
|
+
t && (te.value = t);
|
|
497
528
|
});
|
|
498
|
-
const
|
|
499
|
-
|
|
500
|
-
startResize: vt,
|
|
501
|
-
isResizing: wt
|
|
502
|
-
} = ll({
|
|
503
|
-
onResizeColumn(t, o) {
|
|
504
|
-
s("resizeColumn", t, o);
|
|
505
|
-
}
|
|
506
|
-
}), yt = n(() => el(f.value)), ce = n(() => l.virtualColumn ? T.value ? re.value ? "列上有 customCell / customRender,可能返回 colSpan / rowSpan;单元格合并会让某个 td 缺席,进而破坏列宽不变量(虚拟模式本就不支持合并)" : yt.value.contiguous ? null : "固定列必须分列两端:左固定连成前缀、右固定连成后缀,中间夹着的固定列会被窗口跳过" : "它只作用于虚拟表体,需要同时开启 virtual 与 scroll.y" : null), V = n(() => l.virtualColumn && ce.value === null);
|
|
507
|
-
D(ce, (t) => {
|
|
529
|
+
const bt = a(() => il(f.value)), ve = a(() => l.virtualColumn ? L.value ? ce.value ? "列上有 customCell / customRender,可能返回 colSpan / rowSpan;单元格合并会让某个 td 缺席,进而破坏列宽不变量(虚拟模式本就不支持合并)" : bt.value.contiguous ? null : "固定列必须分列两端:左固定连成前缀、右固定连成后缀,中间夹着的固定列会被窗口跳过" : "它只作用于虚拟表体,需要同时开启 virtual 与 scroll.y" : null), U = a(() => l.virtualColumn && ve.value === null);
|
|
530
|
+
b(ve, (t) => {
|
|
508
531
|
}, {
|
|
509
532
|
immediate: !0
|
|
510
533
|
});
|
|
511
534
|
const {
|
|
512
|
-
metrics:
|
|
513
|
-
} =
|
|
514
|
-
enabled: () =>
|
|
515
|
-
headerEl: () =>
|
|
535
|
+
metrics: ye
|
|
536
|
+
} = dl({
|
|
537
|
+
enabled: () => U.value,
|
|
538
|
+
headerEl: () => j.value,
|
|
516
539
|
columns: () => f.value,
|
|
517
|
-
columnWidths:
|
|
540
|
+
columnWidths: M,
|
|
518
541
|
hasHeader: () => l.showHeader !== !1
|
|
519
542
|
});
|
|
520
|
-
|
|
543
|
+
b([U, ye], ([t, o]) => {
|
|
521
544
|
!t || o || l.showHeader;
|
|
522
545
|
}, {
|
|
523
546
|
immediate: !0
|
|
524
547
|
});
|
|
525
|
-
function
|
|
526
|
-
return K.value ?
|
|
548
|
+
function Rt(t) {
|
|
549
|
+
return K.value ? Z.value.get(t)?.level ?? 0 : 0;
|
|
527
550
|
}
|
|
528
|
-
function
|
|
529
|
-
return l.rowClassName ? typeof l.rowClassName == "function" ? l.rowClassName(t, o,
|
|
551
|
+
function Dt(t, o) {
|
|
552
|
+
return l.rowClassName ? typeof l.rowClassName == "function" ? l.rowClassName(t, o, Rt(t)) : l.rowClassName : "";
|
|
530
553
|
}
|
|
531
|
-
function
|
|
554
|
+
function Et(t, o) {
|
|
532
555
|
return l.customRow?.(t, o);
|
|
533
556
|
}
|
|
534
|
-
function
|
|
557
|
+
function It(t, o) {
|
|
535
558
|
return l.customHeaderRow?.(t, o);
|
|
536
559
|
}
|
|
537
|
-
function
|
|
560
|
+
function Tt(t) {
|
|
538
561
|
if (typeof t.title != "function")
|
|
539
562
|
return t.title ?? "";
|
|
540
|
-
const o = t,
|
|
563
|
+
const o = t, d = We.value.filter((u) => !!u.column);
|
|
541
564
|
return t.title({
|
|
542
565
|
sortOrder: o.sorter ? O(o) ?? void 0 : void 0,
|
|
543
|
-
sortColumn:
|
|
544
|
-
sortColumns:
|
|
545
|
-
filters:
|
|
566
|
+
sortColumn: Pe.value.column,
|
|
567
|
+
sortColumns: d.length > 0 ? d : void 0,
|
|
568
|
+
filters: z()
|
|
546
569
|
});
|
|
547
570
|
}
|
|
548
|
-
function
|
|
571
|
+
function Ht(t) {
|
|
549
572
|
return !!(t.sorter && O(t));
|
|
550
573
|
}
|
|
551
|
-
const
|
|
574
|
+
const we = {
|
|
552
575
|
width: "100%",
|
|
553
576
|
minWidth: "100%"
|
|
554
|
-
},
|
|
577
|
+
}, Lt = {
|
|
555
578
|
thSortable: e.thSortable,
|
|
556
579
|
thSorted: e.thSorted,
|
|
557
580
|
tdSorted: e.tdSorted,
|
|
@@ -628,223 +651,225 @@ const Jl = /* @__PURE__ */ Nt({
|
|
|
628
651
|
resizeHandle: e.resizeHandle,
|
|
629
652
|
tdRowHover: e.tdRowHover,
|
|
630
653
|
tdRowSelectedHover: e.tdRowSelectedHover
|
|
631
|
-
},
|
|
632
|
-
return
|
|
633
|
-
bodyCell:
|
|
634
|
-
headerCell:
|
|
635
|
-
empty:
|
|
654
|
+
}, he = a(() => hl(y.value)), xe = S(!1);
|
|
655
|
+
return Se(vl, {
|
|
656
|
+
bodyCell: i.bodyCell,
|
|
657
|
+
headerCell: i.headerCell,
|
|
658
|
+
empty: i.empty,
|
|
636
659
|
getSortOrder: O,
|
|
637
|
-
toggleSortOrder:
|
|
638
|
-
isColumnSorted:
|
|
639
|
-
getFilteredValue:
|
|
640
|
-
confirmFilter:
|
|
641
|
-
resetFilter:
|
|
642
|
-
customFilterDropdown:
|
|
643
|
-
customFilterIcon:
|
|
644
|
-
showSorterTooltip:
|
|
645
|
-
headerEllipsis:
|
|
646
|
-
subThemeSlots:
|
|
647
|
-
presetConfig:
|
|
648
|
-
themePreset:
|
|
660
|
+
toggleSortOrder: Oe,
|
|
661
|
+
isColumnSorted: Ht,
|
|
662
|
+
getFilteredValue: Ke,
|
|
663
|
+
confirmFilter: _e,
|
|
664
|
+
resetFilter: Me,
|
|
665
|
+
customFilterDropdown: i.customFilterDropdown,
|
|
666
|
+
customFilterIcon: i.customFilterIcon,
|
|
667
|
+
showSorterTooltip: a(() => l.showSorterTooltip ?? he.value.showSorterTooltip),
|
|
668
|
+
headerEllipsis: a(() => l.headerEllipsis),
|
|
669
|
+
subThemeSlots: Lt,
|
|
670
|
+
presetConfig: he,
|
|
671
|
+
themePreset: y,
|
|
649
672
|
cssMode: m,
|
|
650
|
-
classPrefix:
|
|
651
|
-
vtgClass: (t) =>
|
|
652
|
-
compatClass:
|
|
653
|
-
localeName:
|
|
654
|
-
locale:
|
|
673
|
+
classPrefix: C,
|
|
674
|
+
vtgClass: (t) => B(t, m.value, C.value),
|
|
675
|
+
compatClass: D,
|
|
676
|
+
localeName: A,
|
|
677
|
+
locale: ke,
|
|
655
678
|
rowSelection: () => l.rowSelection,
|
|
656
|
-
isSelected:
|
|
657
|
-
isDisabledRow:
|
|
658
|
-
getSelectionState:
|
|
659
|
-
toggleRow:
|
|
660
|
-
toggleAll:
|
|
661
|
-
allCheckedState: () =>
|
|
662
|
-
getRowKey:
|
|
663
|
-
invertSelection:
|
|
664
|
-
clearSelection:
|
|
665
|
-
getChangeableRowKeys:
|
|
666
|
-
fixedOffsets:
|
|
667
|
-
scrollState:
|
|
668
|
-
leafColumnCount:
|
|
669
|
-
bordered:
|
|
670
|
-
tableLayout:
|
|
671
|
-
sticky:
|
|
672
|
-
getRowProps:
|
|
673
|
-
getRowClassName:
|
|
674
|
-
getHeaderRowProps:
|
|
675
|
-
getColumnTitle:
|
|
679
|
+
isSelected: Je,
|
|
680
|
+
isDisabledRow: qe,
|
|
681
|
+
getSelectionState: Qe,
|
|
682
|
+
toggleRow: Ze,
|
|
683
|
+
toggleAll: et,
|
|
684
|
+
allCheckedState: () => tt.value,
|
|
685
|
+
getRowKey: H,
|
|
686
|
+
invertSelection: lt,
|
|
687
|
+
clearSelection: ot,
|
|
688
|
+
getChangeableRowKeys: at,
|
|
689
|
+
fixedOffsets: ae,
|
|
690
|
+
scrollState: le,
|
|
691
|
+
leafColumnCount: a(() => f.value.length),
|
|
692
|
+
bordered: a(() => l.bordered),
|
|
693
|
+
tableLayout: V,
|
|
694
|
+
sticky: a(() => l.sticky),
|
|
695
|
+
getRowProps: Et,
|
|
696
|
+
getRowClassName: Dt,
|
|
697
|
+
getHeaderRowProps: It,
|
|
698
|
+
getColumnTitle: Tt,
|
|
676
699
|
getPopupContainer: l.getPopupContainer,
|
|
677
700
|
transformCellText: l.transformCellText,
|
|
678
701
|
expandable: () => l.expandable,
|
|
679
|
-
isExpanded:
|
|
680
|
-
toggleExpand:
|
|
681
|
-
isRowExpandable:
|
|
682
|
-
columnWidths:
|
|
683
|
-
startResize:
|
|
684
|
-
isResizing: () =>
|
|
685
|
-
displayColumns:
|
|
702
|
+
isExpanded: nt,
|
|
703
|
+
toggleExpand: dt,
|
|
704
|
+
isRowExpandable: ee,
|
|
705
|
+
columnWidths: M,
|
|
706
|
+
startResize: ft,
|
|
707
|
+
isResizing: () => mt.value,
|
|
708
|
+
displayColumns: a(() => f.value),
|
|
686
709
|
registerSummaryFixed: (t) => {
|
|
687
|
-
|
|
710
|
+
xe.value = t;
|
|
688
711
|
},
|
|
689
712
|
isTreeData: K,
|
|
690
|
-
treeFlattenData:
|
|
691
|
-
getFlattenRow: (t) =>
|
|
692
|
-
toggleTreeExpand:
|
|
693
|
-
isTreeExpanded:
|
|
694
|
-
treeIndentSize:
|
|
695
|
-
hoverRange:
|
|
696
|
-
setHoverRange:
|
|
697
|
-
clearHoverRange:
|
|
698
|
-
hoverable:
|
|
713
|
+
treeFlattenData: Q,
|
|
714
|
+
getFlattenRow: (t) => Z.value.get(t),
|
|
715
|
+
toggleTreeExpand: Ve,
|
|
716
|
+
isTreeExpanded: Ye,
|
|
717
|
+
treeIndentSize: $e,
|
|
718
|
+
hoverRange: Ue,
|
|
719
|
+
setHoverRange: Ge,
|
|
720
|
+
clearHoverRange: Xe,
|
|
721
|
+
hoverable: a(() => l.hoverable !== !1)
|
|
699
722
|
}), () => {
|
|
700
723
|
let t;
|
|
701
|
-
const o = l.title ? l.title(
|
|
702
|
-
data:
|
|
703
|
-
}) : null,
|
|
704
|
-
data:
|
|
705
|
-
}) : null, u =
|
|
706
|
-
tableLayout:
|
|
724
|
+
const o = l.title ? l.title(p.value) : i.title ? i.title({
|
|
725
|
+
data: p.value
|
|
726
|
+
}) : null, d = l.footer ? l.footer(p.value) : i.footer ? i.footer({
|
|
727
|
+
data: p.value
|
|
728
|
+
}) : null, u = i.summary ? i.summary() : null, w = xe.value !== !1, h = l.scroll, v = {
|
|
729
|
+
tableLayout: V.value
|
|
707
730
|
};
|
|
708
|
-
|
|
709
|
-
const c = l.loading,
|
|
731
|
+
h?.x ? (v.width = typeof h.x == "number" ? `${h.x}px` : h.x, v.minWidth = "100%") : v.width = "100%";
|
|
732
|
+
const c = l.loading, Bt = c === !0 || typeof c == "object" && c !== null && c.spinning !== !1, Nt = typeof c == "object" && c !== null ? c.indicator : void 0, Ft = typeof c == "object" && c !== null ? c.tip : void 0, Ce = Bt && (i.loading ? n(Ie, {
|
|
710
733
|
loadingClass: e.loading()
|
|
711
|
-
},
|
|
734
|
+
}, He(t = i.loading()) ? t : {
|
|
712
735
|
default: () => [t]
|
|
713
|
-
}) :
|
|
736
|
+
}) : n(Ie, {
|
|
714
737
|
loadingClass: e.loading(),
|
|
715
|
-
indicator:
|
|
716
|
-
tip:
|
|
738
|
+
indicator: Nt,
|
|
739
|
+
tip: Ft
|
|
717
740
|
}, null));
|
|
718
|
-
if (
|
|
719
|
-
const
|
|
720
|
-
ref:
|
|
721
|
-
class:
|
|
722
|
-
style:
|
|
723
|
-
}, [
|
|
724
|
-
class:
|
|
725
|
-
}, [
|
|
726
|
-
class:
|
|
741
|
+
if (vt.value) {
|
|
742
|
+
const At = l.showHeader !== !1 ? n("div", {
|
|
743
|
+
ref: j,
|
|
744
|
+
class: x(e.headerWrapper(), g.value && D?.("sticky-holder")),
|
|
745
|
+
style: wt.value
|
|
746
|
+
}, [n("div", {
|
|
747
|
+
class: B("block w-full min-w-full", m.value, C.value)
|
|
748
|
+
}, [n("table", {
|
|
749
|
+
class: I.value,
|
|
727
750
|
style: v
|
|
728
|
-
}, [
|
|
751
|
+
}, [n(F, {
|
|
729
752
|
columns: f.value
|
|
730
|
-
}, null),
|
|
731
|
-
rows:
|
|
753
|
+
}, null), n(De, {
|
|
754
|
+
rows: _.value,
|
|
732
755
|
theadClass: e.thead(),
|
|
733
756
|
rowClass: e.tr(),
|
|
734
|
-
thClass:
|
|
757
|
+
thClass: fe.value,
|
|
735
758
|
headerCellInnerClass: e.headerCellInner()
|
|
736
|
-
}, null)])])]) : null,
|
|
737
|
-
dataSource:
|
|
759
|
+
}, null)])])]) : null, kt = L.value ? n(xl, {
|
|
760
|
+
dataSource: p.value,
|
|
738
761
|
columns: f.value,
|
|
739
762
|
tbodyClass: e.tbody(),
|
|
740
763
|
rowClass: e.tr(),
|
|
741
|
-
tdClass:
|
|
764
|
+
tdClass: $.value,
|
|
742
765
|
emptyClass: e.empty(),
|
|
743
766
|
bodyCellEllipsisClass: e.bodyCellEllipsis(),
|
|
744
|
-
tableClass:
|
|
767
|
+
tableClass: I.value,
|
|
745
768
|
tableStyle: v,
|
|
746
769
|
rowKey: l.rowKey,
|
|
747
|
-
height:
|
|
748
|
-
itemHeight:
|
|
749
|
-
fixedHeight:
|
|
750
|
-
virtualColumn:
|
|
751
|
-
columnMetrics:
|
|
770
|
+
height: Ct.value,
|
|
771
|
+
itemHeight: xt.value,
|
|
772
|
+
fixedHeight: gt.value,
|
|
773
|
+
virtualColumn: U.value,
|
|
774
|
+
columnMetrics: ye.value,
|
|
752
775
|
showScrollBar: "hover",
|
|
753
|
-
onVirtualScroll: (
|
|
754
|
-
|
|
776
|
+
onVirtualScroll: (ge) => {
|
|
777
|
+
pt(ge.x, ge.maxX);
|
|
755
778
|
}
|
|
756
|
-
}, null) : null,
|
|
757
|
-
ref:
|
|
758
|
-
maxHeight:
|
|
779
|
+
}, null) : null, Ot = L.value ? null : n(be, {
|
|
780
|
+
ref: me,
|
|
781
|
+
maxHeight: ht.value,
|
|
759
782
|
wrapClass: e.bodyWrapper(),
|
|
760
|
-
viewStyle:
|
|
761
|
-
onScroll:
|
|
783
|
+
viewStyle: we,
|
|
784
|
+
onScroll: oe
|
|
762
785
|
}, {
|
|
763
|
-
default: () => [
|
|
764
|
-
class:
|
|
786
|
+
default: () => [n("table", {
|
|
787
|
+
class: I.value,
|
|
765
788
|
style: v
|
|
766
|
-
}, [
|
|
789
|
+
}, [n(F, {
|
|
767
790
|
columns: f.value
|
|
768
|
-
}, null),
|
|
769
|
-
dataSource:
|
|
791
|
+
}, null), n(Ee, {
|
|
792
|
+
dataSource: p.value,
|
|
770
793
|
columns: f.value,
|
|
771
794
|
tbodyClass: e.tbody(),
|
|
772
795
|
rowClass: e.tr(),
|
|
773
|
-
tdClass:
|
|
796
|
+
tdClass: $.value,
|
|
774
797
|
emptyClass: e.empty(),
|
|
775
798
|
bodyCellEllipsisClass: e.bodyCellEllipsis(),
|
|
776
799
|
rowKey: l.rowKey
|
|
777
|
-
}, null), u && !
|
|
800
|
+
}, null), u && !w && n("tfoot", {
|
|
778
801
|
class: e.summary()
|
|
779
802
|
}, [u])])]
|
|
780
|
-
}),
|
|
781
|
-
|
|
803
|
+
}), zt = u && w ? n("div", {
|
|
804
|
+
ref: se,
|
|
805
|
+
class: x(e.headerWrapper(), D?.("summary"), g.value && D?.("sticky-holder")),
|
|
782
806
|
style: {
|
|
783
807
|
position: "sticky",
|
|
784
808
|
bottom: `${g.value?.offsetSummary ?? 0}px`,
|
|
785
809
|
zIndex: "4",
|
|
786
810
|
overflow: "hidden"
|
|
787
811
|
}
|
|
788
|
-
}, [
|
|
789
|
-
class:
|
|
790
|
-
}, [
|
|
791
|
-
class:
|
|
812
|
+
}, [n("div", {
|
|
813
|
+
class: B("block w-full min-w-full", m.value, C.value)
|
|
814
|
+
}, [n("table", {
|
|
815
|
+
class: I.value,
|
|
792
816
|
style: v
|
|
793
|
-
}, [
|
|
817
|
+
}, [n(F, {
|
|
794
818
|
columns: f.value
|
|
795
|
-
}, null),
|
|
819
|
+
}, null), n("tfoot", {
|
|
796
820
|
class: e.summary()
|
|
797
821
|
}, [u])])])]) : null;
|
|
798
|
-
return
|
|
799
|
-
class:
|
|
800
|
-
}, [o &&
|
|
822
|
+
return n("div", {
|
|
823
|
+
class: x(e.root(), E.value && e.rootAutoHeight(), ne.value)
|
|
824
|
+
}, [o && n("div", {
|
|
801
825
|
class: e.title()
|
|
802
|
-
}, [o]),
|
|
803
|
-
|
|
804
|
-
|
|
826
|
+
}, [o]), n("div", {
|
|
827
|
+
ref: ie,
|
|
828
|
+
class: x(e.wrapper(), E.value && e.wrapperAutoHeight(), g.value && B("overflow-clip", m.value, C.value))
|
|
829
|
+
}, [At, kt, Ot, zt, Ce]), d && n("div", {
|
|
805
830
|
class: e.footer()
|
|
806
|
-
}, [
|
|
831
|
+
}, [d])]);
|
|
807
832
|
}
|
|
808
|
-
const
|
|
809
|
-
class:
|
|
833
|
+
const G = n(Mt, null, [n("table", {
|
|
834
|
+
class: I.value,
|
|
810
835
|
style: v
|
|
811
|
-
}, [
|
|
836
|
+
}, [n(F, {
|
|
812
837
|
columns: f.value
|
|
813
|
-
}, null), l.showHeader !== !1 &&
|
|
814
|
-
rows:
|
|
838
|
+
}, null), l.showHeader !== !1 && n(De, {
|
|
839
|
+
rows: _.value,
|
|
815
840
|
theadClass: e.thead(),
|
|
816
841
|
rowClass: e.tr(),
|
|
817
|
-
thClass:
|
|
842
|
+
thClass: fe.value,
|
|
818
843
|
headerCellInnerClass: e.headerCellInner()
|
|
819
|
-
}, null),
|
|
820
|
-
dataSource:
|
|
844
|
+
}, null), n(Ee, {
|
|
845
|
+
dataSource: p.value,
|
|
821
846
|
columns: f.value,
|
|
822
847
|
tbodyClass: e.tbody(),
|
|
823
848
|
rowClass: e.tr(),
|
|
824
|
-
tdClass:
|
|
849
|
+
tdClass: $.value,
|
|
825
850
|
emptyClass: e.empty(),
|
|
826
851
|
bodyCellEllipsisClass: e.bodyCellEllipsis(),
|
|
827
852
|
rowKey: l.rowKey
|
|
828
|
-
}, null), u &&
|
|
853
|
+
}, null), u && n("tfoot", {
|
|
829
854
|
class: e.summary()
|
|
830
|
-
}, [u])]),
|
|
831
|
-
return
|
|
832
|
-
class:
|
|
833
|
-
}, [o &&
|
|
855
|
+
}, [u])]), Ce]);
|
|
856
|
+
return n("div", {
|
|
857
|
+
class: x(e.root(), ne.value)
|
|
858
|
+
}, [o && n("div", {
|
|
834
859
|
class: e.title()
|
|
835
|
-
}, [o]),
|
|
836
|
-
ref:
|
|
860
|
+
}, [o]), n(be, {
|
|
861
|
+
ref: pe,
|
|
837
862
|
wrapClass: e.wrapper(),
|
|
838
|
-
viewStyle:
|
|
839
|
-
onScroll:
|
|
840
|
-
},
|
|
841
|
-
default: () => [
|
|
842
|
-
}),
|
|
863
|
+
viewStyle: we,
|
|
864
|
+
onScroll: oe
|
|
865
|
+
}, He(G) ? G : {
|
|
866
|
+
default: () => [G]
|
|
867
|
+
}), d && n("div", {
|
|
843
868
|
class: e.footer()
|
|
844
|
-
}, [
|
|
869
|
+
}, [d])]);
|
|
845
870
|
};
|
|
846
871
|
}
|
|
847
872
|
});
|
|
848
873
|
export {
|
|
849
|
-
|
|
874
|
+
io as default
|
|
850
875
|
};
|