@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.
Files changed (40) hide show
  1. package/css/style.css +7 -4
  2. package/css/tailwind3-utilities.css +7 -4
  3. package/dist/core/src/components/VirtualList/VirtualList.d.ts.map +1 -1
  4. package/dist/core/src/components/VirtualList/VirtualList.mjs +97 -91
  5. package/dist/css/style.css +7 -4
  6. package/dist/css/tailwind3-utilities.css +7 -4
  7. package/dist/index.full.mjs +3065 -2930
  8. package/dist/table/src/components/Table.d.ts +1 -1
  9. package/dist/table/src/components/Table.d.ts.map +1 -1
  10. package/dist/table/src/components/Table.mjs +384 -359
  11. package/dist/table/src/components/VirtualTableBody.d.ts.map +1 -1
  12. package/dist/table/src/components/VirtualTableBody.mjs +2 -1
  13. package/dist/table/src/composables/useAutoHeight.d.ts +32 -0
  14. package/dist/table/src/composables/useAutoHeight.d.ts.map +1 -0
  15. package/dist/table/src/composables/useAutoHeight.mjs +66 -0
  16. package/dist/table/src/composables/useAutoHeight.test.d.ts +2 -0
  17. package/dist/table/src/composables/useAutoHeight.test.d.ts.map +1 -0
  18. package/dist/table/src/composables/useColumnMetrics.d.ts.map +1 -1
  19. package/dist/table/src/composables/useColumnMetrics.mjs +49 -49
  20. package/dist/table/src/composables/useColumnMetrics.test.d.ts +2 -0
  21. package/dist/table/src/composables/useColumnMetrics.test.d.ts.map +1 -0
  22. package/dist/table/src/composables/useColumnWindow.mjs +16 -16
  23. package/dist/table/src/composables/useResize.d.ts.map +1 -1
  24. package/dist/table/src/composables/useResize.mjs +37 -31
  25. package/dist/table/src/composables/useScroll.d.ts +8 -0
  26. package/dist/table/src/composables/useScroll.d.ts.map +1 -1
  27. package/dist/table/src/composables/useScroll.mjs +37 -37
  28. package/dist/table/src/composables/useVirtual.d.ts +35 -0
  29. package/dist/table/src/composables/useVirtual.d.ts.map +1 -1
  30. package/dist/table/src/composables/useVirtual.mjs +44 -16
  31. package/dist/table/src/index.d.ts.map +1 -1
  32. package/dist/table/src/types/table.d.ts +9 -1
  33. package/dist/table/src/types/table.d.ts.map +1 -1
  34. package/dist/theme/src/presets/antdv/table.d.ts +3 -1
  35. package/dist/theme/src/presets/antdv/table.d.ts.map +1 -1
  36. package/dist/theme/src/presets/antdv/table.mjs +10 -1
  37. package/dist/theme/src/presets/element-plus/table.d.ts +3 -1
  38. package/dist/theme/src/presets/element-plus/table.d.ts.map +1 -1
  39. package/dist/theme/src/presets/element-plus/table.mjs +4 -1
  40. package/package.json +1 -1
