@vtable-guild/vtable-guild 2.8.0 → 2.8.1
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/core/src/components/VirtualList/VirtualList.d.ts +3 -3
- package/dist/core/src/components/VirtualList/VirtualList.d.ts.map +1 -1
- package/dist/core/src/components/VirtualList/VirtualList.mjs +183 -177
- package/dist/core/src/components/VirtualList/hooks/useChildren.d.ts +2 -2
- package/dist/core/src/components/VirtualList/hooks/useChildren.d.ts.map +1 -1
- package/dist/core/src/components/VirtualList/hooks/useChildren.mjs +12 -12
- package/dist/core/src/components/VirtualList/hooks/useGetSize.d.ts +1 -1
- package/dist/core/src/components/VirtualList/hooks/useGetSize.d.ts.map +1 -1
- package/dist/core/src/components/VirtualList/hooks/useGetSize.mjs +1 -1
- package/dist/core/src/components/VirtualList/hooks/useHeights.d.ts +2 -2
- package/dist/core/src/components/VirtualList/hooks/useHeights.d.ts.map +1 -1
- package/dist/core/src/components/VirtualList/hooks/useHeights.mjs +36 -36
- package/dist/core/src/components/VirtualList/hooks/useMobileTouchMove.d.ts.map +1 -1
- package/dist/core/src/components/VirtualList/hooks/useMobileTouchMove.mjs +11 -11
- package/dist/core/src/components/VirtualList/hooks/useMobileTouchMove.test.d.ts +2 -0
- package/dist/core/src/components/VirtualList/hooks/useMobileTouchMove.test.d.ts.map +1 -0
- package/dist/core/src/components/VirtualList/hooks/useScrollTo.d.ts +1 -1
- package/dist/core/src/components/VirtualList/hooks/useScrollTo.d.ts.map +1 -1
- package/dist/core/src/components/VirtualList/hooks/useScrollTo.mjs +30 -30
- package/dist/index.d.ts +0 -28
- package/dist/index.full.mjs +2441 -2428
- package/dist/table/src/components/Table.d.ts.map +1 -1
- package/dist/table/src/components/Table.mjs +112 -113
- package/dist/table/src/components/VTableSummary.d.ts +15 -75
- package/dist/table/src/components/VTableSummary.d.ts.map +1 -1
- package/dist/table/src/components/VTableSummary.mjs +7 -7
- package/dist/table/src/components/VirtualTableBody.d.ts.map +1 -1
- package/dist/table/src/components/VirtualTableBody.mjs +2 -3
- package/dist/table/src/composables/useExpand.d.ts.map +1 -1
- package/dist/table/src/composables/useExpand.mjs +28 -30
- package/dist/table/src/composables/useSelection.d.ts.map +1 -1
- package/dist/table/src/composables/useSelection.mjs +136 -126
- package/dist/table/src/index.d.ts +8 -87
- package/dist/table/src/index.d.ts.map +1 -1
- package/dist/table/src/index.mjs +12 -12
- package/dist/vtable-guild/src/augment.d.ts +15 -0
- package/dist/vtable-guild/src/augment.d.ts.map +1 -0
- package/dist/vtable-guild/src/index.d.ts +1 -0
- package/dist/vtable-guild/src/index.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,KAAK,CAAA;AACZ,OAAO,EAWL,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,SAAS,EAEd,KAAK,sBAAsB,EAC5B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAcL,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,KAAK,CAAA;AACZ,OAAO,EAWL,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,SAAS,EAEd,KAAK,sBAAsB,EAC5B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAcL,KAAK,UAAU,EAChB,M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AAA;QAC9C,OAAO,EAAE,OAAO,CAAA;QAChB,KAAK,EAAE,MAAM,IAAI,CAAA;KAClB;sBACiB;QAChB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;QAC3C,QAAQ,EAAE,OAAO,CAAA;KAClB;WACM;QAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;KAAE;YAClC;QAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;KAAE;oBAC3B,wBAAwB;aAC/B,IAAI;;AA5MjB,wBAg5CE"}
|
|
@@ -8,49 +8,48 @@ import ke from "../../../core/src/components/Scrollbar.mjs";
|
|
|
8
8
|
import { VTABLE_GUILD_INJECTION_KEY as ze } from "../../../core/src/plugin/index.mjs";
|
|
9
9
|
import { paginationZhCN as il } from "../../../theme/src/pagination.mjs";
|
|
10
10
|
import { resolveTooltipThemePreset as dl, resolveScrollbarThemePreset as sl, resolveRadioThemePreset as ul, resolveInputThemePreset as cl, resolveCheckboxThemePreset as fl, resolveButtonThemePreset as ml, resolveTableThemePreset as pl, resolveTableLocalePreset as vl, resolveBuiltInTableLocale as gl, resolveBuiltInLocale as wl } from "../../../theme/src/presets/index.mjs";
|
|
11
|
-
import { antdvTableCompatClasses as
|
|
12
|
-
import { usePagination as
|
|
11
|
+
import { antdvTableCompatClasses as yl } from "../../../theme/src/compat/antdv-table.mjs";
|
|
12
|
+
import { usePagination as hl } from "../composables/usePagination.mjs";
|
|
13
13
|
import Cl from "./TablePagination.mjs";
|
|
14
14
|
import { filterVisibleColumns as bl, applyColumnOrder as xl } from "../composables/useColumnDisplay.mjs";
|
|
15
15
|
import { getEllipsisConfig as Sl } from "../utils/cell.mjs";
|
|
16
16
|
import { getRootCompatClass as Dl } from "../utils/compat.mjs";
|
|
17
17
|
import { resolveRowKey as Rl } from "../utils/rowKey.mjs";
|
|
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 { resolveTablePresetConfig as Ml } from "../preset-config.mjs";
|
|
18
|
+
import { useScroll as El } from "../composables/useScroll.mjs";
|
|
19
|
+
import { useAutoHeight as Il } from "../composables/useAutoHeight.mjs";
|
|
20
|
+
import { useColumnMetrics as Tl } from "../composables/useColumnMetrics.mjs";
|
|
21
|
+
import { useColumnLayout as Hl } from "../composables/useColumnLayout.mjs";
|
|
22
|
+
import { resolveFixedColumnRanges as Ll } from "../composables/useColumnWindow.mjs";
|
|
23
|
+
import { useExpand as Bl } from "../composables/useExpand.mjs";
|
|
24
|
+
import { useResize as Nl } from "../composables/useResize.mjs";
|
|
25
|
+
import { useVirtual as Fl, INVALID_SCROLL_Y_FALLBACK as Ol } from "../composables/useVirtual.mjs";
|
|
26
|
+
import { useTreeData as Al } from "../composables/useTreeData.mjs";
|
|
27
|
+
import { useHoverState as Pl } from "../composables/useHoverState.mjs";
|
|
28
|
+
import { useRowDragSort as Wl } from "../composables/useRowDragSort.mjs";
|
|
29
|
+
import { TABLE_CONTEXT_KEY as kl } from "../context.mjs";
|
|
30
|
+
import { EXPAND_COLUMN as zl, SELECTION_COLUMN as Kl } from "../constants.mjs";
|
|
31
|
+
import { resolveTablePresetConfig as _l } from "../preset-config.mjs";
|
|
33
32
|
import Ke from "./TableHeader.mjs";
|
|
34
33
|
import _e from "./TableBody.mjs";
|
|
35
|
-
import
|
|
34
|
+
import Ml from "./VirtualTableBody.mjs";
|
|
36
35
|
import Me from "./TableLoading.mjs";
|
|
37
36
|
import U from "./ColGroup.mjs";
|
|
38
37
|
import G from "./ColumnWidthRow.mjs";
|
|
39
|
-
import { antdvTableTheme as
|
|
38
|
+
import { antdvTableTheme as jl } from "../../../theme/src/presets/antdv/table.mjs";
|
|
40
39
|
import { useColumns as je } from "../composables/useColumns.mjs";
|
|
41
|
-
import { useSorter as
|
|
42
|
-
import { useFilter as
|
|
43
|
-
import { useSelection as
|
|
40
|
+
import { useSorter as Vl } from "../composables/useSorter.mjs";
|
|
41
|
+
import { useFilter as Yl } from "../composables/useFilter.mjs";
|
|
42
|
+
import { useSelection as $l } from "../composables/useSelection.mjs";
|
|
44
43
|
import { cn as x } from "tailwind-variants";
|
|
45
44
|
function Ve(l) {
|
|
46
45
|
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !ll(l);
|
|
47
46
|
}
|
|
48
|
-
const
|
|
47
|
+
const Ul = [["xxxl", 2e3], ["xxl", 1600], ["xl", 1200], ["lg", 992], ["md", 768], ["sm", 576], ["xs", 0]];
|
|
49
48
|
function Ye() {
|
|
50
49
|
if (typeof window > "u")
|
|
51
50
|
return /* @__PURE__ */ new Set(["md", "sm", "xs"]);
|
|
52
51
|
const l = window.innerWidth, d = /* @__PURE__ */ new Set();
|
|
53
|
-
return
|
|
52
|
+
return Ul.forEach(([s, i]) => {
|
|
54
53
|
if (s === "xs") {
|
|
55
54
|
l < 576 && d.add("xs");
|
|
56
55
|
return;
|
|
@@ -79,7 +78,7 @@ function $e(l, d) {
|
|
|
79
78
|
}), s;
|
|
80
79
|
}, []);
|
|
81
80
|
}
|
|
82
|
-
const
|
|
81
|
+
const zo = /* @__PURE__ */ Jt({
|
|
83
82
|
name: "VTable",
|
|
84
83
|
props: {
|
|
85
84
|
pagination: {
|
|
@@ -321,10 +320,10 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
321
320
|
return i?.compatClass;
|
|
322
321
|
}
|
|
323
322
|
});
|
|
324
|
-
const Ge = a(() => pl(v.value) ??
|
|
323
|
+
const Ge = a(() => pl(v.value) ?? jl), {
|
|
325
324
|
slots: e
|
|
326
325
|
} = rl("table", Ge, l, {
|
|
327
|
-
compatClasses:
|
|
326
|
+
compatClasses: yl
|
|
328
327
|
}), H = i?.compatClass === !0 ? (t) => `ant-table-${t}` : void 0, L = a(() => l.locale ?? i?.locale ?? "zh-CN"), de = a(() => ({
|
|
329
328
|
...i?.locales ?? {},
|
|
330
329
|
...l.locales ?? {}
|
|
@@ -341,7 +340,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
341
340
|
window.removeEventListener("resize", q);
|
|
342
341
|
});
|
|
343
342
|
const se = a(() => $e(l.columns, X.value)), R = a(() => l.sticky === !0 ? {} : typeof l.sticky == "object" ? l.sticky : void 0), {
|
|
344
|
-
leafColumns:
|
|
343
|
+
leafColumns: P
|
|
345
344
|
} = je(() => se.value), {
|
|
346
345
|
getSortOrder: J,
|
|
347
346
|
toggleSortOrder: qe,
|
|
@@ -349,12 +348,12 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
349
348
|
sorterState: Ze,
|
|
350
349
|
sorterResult: Z,
|
|
351
350
|
sortColumns: Qe
|
|
352
|
-
} =
|
|
353
|
-
columns: () =>
|
|
351
|
+
} = Vl({
|
|
352
|
+
columns: () => P.value,
|
|
354
353
|
tableSortDirections: () => l.sortDirections,
|
|
355
354
|
onSorterChange(t) {
|
|
356
355
|
const o = Q();
|
|
357
|
-
s("change",
|
|
356
|
+
s("change", W(), t, {
|
|
358
357
|
action: "sort",
|
|
359
358
|
currentDataSource: o,
|
|
360
359
|
...ee()
|
|
@@ -364,10 +363,10 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
364
363
|
getFilteredValue: et,
|
|
365
364
|
confirmFilter: tt,
|
|
366
365
|
resetFilter: lt,
|
|
367
|
-
getAllFilters:
|
|
366
|
+
getAllFilters: W,
|
|
368
367
|
filterData: ot
|
|
369
|
-
} =
|
|
370
|
-
columns: () =>
|
|
368
|
+
} = Yl({
|
|
369
|
+
columns: () => P.value,
|
|
371
370
|
onFilterChange(t) {
|
|
372
371
|
const o = Q(), r = c.resetForFilter();
|
|
373
372
|
s("change", t, Z.value, {
|
|
@@ -381,11 +380,11 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
381
380
|
let t = l.dataSource;
|
|
382
381
|
return t = ot(t), t = Je(t), t;
|
|
383
382
|
}
|
|
384
|
-
const B = a(() => Q()), c =
|
|
383
|
+
const B = a(() => Q()), c = hl({
|
|
385
384
|
pagination: () => l.pagination,
|
|
386
385
|
data: () => B.value,
|
|
387
386
|
onChange(t) {
|
|
388
|
-
s("change",
|
|
387
|
+
s("change", W(), Z.value, {
|
|
389
388
|
action: "paginate",
|
|
390
389
|
currentDataSource: B.value,
|
|
391
390
|
pagination: t
|
|
@@ -409,9 +408,9 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
409
408
|
D.value ? ue.value?.scrollToTop() : E.value && (E.value.scrollTop = 0);
|
|
410
409
|
});
|
|
411
410
|
}
|
|
412
|
-
function
|
|
411
|
+
function k(t) {
|
|
413
412
|
if (!c.enabled.value || c.state.value.total === 0) return null;
|
|
414
|
-
const r = (c.config.value.position ?? ["bottomRight"]).find((
|
|
413
|
+
const r = (c.config.value.position ?? ["bottomRight"]).find((h) => h !== "none" && h.startsWith(t));
|
|
415
414
|
if (!r) return null;
|
|
416
415
|
const u = r.slice(t.length).toLowerCase();
|
|
417
416
|
return n(Cl, {
|
|
@@ -440,7 +439,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
440
439
|
toggleTreeExpand: nt,
|
|
441
440
|
isTreeExpanded: rt,
|
|
442
441
|
indentSize: it
|
|
443
|
-
} =
|
|
442
|
+
} = Al({
|
|
444
443
|
data: () => B.value,
|
|
445
444
|
pageData: () => c.pageData.value,
|
|
446
445
|
preserveStateOnDataChange: () => c.enabled.value,
|
|
@@ -456,7 +455,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
456
455
|
hoverRange: dt,
|
|
457
456
|
setHoverRange: st,
|
|
458
457
|
clearHoverRange: ut
|
|
459
|
-
} =
|
|
458
|
+
} = Pl(100), z = Wl({
|
|
460
459
|
enabled: () => l.rowDraggable === !0,
|
|
461
460
|
getRowKey: N,
|
|
462
461
|
dataSource: () => l.dataSource,
|
|
@@ -472,9 +471,9 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
472
471
|
toggleAll: vt,
|
|
473
472
|
allCheckedState: gt,
|
|
474
473
|
invertSelection: wt,
|
|
475
|
-
clearSelection:
|
|
476
|
-
getChangeableRowKeys:
|
|
477
|
-
} =
|
|
474
|
+
clearSelection: yt,
|
|
475
|
+
getChangeableRowKeys: ht
|
|
476
|
+
} = $l({
|
|
478
477
|
rowSelection: () => l.rowSelection,
|
|
479
478
|
getRowKey: N,
|
|
480
479
|
data: () => B.value,
|
|
@@ -482,7 +481,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
482
481
|
paginate: () => c.enabled.value,
|
|
483
482
|
childrenColumnName: () => l.childrenColumnName,
|
|
484
483
|
onSelectionChange() {
|
|
485
|
-
s("change",
|
|
484
|
+
s("change", W(), Z.value, {
|
|
486
485
|
action: "select",
|
|
487
486
|
currentDataSource: w.value,
|
|
488
487
|
...ee()
|
|
@@ -491,7 +490,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
491
490
|
}), {
|
|
492
491
|
isExpanded: Ct,
|
|
493
492
|
toggleExpand: bt
|
|
494
|
-
} =
|
|
493
|
+
} = Bl({
|
|
495
494
|
expandable: () => l.expandable,
|
|
496
495
|
getRowKey: N,
|
|
497
496
|
data: () => c.enabled.value ? B.value : w.value,
|
|
@@ -515,97 +514,97 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
515
514
|
width: o.columnWidth ?? 48,
|
|
516
515
|
align: "center",
|
|
517
516
|
fixed: o.fixed === !0 ? "left" : o.fixed || void 0
|
|
518
|
-
} : null,
|
|
517
|
+
} : null, h = bl(se.value), y = [];
|
|
519
518
|
let p = !1, m = !1;
|
|
520
|
-
for (const
|
|
521
|
-
if (
|
|
522
|
-
r && !p && (
|
|
519
|
+
for (const A of h) {
|
|
520
|
+
if (A === zl) {
|
|
521
|
+
r && !p && (y.push(r), p = !0);
|
|
523
522
|
continue;
|
|
524
523
|
}
|
|
525
|
-
if (
|
|
526
|
-
u && !m && (
|
|
524
|
+
if (A === Kl) {
|
|
525
|
+
u && !m && (y.push(u), m = !0);
|
|
527
526
|
continue;
|
|
528
527
|
}
|
|
529
|
-
|
|
528
|
+
y.push(A);
|
|
530
529
|
}
|
|
531
|
-
return r && !p &&
|
|
530
|
+
return r && !p && y.unshift(r), u && !m && y.unshift(u), xl(y, l.columnOrder, [pe, ve]);
|
|
532
531
|
}), {
|
|
533
532
|
leafColumns: f,
|
|
534
533
|
headerRows: oe
|
|
535
534
|
} = je(() => St.value), Dt = a(() => oe.value.length > 1), {
|
|
536
|
-
columnWidths:
|
|
535
|
+
columnWidths: K,
|
|
537
536
|
startResize: Rt,
|
|
538
537
|
isResizing: Et
|
|
539
|
-
} =
|
|
538
|
+
} = Nl({
|
|
540
539
|
columns: () => f.value,
|
|
541
540
|
onResizeColumn(t, o) {
|
|
542
541
|
s("resizeColumn", t, o);
|
|
543
542
|
}
|
|
544
543
|
}), {
|
|
545
|
-
headerWrapRef:
|
|
544
|
+
headerWrapRef: _,
|
|
546
545
|
bodyWrapRef: E,
|
|
547
546
|
scrollState: ge,
|
|
548
547
|
handleBodyScroll: we,
|
|
549
|
-
fixedOffsets:
|
|
548
|
+
fixedOffsets: ye,
|
|
550
549
|
syncHorizontalScroll: It,
|
|
551
550
|
updateScrollState: Tt
|
|
552
|
-
} =
|
|
551
|
+
} = El({
|
|
553
552
|
displayColumns: () => f.value,
|
|
554
|
-
columnWidths:
|
|
553
|
+
columnWidths: K,
|
|
555
554
|
layoutWidths: () => C.metrics.value?.widths,
|
|
556
555
|
syncElements: () => V.value ? [V.value] : []
|
|
557
|
-
}),
|
|
556
|
+
}), he = a(() => Dl({
|
|
558
557
|
compatClass: H,
|
|
559
|
-
fixedOffsets:
|
|
558
|
+
fixedOffsets: ye,
|
|
560
559
|
scrollState: ge,
|
|
561
560
|
empty: w.value.length === 0,
|
|
562
561
|
fixedHeader: l.scroll?.y !== void 0,
|
|
563
562
|
fixedColumn: xe.value && be.value,
|
|
564
563
|
horizontalScroll: xe.value,
|
|
565
564
|
layoutFixed: j.value === "fixed"
|
|
566
|
-
})),
|
|
565
|
+
})), M = a(() => l.scroll?.y === "auto"), Ce = a(() => !!l.scroll?.y || l.showHeader !== !1 && !!l.sticky), be = a(() => f.value.some((t) => t.fixed === "left" || t.fixed === "right")), xe = a(() => l.scroll?.x !== void 0 || C.overflow.value || !!l.expandable?.fixed), Ht = a(() => P.value.some((t) => Sl(t).enabled)), j = a(() => l.tableLayout ? l.tableLayout : l.scroll?.y || l.scroll?.x || be.value || Ht.value ? "fixed" : "auto"), Lt = a(() => {
|
|
567
566
|
if (R.value)
|
|
568
567
|
return {
|
|
569
568
|
position: "sticky",
|
|
570
569
|
top: `${R.value.offsetHeader ?? 0}px`,
|
|
571
570
|
zIndex: "4"
|
|
572
571
|
};
|
|
573
|
-
}), Se = b(null), V = b(null),
|
|
572
|
+
}), Se = b(null), V = b(null), F = b(null), C = Hl({
|
|
574
573
|
columns: () => f.value,
|
|
575
|
-
columnWidths:
|
|
574
|
+
columnWidths: K,
|
|
576
575
|
layout: () => j.value,
|
|
577
576
|
split: () => Ce.value,
|
|
578
|
-
root: () =>
|
|
579
|
-
viewport: () =>
|
|
577
|
+
root: () => F.value,
|
|
578
|
+
viewport: () => F.value?.contains(E.value) ? E.value : _.value ?? F.value,
|
|
580
579
|
scrollX: () => l.scroll?.x,
|
|
581
580
|
onMeasure: () => {
|
|
582
581
|
D.value || Tt();
|
|
583
582
|
}
|
|
584
583
|
}), {
|
|
585
584
|
bodyHeight: De
|
|
586
|
-
} =
|
|
587
|
-
enabled: () =>
|
|
585
|
+
} = Il({
|
|
586
|
+
enabled: () => M.value,
|
|
588
587
|
wrapperEl: () => Se.value,
|
|
589
|
-
headerEl: () =>
|
|
588
|
+
headerEl: () => _.value,
|
|
590
589
|
summaryEl: () => V.value,
|
|
591
590
|
hasData: () => w.value.length > 0
|
|
592
591
|
}), Bt = a(() => {
|
|
593
592
|
const t = l.scroll?.y;
|
|
594
593
|
if (t !== void 0)
|
|
595
|
-
return
|
|
594
|
+
return M.value ? De.value : typeof t == "number" ? Number.isFinite(t) && t > 0 ? t : void 0 : t;
|
|
596
595
|
}), {
|
|
597
596
|
enabled: D,
|
|
598
597
|
itemHeight: Nt,
|
|
599
598
|
listHeight: Ft,
|
|
600
599
|
fixedHeight: Ot,
|
|
601
600
|
resolvedScrollY: At
|
|
602
|
-
} =
|
|
601
|
+
} = Fl({
|
|
603
602
|
virtual: () => l.virtual,
|
|
604
603
|
scrollY: () => l.scroll?.y,
|
|
605
604
|
size: () => l.size,
|
|
606
605
|
rowHeight: () => l.rowHeight,
|
|
607
606
|
measuredHeight: () => De.value
|
|
608
|
-
}), Re = a(() =>
|
|
607
|
+
}), Re = a(() => P.value.some((t) => !!t.customCell || !!t.customRender)), ae = a(() => !Dt.value || l.bordered ? {
|
|
609
608
|
table: "",
|
|
610
609
|
th: "",
|
|
611
610
|
td: ""
|
|
@@ -613,14 +612,14 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
613
612
|
table: e.groupedHeaderTable(),
|
|
614
613
|
th: e.groupedHeaderTh(),
|
|
615
614
|
td: e.groupedHeaderTd()
|
|
616
|
-
}),
|
|
615
|
+
}), O = a(() => x(e.table(), ae.value.table) ?? ""), Ee = a(() => C.enabled.value ? e.widthLayoutCell() : void 0), Ie = a(() => x(e.th(), ae.value.th, Ee.value) ?? ""), ne = a(() => x(e.td(), ae.value.td, Ee.value) ?? "");
|
|
617
616
|
I([D, Re], ([t, o]) => {
|
|
618
617
|
}, {
|
|
619
618
|
immediate: !0
|
|
620
619
|
}), I([() => l.virtual, At], ([t, o]) => {
|
|
621
620
|
if (!t) return;
|
|
622
621
|
const r = String(l.scroll?.y);
|
|
623
|
-
o.kind === "compat-px" ? nl("vtable-scroll-y-compat-px", `[VTable] virtual 模式下字符串 scroll.y(${r})按 ${o.value}px 解析,这是兼容行为;请改用数字或 'auto'。`) : o.kind === "invalid-string" || o.kind === "invalid-number" && l.scroll?.y && `${
|
|
622
|
+
o.kind === "compat-px" ? nl("vtable-scroll-y-compat-px", `[VTable] virtual 模式下字符串 scroll.y(${r})按 ${o.value}px 解析,这是兼容行为;请改用数字或 'auto'。`) : o.kind === "invalid-string" || o.kind === "invalid-number" && l.scroll?.y && `${Ol}`;
|
|
624
623
|
}, {
|
|
625
624
|
immediate: !0
|
|
626
625
|
});
|
|
@@ -630,18 +629,18 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
630
629
|
}), I(() => He.value?.wrapRef, (t) => {
|
|
631
630
|
t && (E.value = t);
|
|
632
631
|
});
|
|
633
|
-
const Pt = a(() =>
|
|
632
|
+
const Pt = a(() => Ll(f.value)), Le = a(() => l.virtualColumn ? D.value ? Re.value ? "列上有 customCell / customRender,可能返回 colSpan / rowSpan;单元格合并会让某个 td 缺席,进而破坏列宽不变量(虚拟模式本就不支持合并)" : Pt.value.contiguous ? null : "固定列必须分列两端:左固定连成前缀、右固定连成后缀,中间夹着的固定列会被窗口跳过" : "它只作用于虚拟表体,需要同时开启 virtual 与 scroll.y" : null), re = a(() => l.virtualColumn && Le.value === null);
|
|
634
633
|
I(Le, (t) => {
|
|
635
634
|
}, {
|
|
636
635
|
immediate: !0
|
|
637
636
|
});
|
|
638
637
|
const {
|
|
639
638
|
metrics: Wt
|
|
640
|
-
} =
|
|
639
|
+
} = Tl({
|
|
641
640
|
enabled: () => re.value && !C.enabled.value,
|
|
642
|
-
headerEl: () =>
|
|
641
|
+
headerEl: () => _.value,
|
|
643
642
|
columns: () => f.value,
|
|
644
|
-
columnWidths:
|
|
643
|
+
columnWidths: K,
|
|
645
644
|
hasHeader: () => l.showHeader !== !1
|
|
646
645
|
}), Be = a(() => C.metrics.value ?? Wt.value);
|
|
647
646
|
I([re, Be], ([t, o]) => {
|
|
@@ -669,7 +668,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
669
668
|
sortOrder: o.sorter ? J(o) ?? void 0 : void 0,
|
|
670
669
|
sortColumn: Ze.value.column,
|
|
671
670
|
sortColumns: r.length > 0 ? r : void 0,
|
|
672
|
-
filters:
|
|
671
|
+
filters: W()
|
|
673
672
|
});
|
|
674
673
|
}
|
|
675
674
|
function jt(t) {
|
|
@@ -761,8 +760,8 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
761
760
|
trDragging: e.trDragging,
|
|
762
761
|
trDropAbove: e.trDropAbove,
|
|
763
762
|
trDropBelow: e.trDropBelow
|
|
764
|
-
}, Fe = a(() =>
|
|
765
|
-
return We(
|
|
763
|
+
}, Fe = a(() => _l(v.value)), Oe = b(!1);
|
|
764
|
+
return We(kl, {
|
|
766
765
|
columnLayout: C,
|
|
767
766
|
bodyCell: d.bodyCell,
|
|
768
767
|
headerCell: d.headerCell,
|
|
@@ -795,9 +794,9 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
795
794
|
allCheckedState: () => gt.value,
|
|
796
795
|
getRowKey: N,
|
|
797
796
|
invertSelection: wt,
|
|
798
|
-
clearSelection:
|
|
799
|
-
getChangeableRowKeys:
|
|
800
|
-
fixedOffsets:
|
|
797
|
+
clearSelection: yt,
|
|
798
|
+
getChangeableRowKeys: ht,
|
|
799
|
+
fixedOffsets: ye,
|
|
801
800
|
scrollState: ge,
|
|
802
801
|
leafColumnCount: a(() => f.value.length),
|
|
803
802
|
bordered: a(() => l.bordered),
|
|
@@ -813,7 +812,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
813
812
|
isExpanded: Ct,
|
|
814
813
|
toggleExpand: xt,
|
|
815
814
|
isRowExpandable: me,
|
|
816
|
-
columnWidths:
|
|
815
|
+
columnWidths: K,
|
|
817
816
|
startResize: Rt,
|
|
818
817
|
isResizing: () => Et.value,
|
|
819
818
|
displayColumns: a(() => f.value),
|
|
@@ -830,12 +829,12 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
830
829
|
setHoverRange: st,
|
|
831
830
|
clearHoverRange: ut,
|
|
832
831
|
// 拖拽期间抑制 hover 高亮,避免干扰拖放指示线
|
|
833
|
-
hoverable: a(() => l.hoverable !== !1 &&
|
|
832
|
+
hoverable: a(() => l.hoverable !== !1 && z.draggingKey.value === null),
|
|
834
833
|
rowDrag: {
|
|
835
834
|
enabled: a(() => l.rowDraggable === !0),
|
|
836
|
-
draggingKey:
|
|
837
|
-
dropTarget:
|
|
838
|
-
getBindings: (t, o, r) =>
|
|
835
|
+
draggingKey: z.draggingKey,
|
|
836
|
+
dropTarget: z.dropTarget,
|
|
837
|
+
getBindings: (t, o, r) => z.getBindings(t, o, r)
|
|
839
838
|
}
|
|
840
839
|
}), () => {
|
|
841
840
|
let t;
|
|
@@ -843,11 +842,11 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
843
842
|
data: w.value
|
|
844
843
|
}) : null, r = l.footer ? l.footer(w.value) : d.footer ? d.footer({
|
|
845
844
|
data: w.value
|
|
846
|
-
}) : null, u = d.summary ? d.summary() : null,
|
|
845
|
+
}) : null, u = d.summary ? d.summary() : null, h = Oe.value !== !1, y = l.scroll, p = {
|
|
847
846
|
tableLayout: j.value
|
|
848
847
|
};
|
|
849
|
-
|
|
850
|
-
const m = l.loading,
|
|
848
|
+
y?.x ? (p.width = typeof y.x == "number" ? `${y.x}px` : y.x, p.minWidth = "100%") : p.width = "100%", Object.assign(p, C.tableStyle.value);
|
|
849
|
+
const m = l.loading, A = m === !0 || typeof m == "object" && m !== null && m.spinning !== !1, Yt = typeof m == "object" && m !== null ? m.indicator : void 0, $t = typeof m == "object" && m !== null ? m.tip : void 0, Ae = A && (d.loading ? n(Me, {
|
|
851
850
|
loadingClass: e.loading()
|
|
852
851
|
}, Ve(t = d.loading()) ? t : {
|
|
853
852
|
default: () => [t]
|
|
@@ -858,14 +857,14 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
858
857
|
}, null));
|
|
859
858
|
if (Ce.value) {
|
|
860
859
|
const Ut = l.showHeader !== !1 ? n("div", {
|
|
861
|
-
ref:
|
|
860
|
+
ref: _,
|
|
862
861
|
class: x(e.headerWrapper(), R.value && H?.("sticky-holder")),
|
|
863
862
|
style: Lt.value
|
|
864
863
|
}, [n("div", {
|
|
865
864
|
class: Y("block w-full min-w-full", g.value, S.value)
|
|
866
865
|
}, [n("table", {
|
|
867
866
|
"data-vtg-table": "",
|
|
868
|
-
class:
|
|
867
|
+
class: O.value,
|
|
869
868
|
style: p
|
|
870
869
|
}, [n(U, {
|
|
871
870
|
columns: f.value
|
|
@@ -875,7 +874,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
875
874
|
rowClass: e.tr(),
|
|
876
875
|
thClass: Ie.value,
|
|
877
876
|
headerCellInnerClass: e.headerCellInner()
|
|
878
|
-
}, null)])])]) : null, Gt = D.value ? n(
|
|
877
|
+
}, null)])])]) : null, Gt = D.value ? n(Ml, {
|
|
879
878
|
ref: ue,
|
|
880
879
|
dataSource: w.value,
|
|
881
880
|
columns: f.value,
|
|
@@ -884,7 +883,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
884
883
|
tdClass: ne.value,
|
|
885
884
|
emptyClass: e.empty(),
|
|
886
885
|
bodyCellEllipsisClass: e.bodyCellEllipsis(),
|
|
887
|
-
tableClass:
|
|
886
|
+
tableClass: O.value,
|
|
888
887
|
tableStyle: p,
|
|
889
888
|
rowKey: l.rowKey,
|
|
890
889
|
height: Ft.value,
|
|
@@ -905,7 +904,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
905
904
|
}, {
|
|
906
905
|
default: () => [n("table", {
|
|
907
906
|
"data-vtg-table": "",
|
|
908
|
-
class:
|
|
907
|
+
class: O.value,
|
|
909
908
|
style: p
|
|
910
909
|
}, [n(U, {
|
|
911
910
|
columns: f.value
|
|
@@ -918,13 +917,13 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
918
917
|
emptyClass: e.empty(),
|
|
919
918
|
bodyCellEllipsisClass: e.bodyCellEllipsis(),
|
|
920
919
|
rowKey: l.rowKey
|
|
921
|
-
}, null), u && !
|
|
920
|
+
}, null), u && !h && n("tfoot", {
|
|
922
921
|
class: e.summary()
|
|
923
922
|
}, [u])])]
|
|
924
|
-
}), qt = u && (
|
|
923
|
+
}), qt = u && (h || D.value) ? n("div", {
|
|
925
924
|
ref: V,
|
|
926
|
-
class: x(e.headerWrapper(), H?.("summary"), R.value &&
|
|
927
|
-
style:
|
|
925
|
+
class: x(e.headerWrapper(), H?.("summary"), R.value && h && H?.("sticky-holder")),
|
|
926
|
+
style: h ? {
|
|
928
927
|
position: "sticky",
|
|
929
928
|
bottom: `${R.value?.offsetSummary ?? 0}px`,
|
|
930
929
|
zIndex: "4",
|
|
@@ -934,7 +933,7 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
934
933
|
class: Y("block w-full min-w-full", g.value, S.value)
|
|
935
934
|
}, [n("table", {
|
|
936
935
|
"data-vtg-table": "",
|
|
937
|
-
class:
|
|
936
|
+
class: O.value,
|
|
938
937
|
style: p
|
|
939
938
|
}, [n(U, {
|
|
940
939
|
columns: f.value
|
|
@@ -942,20 +941,20 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
942
941
|
class: e.summary()
|
|
943
942
|
}, [u])])])]) : null;
|
|
944
943
|
return n("div", {
|
|
945
|
-
ref:
|
|
946
|
-
class: x(e.root(),
|
|
947
|
-
}, [
|
|
944
|
+
ref: F,
|
|
945
|
+
class: x(e.root(), M.value && e.rootAutoHeight(), he.value)
|
|
946
|
+
}, [k("top"), o && n("div", {
|
|
948
947
|
class: e.title()
|
|
949
948
|
}, [o]), n("div", {
|
|
950
949
|
ref: Se,
|
|
951
|
-
class: x(e.wrapper(),
|
|
950
|
+
class: x(e.wrapper(), M.value && e.wrapperAutoHeight(), R.value && Y("overflow-clip", g.value, S.value))
|
|
952
951
|
}, [Ut, Gt, Xt, qt, Ae]), r && n("div", {
|
|
953
952
|
class: e.footer()
|
|
954
|
-
}, [r]),
|
|
953
|
+
}, [r]), k("bottom")]);
|
|
955
954
|
}
|
|
956
955
|
const ie = n(tl, null, [n("table", {
|
|
957
956
|
"data-vtg-table": "",
|
|
958
|
-
class:
|
|
957
|
+
class: O.value,
|
|
959
958
|
style: p
|
|
960
959
|
}, [n(U, {
|
|
961
960
|
columns: f.value
|
|
@@ -978,9 +977,9 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
978
977
|
class: e.summary()
|
|
979
978
|
}, [u])]), Ae]);
|
|
980
979
|
return n("div", {
|
|
981
|
-
ref:
|
|
982
|
-
class: x(e.root(),
|
|
983
|
-
}, [
|
|
980
|
+
ref: F,
|
|
981
|
+
class: x(e.root(), he.value)
|
|
982
|
+
}, [k("top"), o && n("div", {
|
|
984
983
|
class: e.title()
|
|
985
984
|
}, [o]), n(ke, {
|
|
986
985
|
ref: He,
|
|
@@ -991,10 +990,10 @@ const _o = /* @__PURE__ */ Jt({
|
|
|
991
990
|
default: () => [ie]
|
|
992
991
|
}), r && n("div", {
|
|
993
992
|
class: e.footer()
|
|
994
|
-
}, [r]),
|
|
993
|
+
}, [r]), k("bottom")]);
|
|
995
994
|
};
|
|
996
995
|
}
|
|
997
996
|
});
|
|
998
997
|
export {
|
|
999
|
-
|
|
998
|
+
zo as default
|
|
1000
999
|
};
|