@@ -1,74 +1,76 @@
1
- import { defineComponent as Nt, inject as Ft, computed as n, provide as he, ref as H, onMounted as zt, onBeforeUnmount as Ot, watch as D, createVNode as a, Fragment as Pt, isVNode as kt } from "vue";
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 At, prefixVtgClassNames as L } from "../../../core/src/utils/classPrefix.mjs";
4
- import { mergeThemeConfigs as S, useTheme as Kt } from "../../../core/src/composables/useTheme.mjs";
5
- import { mergeDeep as B } from "../../../core/src/utils/mergeDeep.mjs";
6
- import Ce from "../../../core/src/components/Scrollbar.mjs";
7
- import { VTABLE_GUILD_INJECTION_KEY as xe } from "../../../core/src/plugin/index.mjs";
8
- import { resolveTooltipThemePreset as Wt, resolveScrollbarThemePreset as _t, resolveRadioThemePreset as Mt, resolveInputThemePreset as jt, resolveCheckboxThemePreset as Vt, resolveButtonThemePreset as Ut, resolveTableThemePreset as Gt, resolveTableLocalePreset as Yt, resolveBuiltInTableLocale as Xt } from "../../../theme/src/presets/index.mjs";
9
- import { antdvTableCompatClasses as $t } from "../../../theme/src/compat/antdv-table.mjs";
10
- import { getEllipsisConfig as Jt } from "../utils/cell.mjs";
11
- import { getRootCompatClass as qt } from "../utils/compat.mjs";
12
- import { useScroll as Qt } from "../composables/useScroll.mjs";
13
- import { useColumnMetrics as Zt } from "../composables/useColumnMetrics.mjs";
14
- import { resolveFixedColumnRanges as el } from "../composables/useColumnWindow.mjs";
15
- import { useExpand as tl } from "../composables/useExpand.mjs";
16
- import { useResize as ll } from "../composables/useResize.mjs";
17
- import { useVirtual as ol } from "../composables/useVirtual.mjs";
18
- import { useTreeData as nl } from "../composables/useTreeData.mjs";
19
- import { useHoverState as al } from "../composables/useHoverState.mjs";
20
- import { TABLE_CONTEXT_KEY as rl } from "../context.mjs";
21
- import { EXPAND_COLUMN as dl, SELECTION_COLUMN as il } from "../constants.mjs";
22
- import { resolveTablePresetConfig as sl } from "../preset-config.mjs";
23
- import ge from "./TableHeader.mjs";
24
- import Se from "./TableBody.mjs";
25
- import ul from "./VirtualTableBody.mjs";
26
- import be from "./TableLoading.mjs";
27
- import N from "./ColGroup.mjs";
28
- import { antdvTableTheme as cl } from "../../../theme/src/presets/antdv/table.mjs";
29
- import { useColumns as Re } from "../composables/useColumns.mjs";
30
- import { useSorter as fl } from "../composables/useSorter.mjs";
31
- import { useFilter as ml } from "../composables/useFilter.mjs";
32
- import { useSelection as pl } from "../composables/useSelection.mjs";
33
- import { cn as C } from "tailwind-variants";
34
- function De(l) {
35
- return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !kt(l);
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 vl = [["xxxl", 2e3], ["xxl", 1600], ["xl", 1200], ["lg", 992], ["md", 768], ["sm", 576], ["xs", 0]];
38
- function Ee() {
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, d = /* @__PURE__ */ new Set();
42
- return vl.forEach(([s, r]) => {
43
+ const l = window.innerWidth, i = /* @__PURE__ */ new Set();
44
+ return Rl.forEach(([s, r]) => {
43
45
  if (s === "xs") {
44
- l < 576 && d.add("xs");
46
+ l < 576 && i.add("xs");
45
47
  return;
46
48
  }
47
- l >= r && d.add(s);
48
- }), d;
49
+ l >= r && i.add(s);
50
+ }), i;
49
51
  }
50
- function Ie(l, d) {
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) => d.has(m)))
56
+ if (r.responsive?.length && !r.responsive.some((m) => i.has(m)))
55
57
  return s;
56
- const w = r.fixed === !0 ? "left" : r.fixed;
58
+ const y = r.fixed === !0 ? "left" : r.fixed;
57
59
  if ("children" in r && Array.isArray(r.children)) {
58
- const m = Ie(r.children, d);
60
+ const m = Be(r.children, i);
59
61
  return m.length === 0 || s.push({
60
62
  ...r,
61
- fixed: w,
63
+ fixed: y,
62
64
  children: m
63
65
  }), s;
64
66
  }
65
- return s.push(w === r.fixed ? r : {
67
+ return s.push(y === r.fixed ? r : {
66
68
  ...r,
67
- fixed: w
69
+ fixed: y
68
70
  }), s;
69
71
  }, []);
70
72
  }
71
- const Jl = /* @__PURE__ */ Nt({
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, d, s) => !0,
255
- resizeColumn: (l, d) => !0
256
+ change: (l, i, s) => !0,
257
+ resizeColumn: (l, i) => !0
256
258
  },
257
259
  slots: Object,
258
260
  setup(l, {
259
- slots: d,
261
+ slots: i,
260
262
  emit: s
261
263
  }) {
262
- const r = Ft(xe, null), w = n(() => r?.themePreset ?? "antdv"), m = n(() => r?.cssMode ?? "prebuilt"), x = n(() => r?.classPrefix ?? "vtg"), Te = n(() => {
263
- const t = r?.theme ?? {}, o = w.value, i = (u) => At(u, m.value, x.value);
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: S(i(Ut(o)), t.button),
267
- checkbox: S(i(Vt(o)), t.checkbox),
268
- input: S(i(jt(o)), t.input),
269
- radio: S(i(Mt(o)), t.radio),
270
- scrollbar: S(i(_t(o)), t.scrollbar),
271
- tooltip: S(i(Wt(o)), t.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
- he(xe, {
276
+ Se(Re, {
275
277
  get themePreset() {
276
- return w.value;
278
+ return y.value;
277
279
  },
278
280
  get cssMode() {
279
281
  return m.value;
280
282
  },
281
283
  get classPrefix() {
282
- return x.value;
284
+ return C.value;
283
285
  },
284
286
  get theme() {
285
- return Te.value;
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 He = n(() => Gt(w.value) ?? cl), {
299
+ const Fe = a(() => Zt(y.value) ?? Cl), {
298
300
  slots: e
299
- } = Kt("table", He, l, {
300
- compatClasses: $t
301
- }), b = r?.compatClass === !0 ? (t) => `ant-table-${t}` : void 0, F = n(() => l.locale ?? r?.locale ?? "zh-CN"), Le = n(() => ({
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
- })), Be = n(() => {
305
- const t = Yt(w.value), o = Xt(w.value, F.value), i = Le.value[F.value]?.table, u = B(B(t, o), i);
306
- return B(u, B(r?.localeOverrides?.table ?? {}, l.localeOverrides));
307
- }), G = H(Ee());
308
- function z() {
309
- G.value = Ee();
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
- zt(() => {
312
- z(), window.addEventListener("resize", z);
313
- }), Ot(() => {
314
- window.removeEventListener("resize", z);
313
+ Kt(() => {
314
+ k(), window.addEventListener("resize", k);
315
+ }), _t(() => {
316
+ window.removeEventListener("resize", k);
315
317
  });
316
- const Y = n(() => Ie(l.columns, G.value)), g = n(() => l.sticky === !0 ? {} : typeof l.sticky == "object" ? l.sticky : void 0), {
317
- leafColumns: E
318
- } = Re(() => Y.value), {
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: Ne,
321
- sortData: Fe,
322
- sorterState: ze,
323
- sorterResult: X,
324
- sortColumns: Oe
325
- } = fl({
326
- columns: () => E.value,
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 = k();
330
- s("change", P(), t, {
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: Pe,
337
- confirmFilter: ke,
338
- resetFilter: Ae,
339
- getAllFilters: P,
340
- filterData: Ke
341
- } = ml({
342
- columns: () => E.value,
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 = k();
345
- s("change", t, X.value, {
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 k() {
353
+ function P() {
352
354
  let t = l.dataSource;
353
- return t = Ke(t), t = Fe(t), t;
355
+ return t = je(t), t = ze(t), t;
354
356
  }
355
- const A = n(() => k());
356
- function I(t, o) {
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: J,
362
+ flattenData: Q,
363
+ rowMetaMap: Z,
362
364
  isTreeData: K,
363
- toggleTreeExpand: We,
364
- isTreeExpanded: _e,
365
- indentSize: Me
366
- } = nl({
367
- data: () => A.value,
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: I,
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: je,
378
- setHoverRange: Ve,
379
- clearHoverRange: Ue
380
- } = al(100), y = n(() => K.value ? $.value.map((t) => t.record) : A.value), {
381
- isSelected: Ge,
382
- isDisabled: Ye,
383
- getSelectionState: Xe,
384
- toggleRow: $e,
385
- toggleAll: Je,
386
- allCheckedState: qe,
387
- invertSelection: Qe,
388
- clearSelection: Ze,
389
- getChangeableRowKeys: et
390
- } = pl({
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: I,
393
- data: () => A.value,
394
- visibleData: () => y.value,
394
+ getRowKey: H,
395
+ data: () => W.value,
396
+ visibleData: () => p.value,
395
397
  childrenColumnName: () => l.childrenColumnName,
396
398
  onSelectionChange() {
397
- s("change", P(), X.value, {
399
+ s("change", z(), q.value, {
398
400
  action: "select",
399
- currentDataSource: y.value
401
+ currentDataSource: p.value
400
402
  });
401
403
  }
402
404
  }), {
403
- isExpanded: tt,
404
- toggleExpand: lt
405
- } = tl({
405
+ isExpanded: nt,
406
+ toggleExpand: rt
407
+ } = sl({
406
408
  expandable: () => l.expandable,
407
- getRowKey: I,
408
- data: () => y.value
409
- }), q = (t) => {
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
- }, ot = (t, o) => {
413
- q(t) && lt(t, o);
414
- }, nt = "__vtg_selection__", at = "__vtg_expand__", rt = n(() => {
415
- const t = l.expandable, o = l.rowSelection, i = t && t.showExpandColumn !== !1 ? {
416
- key: at,
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: nt,
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, h = [];
428
- let p = !1, v = !1;
429
- for (const c of Y.value) {
430
- if (c === dl) {
431
- i && !p && (h.push(i), p = !0);
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 === il) {
435
- u && !v && (h.push(u), v = !0);
436
+ if (c === wl) {
437
+ u && !v && (w.push(u), v = !0);
436
438
  continue;
437
439
  }
438
- h.push(c);
440
+ w.push(c);
439
441
  }
440
- return i && !p && h.unshift(i), u && !v && h.unshift(u), h;
442
+ return d && !h && w.unshift(d), u && !v && w.unshift(u), w;
441
443
  }), {
442
444
  leafColumns: f,
443
- headerRows: W
444
- } = Re(() => rt.value), dt = n(() => W.value.length > 1), {
445
- headerWrapRef: Q,
446
- bodyWrapRef: Z,
447
- scrollState: ee,
448
- handleBodyScroll: te,
449
- fixedOffsets: le,
450
- syncHorizontalScroll: it
451
- } = Qt({
452
- displayColumns: () => f.value
453
- }), oe = n(() => qt({
454
- compatClass: b,
455
- fixedOffsets: le,
456
- scrollState: ee,
457
- empty: y.value.length === 0,
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: ae.value && ne.value,
460
- horizontalScroll: ae.value,
461
- layoutFixed: _.value === "fixed"
462
- })), st = n(() => l.showHeader !== !1 && (!!l.scroll?.y || !!l.sticky)), ne = n(() => f.value.some((t) => t.fixed === "left" || t.fixed === "right")), ae = n(() => l.scroll?.x !== void 0 || !!l.expandable?.fixed), ut = n(() => E.value.some((t) => Jt(t).enabled)), _ = n(() => l.tableLayout ? l.tableLayout : l.scroll?.y || l.scroll?.x || ne.value || ut.value ? "fixed" : "auto"), ct = n(() => {
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: T,
471
- itemHeight: ft,
472
- listHeight: mt,
473
- fixedHeight: pt
474
- } = ol({
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
- }), re = n(() => E.value.some((t) => !!t.customCell || !!t.customRender)), M = n(() => !dt.value || l.bordered ? {
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
- }), R = n(() => C(e.table(), M.value.table) ?? ""), de = n(() => C(e.th(), M.value.th) ?? ""), j = n(() => C(e.td(), M.value.td) ?? "");
488
- D([T, re], ([t, o]) => {
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 ie = H(null), se = H(null);
493
- D(() => ie.value?.wrapRef, (t) => {
494
- t && (Z.value = t);
495
- }), D(() => se.value?.wrapRef, (t) => {
496
- t && (Z.value = 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
- columnWidths: ue,
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: fe
513
- } = Zt({
514
- enabled: () => V.value,
515
- headerEl: () => Q.value,
535
+ metrics: ye
536
+ } = dl({
537
+ enabled: () => U.value,
538
+ headerEl: () => j.value,
516
539
  columns: () => f.value,
517
- columnWidths: ue,
540
+ columnWidths: M,
518
541
  hasHeader: () => l.showHeader !== !1
519
542
  });
520
- D([V, fe], ([t, o]) => {
543
+ b([U, ye], ([t, o]) => {
521
544
  !t || o || l.showHeader;
522
545
  }, {
523
546
  immediate: !0
524
547
  });
525
- function ht(t) {
526
- return K.value ? J.value.get(t)?.level ?? 0 : 0;
548
+ function Rt(t) {
549
+ return K.value ? Z.value.get(t)?.level ?? 0 : 0;
527
550
  }
528
- function Ct(t, o) {
529
- return l.rowClassName ? typeof l.rowClassName == "function" ? l.rowClassName(t, o, ht(t)) : l.rowClassName : "";
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 xt(t, o) {
554
+ function Et(t, o) {
532
555
  return l.customRow?.(t, o);
533
556
  }
534
- function gt(t, o) {
557
+ function It(t, o) {
535
558
  return l.customHeaderRow?.(t, o);
536
559
  }
537
- function St(t) {
560
+ function Tt(t) {
538
561
  if (typeof t.title != "function")
539
562
  return t.title ?? "";
540
- const o = t, i = Oe.value.filter((u) => !!u.column);
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: ze.value.column,
544
- sortColumns: i.length > 0 ? i : void 0,
545
- filters: P()
566
+ sortColumn: Pe.value.column,
567
+ sortColumns: d.length > 0 ? d : void 0,
568
+ filters: z()
546
569
  });
547
570
  }
548
- function bt(t) {
571
+ function Ht(t) {
549
572
  return !!(t.sorter && O(t));
550
573
  }
551
- const me = {
574
+ const we = {
552
575
  width: "100%",
553
576
  minWidth: "100%"
554
- }, Rt = {
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
- }, pe = n(() => sl(w.value)), ve = H(!1);
632
- return he(rl, {
633
- bodyCell: d.bodyCell,
634
- headerCell: d.headerCell,
635
- empty: d.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: Ne,
638
- isColumnSorted: bt,
639
- getFilteredValue: Pe,
640
- confirmFilter: ke,
641
- resetFilter: Ae,
642
- customFilterDropdown: d.customFilterDropdown,
643
- customFilterIcon: d.customFilterIcon,
644
- showSorterTooltip: n(() => l.showSorterTooltip ?? pe.value.showSorterTooltip),
645
- headerEllipsis: n(() => l.headerEllipsis),
646
- subThemeSlots: Rt,
647
- presetConfig: pe,
648
- themePreset: w,
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: x,
651
- vtgClass: (t) => L(t, m.value, x.value),
652
- compatClass: b,
653
- localeName: F,
654
- locale: Be,
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: Ge,
657
- isDisabledRow: Ye,
658
- getSelectionState: Xe,
659
- toggleRow: $e,
660
- toggleAll: Je,
661
- allCheckedState: () => qe.value,
662
- getRowKey: I,
663
- invertSelection: Qe,
664
- clearSelection: Ze,
665
- getChangeableRowKeys: et,
666
- fixedOffsets: le,
667
- scrollState: ee,
668
- leafColumnCount: n(() => f.value.length),
669
- bordered: n(() => l.bordered),
670
- tableLayout: _,
671
- sticky: n(() => l.sticky),
672
- getRowProps: xt,
673
- getRowClassName: Ct,
674
- getHeaderRowProps: gt,
675
- getColumnTitle: St,
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: tt,
680
- toggleExpand: ot,
681
- isRowExpandable: q,
682
- columnWidths: ue,
683
- startResize: vt,
684
- isResizing: () => wt.value,
685
- displayColumns: n(() => f.value),
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
- ve.value = t;
710
+ xe.value = t;
688
711
  },
689
712
  isTreeData: K,
690
- treeFlattenData: $,
691
- getFlattenRow: (t) => J.value.get(t),
692
- toggleTreeExpand: We,
693
- isTreeExpanded: _e,
694
- treeIndentSize: Me,
695
- hoverRange: je,
696
- setHoverRange: Ve,
697
- clearHoverRange: Ue,
698
- hoverable: n(() => l.hoverable !== !1)
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(y.value) : d.title ? d.title({
702
- data: y.value
703
- }) : null, i = l.footer ? l.footer(y.value) : d.footer ? d.footer({
704
- data: y.value
705
- }) : null, u = d.summary ? d.summary() : null, h = ve.value !== !1, p = l.scroll, v = {
706
- tableLayout: _.value
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
- p?.x ? (v.width = typeof p.x == "number" ? `${p.x}px` : p.x, v.minWidth = "100%") : v.width = "100%";
709
- const c = l.loading, Dt = c === !0 || typeof c == "object" && c !== null && c.spinning !== !1, Et = typeof c == "object" && c !== null ? c.indicator : void 0, It = typeof c == "object" && c !== null ? c.tip : void 0, we = Dt && (d.loading ? a(be, {
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
- }, De(t = d.loading()) ? t : {
734
+ }, He(t = i.loading()) ? t : {
712
735
  default: () => [t]
713
- }) : a(be, {
736
+ }) : n(Ie, {
714
737
  loadingClass: e.loading(),
715
- indicator: Et,
716
- tip: It
738
+ indicator: Nt,
739
+ tip: Ft
717
740
  }, null));
718
- if (st.value) {
719
- const Tt = l.showHeader !== !1 ? a("div", {
720
- ref: Q,
721
- class: C(e.headerWrapper(), g.value && b?.("sticky-holder")),
722
- style: ct.value
723
- }, [a("div", {
724
- class: L("block w-full min-w-full", m.value, x.value)
725
- }, [a("table", {
726
- class: R.value,
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
- }, [a(N, {
751
+ }, [n(F, {
729
752
  columns: f.value
730
- }, null), a(ge, {
731
- rows: W.value,
753
+ }, null), n(De, {
754
+ rows: _.value,
732
755
  theadClass: e.thead(),
733
756
  rowClass: e.tr(),
734
- thClass: de.value,
757
+ thClass: fe.value,
735
758
  headerCellInnerClass: e.headerCellInner()
736
- }, null)])])]) : null, Ht = T.value ? a(ul, {
737
- dataSource: y.value,
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: j.value,
764
+ tdClass: $.value,
742
765
  emptyClass: e.empty(),
743
766
  bodyCellEllipsisClass: e.bodyCellEllipsis(),
744
- tableClass: R.value,
767
+ tableClass: I.value,
745
768
  tableStyle: v,
746
769
  rowKey: l.rowKey,
747
- height: mt.value,
748
- itemHeight: ft.value,
749
- fixedHeight: pt.value,
750
- virtualColumn: V.value,
751
- columnMetrics: fe.value,
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: (ye) => {
754
- it(ye.x, ye.maxX);
776
+ onVirtualScroll: (ge) => {
777
+ pt(ge.x, ge.maxX);
755
778
  }
756
- }, null) : null, Lt = T.value ? null : a(Ce, {
757
- ref: ie,
758
- maxHeight: p?.y !== void 0 ? typeof p.y == "number" ? p.y : String(p.y) : void 0,
779
+ }, null) : null, Ot = L.value ? null : n(be, {
780
+ ref: me,
781
+ maxHeight: ht.value,
759
782
  wrapClass: e.bodyWrapper(),
760
- viewStyle: me,
761
- onScroll: te
783
+ viewStyle: we,
784
+ onScroll: oe
762
785
  }, {
763
- default: () => [a("table", {
764
- class: R.value,
786
+ default: () => [n("table", {
787
+ class: I.value,
765
788
  style: v
766
- }, [a(N, {
789
+ }, [n(F, {
767
790
  columns: f.value
768
- }, null), a(Se, {
769
- dataSource: y.value,
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: j.value,
796
+ tdClass: $.value,
774
797
  emptyClass: e.empty(),
775
798
  bodyCellEllipsisClass: e.bodyCellEllipsis(),
776
799
  rowKey: l.rowKey
777
- }, null), u && !h && a("tfoot", {
800
+ }, null), u && !w && n("tfoot", {
778
801
  class: e.summary()
779
802
  }, [u])])]
780
- }), Bt = u && h ? a("div", {
781
- class: C(e.headerWrapper(), b?.("summary"), g.value && b?.("sticky-holder")),
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
- }, [a("div", {
789
- class: L("block w-full min-w-full", m.value, x.value)
790
- }, [a("table", {
791
- class: R.value,
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
- }, [a(N, {
817
+ }, [n(F, {
794
818
  columns: f.value
795
- }, null), a("tfoot", {
819
+ }, null), n("tfoot", {
796
820
  class: e.summary()
797
821
  }, [u])])])]) : null;
798
- return a("div", {
799
- class: C(e.root(), oe.value)
800
- }, [o && a("div", {
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]), a("div", {
803
- class: C(e.wrapper(), g.value && L("overflow-clip", m.value, x.value))
804
- }, [Tt, Ht, Lt, Bt, we]), i && a("div", {
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
- }, [i])]);
831
+ }, [d])]);
807
832
  }
808
- const U = a(Pt, null, [a("table", {
809
- class: R.value,
833
+ const G = n(Mt, null, [n("table", {
834
+ class: I.value,
810
835
  style: v
811
- }, [a(N, {
836
+ }, [n(F, {
812
837
  columns: f.value
813
- }, null), l.showHeader !== !1 && a(ge, {
814
- rows: W.value,
838
+ }, null), l.showHeader !== !1 && n(De, {
839
+ rows: _.value,
815
840
  theadClass: e.thead(),
816
841
  rowClass: e.tr(),
817
- thClass: de.value,
842
+ thClass: fe.value,
818
843
  headerCellInnerClass: e.headerCellInner()
819
- }, null), a(Se, {
820
- dataSource: y.value,
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: j.value,
849
+ tdClass: $.value,
825
850
  emptyClass: e.empty(),
826
851
  bodyCellEllipsisClass: e.bodyCellEllipsis(),
827
852
  rowKey: l.rowKey
828
- }, null), u && a("tfoot", {
853
+ }, null), u && n("tfoot", {
829
854
  class: e.summary()
830
- }, [u])]), we]);
831
- return a("div", {
832
- class: C(e.root(), oe.value)
833
- }, [o && a("div", {
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]), a(Ce, {
836
- ref: se,
860
+ }, [o]), n(be, {
861
+ ref: pe,
837
862
  wrapClass: e.wrapper(),
838
- viewStyle: me,
839
- onScroll: te
840
- }, De(U) ? U : {
841
- default: () => [U]
842
- }), i && a("div", {
863
+ viewStyle: we,
864
+ onScroll: oe
865
+ }, He(G) ? G : {
866
+ default: () => [G]
867
+ }), d && n("div", {
843
868
  class: e.footer()
844
- }, [i])]);
869
+ }, [d])]);
845
870
  };
846
871
  }
847
872
  });
848
873
  export {
849
- Jl as default
874
+ io as default
850
875
  };