@vtable-guild/vtable-guild 2.8.1 → 2.9.0-alpha.0

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 (171) hide show
  1. package/css/presets/antdv.css +20 -0
  2. package/css/presets/element-plus.css +20 -0
  3. package/css/style.css +341 -0
  4. package/css/tailwind3-utilities.css +301 -0
  5. package/css/tailwind3.css +40 -0
  6. package/css/tailwind4.css +40 -0
  7. package/dist/core/src/components/Tooltip.d.ts +1 -1
  8. package/dist/core/src/components/Tooltip.d.ts.map +1 -1
  9. package/dist/core/src/components/Tooltip.mjs +49 -46
  10. package/dist/core/src/components/Tooltip.test.d.ts +2 -0
  11. package/dist/core/src/components/Tooltip.test.d.ts.map +1 -0
  12. package/dist/core/src/index.d.ts +1 -1
  13. package/dist/core/src/index.d.ts.map +1 -1
  14. package/dist/core/src/utils/types.d.ts +39 -1
  15. package/dist/core/src/utils/types.d.ts.map +1 -1
  16. package/dist/css/presets/antdv.css +20 -0
  17. package/dist/css/presets/element-plus.css +20 -0
  18. package/dist/css/style.css +341 -0
  19. package/dist/css/tailwind3-utilities.css +301 -0
  20. package/dist/css/tailwind3.css +40 -0
  21. package/dist/css/tailwind4.css +40 -0
  22. package/dist/icons/src/ColumnHeightOutlinedIcon.d.ts +3 -0
  23. package/dist/icons/src/ColumnHeightOutlinedIcon.d.ts.map +1 -0
  24. package/dist/icons/src/ColumnHeightOutlinedIcon.mjs +9 -0
  25. package/dist/icons/src/FullscreenExitOutlinedIcon.d.ts +3 -0
  26. package/dist/icons/src/FullscreenExitOutlinedIcon.d.ts.map +1 -0
  27. package/dist/icons/src/FullscreenExitOutlinedIcon.mjs +9 -0
  28. package/dist/icons/src/FullscreenOutlinedIcon.d.ts +3 -0
  29. package/dist/icons/src/FullscreenOutlinedIcon.d.ts.map +1 -0
  30. package/dist/icons/src/FullscreenOutlinedIcon.mjs +9 -0
  31. package/dist/icons/src/ReloadOutlinedIcon.d.ts +3 -0
  32. package/dist/icons/src/ReloadOutlinedIcon.d.ts.map +1 -0
  33. package/dist/icons/src/ReloadOutlinedIcon.mjs +9 -0
  34. package/dist/icons/src/SettingOutlinedIcon.d.ts +3 -0
  35. package/dist/icons/src/SettingOutlinedIcon.d.ts.map +1 -0
  36. package/dist/icons/src/SettingOutlinedIcon.mjs +9 -0
  37. package/dist/icons/src/index.d.ts +5 -0
  38. package/dist/icons/src/index.d.ts.map +1 -1
  39. package/dist/index.full.mjs +6088 -4458
  40. package/dist/index.mjs +115 -87
  41. package/dist/table/src/components/FilterDropdown.d.ts +1 -1
  42. package/dist/table/src/components/Table.d.ts +31 -4
  43. package/dist/table/src/components/Table.d.ts.map +1 -1
  44. package/dist/table/src/components/Table.mjs +516 -476
  45. package/dist/table/src/components/TableBody.d.ts.map +1 -1
  46. package/dist/table/src/components/TableBody.mjs +37 -36
  47. package/dist/table/src/components/TableCell.d.ts.map +1 -1
  48. package/dist/table/src/components/TableCell.mjs +95 -83
  49. package/dist/table/src/components/TableColumnSettings.d.ts +41 -0
  50. package/dist/table/src/components/TableColumnSettings.d.ts.map +1 -0
  51. package/dist/table/src/components/TableColumnSettings.mjs +360 -0
  52. package/dist/table/src/components/TableColumnSettings.test.d.ts +2 -0
  53. package/dist/table/src/components/TableColumnSettings.test.d.ts.map +1 -0
  54. package/dist/table/src/components/TableCopyButton.d.ts +41 -0
  55. package/dist/table/src/components/TableCopyButton.d.ts.map +1 -0
  56. package/dist/table/src/components/TableCopyButton.mjs +94 -0
  57. package/dist/table/src/components/TableEnterprise.test.d.ts +2 -0
  58. package/dist/table/src/components/TableEnterprise.test.d.ts.map +1 -0
  59. package/dist/table/src/components/TableHeaderCell.d.ts.map +1 -1
  60. package/dist/table/src/components/TableHeaderCell.mjs +284 -241
  61. package/dist/table/src/components/TableSelectionAlert.d.ts +50 -0
  62. package/dist/table/src/components/TableSelectionAlert.d.ts.map +1 -0
  63. package/dist/table/src/components/TableSelectionAlert.mjs +86 -0
  64. package/dist/table/src/components/TableSelectionAlert.test.d.ts +2 -0
  65. package/dist/table/src/components/TableSelectionAlert.test.d.ts.map +1 -0
  66. package/dist/table/src/components/TableToolbar.d.ts +87 -0
  67. package/dist/table/src/components/TableToolbar.d.ts.map +1 -0
  68. package/dist/table/src/components/TableToolbar.mjs +265 -0
  69. package/dist/table/src/components/TableToolbar.test.d.ts +2 -0
  70. package/dist/table/src/components/TableToolbar.test.d.ts.map +1 -0
  71. package/dist/table/src/components/VTable.vue.d.ts.map +1 -1
  72. package/dist/table/src/components/VTable.vue.mjs +24 -15
  73. package/dist/table/src/components/VTableColumnSettings.vue.d.ts +20 -0
  74. package/dist/table/src/components/VTableColumnSettings.vue.d.ts.map +1 -0
  75. package/dist/table/src/components/VTableColumnSettings.vue.mjs +42 -0
  76. package/dist/table/src/components/VTableColumnSettings.vue2.mjs +4 -0
  77. package/dist/table/src/components/VTableSelectionAlert.vue.d.ts +19 -0
  78. package/dist/table/src/components/VTableSelectionAlert.vue.d.ts.map +1 -0
  79. package/dist/table/src/components/VTableSelectionAlert.vue.mjs +54 -0
  80. package/dist/table/src/components/VTableSelectionAlert.vue2.mjs +4 -0
  81. package/dist/table/src/components/VTableToolbar.vue.d.ts +27 -0
  82. package/dist/table/src/components/VTableToolbar.vue.d.ts.map +1 -0
  83. package/dist/table/src/components/VTableToolbar.vue.mjs +108 -0
  84. package/dist/table/src/components/VTableToolbar.vue2.mjs +4 -0
  85. package/dist/table/src/composables/useColumnState.d.ts +32 -0
  86. package/dist/table/src/composables/useColumnState.d.ts.map +1 -0
  87. package/dist/table/src/composables/useColumnState.mjs +107 -0
  88. package/dist/table/src/composables/useColumnState.test.d.ts +2 -0
  89. package/dist/table/src/composables/useColumnState.test.d.ts.map +1 -0
  90. package/dist/table/src/composables/useFilter.d.ts.map +1 -1
  91. package/dist/table/src/composables/useFilter.mjs +28 -25
  92. package/dist/table/src/composables/usePagination.d.ts +1 -0
  93. package/dist/table/src/composables/usePagination.d.ts.map +1 -1
  94. package/dist/table/src/composables/usePagination.mjs +35 -34
  95. package/dist/table/src/composables/useTableRequest.d.ts +4 -0
  96. package/dist/table/src/composables/useTableRequest.d.ts.map +1 -0
  97. package/dist/table/src/composables/useTableRequest.mjs +127 -0
  98. package/dist/table/src/composables/useTableRequest.test.d.ts +2 -0
  99. package/dist/table/src/composables/useTableRequest.test.d.ts.map +1 -0
  100. package/dist/table/src/context.d.ts +9 -2
  101. package/dist/table/src/context.d.ts.map +1 -1
  102. package/dist/table/src/index.d.ts +17 -1
  103. package/dist/table/src/index.d.ts.map +1 -1
  104. package/dist/table/src/types/column-settings.d.ts +31 -0
  105. package/dist/table/src/types/column-settings.d.ts.map +1 -0
  106. package/dist/table/src/types/column-state.typecheck.d.ts +2 -0
  107. package/dist/table/src/types/column-state.typecheck.d.ts.map +1 -0
  108. package/dist/table/src/types/column.d.ts +15 -3
  109. package/dist/table/src/types/column.d.ts.map +1 -1
  110. package/dist/table/src/types/index.d.ts +2 -0
  111. package/dist/table/src/types/index.d.ts.map +1 -1
  112. package/dist/table/src/types/presentation.d.ts +24 -0
  113. package/dist/table/src/types/presentation.d.ts.map +1 -0
  114. package/dist/table/src/types/request.d.ts +65 -0
  115. package/dist/table/src/types/request.d.ts.map +1 -0
  116. package/dist/table/src/types/request.typecheck.d.ts +13 -0
  117. package/dist/table/src/types/request.typecheck.d.ts.map +1 -0
  118. package/dist/table/src/types/selection-alert.d.ts +30 -0
  119. package/dist/table/src/types/selection-alert.d.ts.map +1 -0
  120. package/dist/table/src/types/selection-alert.typecheck.d.ts +12 -0
  121. package/dist/table/src/types/selection-alert.typecheck.d.ts.map +1 -0
  122. package/dist/table/src/types/table.d.ts +12 -1
  123. package/dist/table/src/types/table.d.ts.map +1 -1
  124. package/dist/table/src/types/toolbar.d.ts +58 -0
  125. package/dist/table/src/types/toolbar.d.ts.map +1 -0
  126. package/dist/table/src/utils/cell.d.ts +4 -0
  127. package/dist/table/src/utils/cell.d.ts.map +1 -1
  128. package/dist/table/src/utils/cell.mjs +49 -45
  129. package/dist/table/src/utils/columnSettings.d.ts +22 -0
  130. package/dist/table/src/utils/columnSettings.d.ts.map +1 -0
  131. package/dist/table/src/utils/columnSettings.mjs +107 -0
  132. package/dist/table/src/utils/columnSettings.test.d.ts +2 -0
  133. package/dist/table/src/utils/columnSettings.test.d.ts.map +1 -0
  134. package/dist/table/src/utils/manual.d.ts +3 -0
  135. package/dist/table/src/utils/manual.d.ts.map +1 -0
  136. package/dist/table/src/utils/manual.mjs +6 -0
  137. package/dist/table/src/utils/valueEnum.d.ts +7 -0
  138. package/dist/table/src/utils/valueEnum.d.ts.map +1 -0
  139. package/dist/table/src/utils/valueEnum.mjs +23 -0
  140. package/dist/theme/src/augment.d.ts +4 -0
  141. package/dist/theme/src/augment.d.ts.map +1 -1
  142. package/dist/theme/src/column-settings.d.ts +160 -0
  143. package/dist/theme/src/column-settings.d.ts.map +1 -0
  144. package/dist/theme/src/column-settings.mjs +84 -0
  145. package/dist/theme/src/index.d.ts +12 -0
  146. package/dist/theme/src/index.d.ts.map +1 -1
  147. package/dist/theme/src/presets/antdv/table-locale.d.ts +10 -0
  148. package/dist/theme/src/presets/antdv/table-locale.d.ts.map +1 -1
  149. package/dist/theme/src/presets/antdv/table-locale.mjs +2 -0
  150. package/dist/theme/src/presets/antdv/table.d.ts +4 -0
  151. package/dist/theme/src/presets/antdv/table.d.ts.map +1 -1
  152. package/dist/theme/src/presets/antdv/table.mjs +4 -0
  153. package/dist/theme/src/presets/element-plus/table-locale.d.ts +10 -0
  154. package/dist/theme/src/presets/element-plus/table-locale.d.ts.map +1 -1
  155. package/dist/theme/src/presets/element-plus/table-locale.mjs +2 -0
  156. package/dist/theme/src/presets/element-plus/table.d.ts +4 -0
  157. package/dist/theme/src/presets/element-plus/table.d.ts.map +1 -1
  158. package/dist/theme/src/presets/element-plus/table.mjs +4 -0
  159. package/dist/theme/src/presets/index.d.ts.map +1 -1
  160. package/dist/theme/src/presets/index.mjs +100 -67
  161. package/dist/theme/src/presets/types.d.ts +3 -0
  162. package/dist/theme/src/presets/types.d.ts.map +1 -1
  163. package/dist/theme/src/selection-alert.d.ts +54 -0
  164. package/dist/theme/src/selection-alert.d.ts.map +1 -0
  165. package/dist/theme/src/selection-alert.mjs +36 -0
  166. package/dist/theme/src/toolbar.d.ts +105 -0
  167. package/dist/theme/src/toolbar.d.ts.map +1 -0
  168. package/dist/theme/src/toolbar.mjs +57 -0
  169. package/dist/vtable-guild/src/augment.d.ts +4 -1
  170. package/dist/vtable-guild/src/augment.d.ts.map +1 -1
  171. package/package.json +1 -1
@@ -1,90 +1,99 @@
1
- import { defineComponent as Jt, inject as Zt, computed as a, provide as We, ref as b, onMounted as Qt, onBeforeUnmount as el, watch as I, createVNode as n, Fragment as tl, isVNode as ll, nextTick as ol } from "vue";
1
+ import { defineComponent as ll, ref as C, watch as H, onBeforeUnmount as Ke, computed as o, inject as al, provide as Me, onMounted as ol, createVNode as r, Fragment as nl, isVNode as rl, nextTick as il } from "vue";
2
+ import { isManual as ce } from "../utils/manual.mjs";
2
3
  import "../../../core/src/utils/tv.mjs";
3
- import { prefixThemeConfig as al, prefixVtgClassNames as Y } from "../../../core/src/utils/classPrefix.mjs";
4
- import { devWarn as nl } from "../../../core/src/utils/devWarn.mjs";
5
- import { mergeThemeConfigs as T, useTheme as rl } from "../../../core/src/composables/useTheme.mjs";
6
- import { mergeDeep as $ } from "../../../core/src/utils/mergeDeep.mjs";
7
- import ke from "../../../core/src/components/Scrollbar.mjs";
8
- import { VTABLE_GUILD_INJECTION_KEY as ze } from "../../../core/src/plugin/index.mjs";
9
- import { paginationZhCN as il } from "../../../theme/src/pagination.mjs";
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 yl } from "../../../theme/src/compat/antdv-table.mjs";
12
- import { usePagination as hl } from "../composables/usePagination.mjs";
13
- import Cl from "./TablePagination.mjs";
14
- import { filterVisibleColumns as bl, applyColumnOrder as xl } from "../composables/useColumnDisplay.mjs";
15
- import { getEllipsisConfig as Sl } from "../utils/cell.mjs";
16
- import { getRootCompatClass as Dl } from "../utils/compat.mjs";
17
- import { resolveRowKey as Rl } from "../utils/rowKey.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";
32
- import Ke from "./TableHeader.mjs";
33
- import _e from "./TableBody.mjs";
34
- import Ml from "./VirtualTableBody.mjs";
35
- import Me from "./TableLoading.mjs";
36
- import U from "./ColGroup.mjs";
37
- import G from "./ColumnWidthRow.mjs";
38
- import { antdvTableTheme as jl } from "../../../theme/src/presets/antdv/table.mjs";
39
- import { useColumns as je } from "../composables/useColumns.mjs";
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";
43
- import { cn as x } from "tailwind-variants";
44
- function Ve(l) {
45
- return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !ll(l);
4
+ import { prefixThemeConfig as dl, prefixVtgClassNames as G } from "../../../core/src/utils/classPrefix.mjs";
5
+ import { devWarn as ul } from "../../../core/src/utils/devWarn.mjs";
6
+ import { mergeThemeConfigs as N, useTheme as sl } from "../../../core/src/composables/useTheme.mjs";
7
+ import { mergeDeep as X } from "../../../core/src/utils/mergeDeep.mjs";
8
+ import je from "../../../core/src/components/Scrollbar.mjs";
9
+ import { VTABLE_GUILD_INJECTION_KEY as Ve } from "../../../core/src/plugin/index.mjs";
10
+ import { paginationZhCN as cl } from "../../../theme/src/pagination.mjs";
11
+ import { resolveTooltipThemePreset as fl, resolveScrollbarThemePreset as ml, resolveRadioThemePreset as pl, resolveInputThemePreset as vl, resolveCheckboxThemePreset as gl, resolveButtonThemePreset as yl, resolveTableThemePreset as hl, resolveTableLocalePreset as wl, resolveBuiltInTableLocale as Cl, resolveBuiltInLocale as xl } from "../../../theme/src/presets/index.mjs";
12
+ import { antdvTableCompatClasses as bl } from "../../../theme/src/compat/antdv-table.mjs";
13
+ import { usePagination as Sl } from "../composables/usePagination.mjs";
14
+ import Dl from "./TablePagination.mjs";
15
+ import { filterVisibleColumns as Rl, applyColumnOrder as El } from "../composables/useColumnDisplay.mjs";
16
+ import { getEllipsisConfig as Il } from "../utils/cell.mjs";
17
+ import { getRootCompatClass as Tl } from "../utils/compat.mjs";
18
+ import { resolveRowKey as Hl } from "../utils/rowKey.mjs";
19
+ import { useScroll as Ll } from "../composables/useScroll.mjs";
20
+ import { useAutoHeight as Bl } from "../composables/useAutoHeight.mjs";
21
+ import { useColumnMetrics as Nl } from "../composables/useColumnMetrics.mjs";
22
+ import { useColumnLayout as Fl } from "../composables/useColumnLayout.mjs";
23
+ import { resolveFixedColumnRanges as Ol } from "../composables/useColumnWindow.mjs";
24
+ import { useExpand as _l } from "../composables/useExpand.mjs";
25
+ import { useResize as Al } from "../composables/useResize.mjs";
26
+ import { useVirtual as Pl, INVALID_SCROLL_Y_FALLBACK as kl } from "../composables/useVirtual.mjs";
27
+ import { useTreeData as Wl } from "../composables/useTreeData.mjs";
28
+ import { useHoverState as zl } from "../composables/useHoverState.mjs";
29
+ import { useRowDragSort as Kl } from "../composables/useRowDragSort.mjs";
30
+ import { TABLE_CONTEXT_KEY as Ml } from "../context.mjs";
31
+ import { EXPAND_COLUMN as jl, SELECTION_COLUMN as Vl } from "../constants.mjs";
32
+ import { resolveTablePresetConfig as Yl } from "../preset-config.mjs";
33
+ import Ye from "./TableHeader.mjs";
34
+ import $e from "./TableBody.mjs";
35
+ import $l from "./VirtualTableBody.mjs";
36
+ import Ue from "./TableLoading.mjs";
37
+ import q from "./ColGroup.mjs";
38
+ import J from "./ColumnWidthRow.mjs";
39
+ import { antdvTableTheme as Ul } from "../../../theme/src/presets/antdv/table.mjs";
40
+ import { useColumns as Ge } from "../composables/useColumns.mjs";
41
+ import { useSorter as Gl } from "../composables/useSorter.mjs";
42
+ import { useFilter as Xl } from "../composables/useFilter.mjs";
43
+ import { useSelection as ql } from "../composables/useSelection.mjs";
44
+ import { cn as S } from "tailwind-variants";
45
+ function Xe(l) {
46
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !rl(l);
46
47
  }
47
- const Ul = [["xxxl", 2e3], ["xxl", 1600], ["xl", 1200], ["lg", 992], ["md", 768], ["sm", 576], ["xs", 0]];
48
- function Ye() {
48
+ const Jl = [["xxxl", 2e3], ["xxl", 1600], ["xl", 1200], ["lg", 992], ["md", 768], ["sm", 576], ["xs", 0]];
49
+ function qe() {
49
50
  if (typeof window > "u")
50
51
  return /* @__PURE__ */ new Set(["md", "sm", "xs"]);
51
- const l = window.innerWidth, d = /* @__PURE__ */ new Set();
52
- return Ul.forEach(([s, i]) => {
52
+ const l = window.innerWidth, i = /* @__PURE__ */ new Set();
53
+ return Jl.forEach(([s, u]) => {
53
54
  if (s === "xs") {
54
- l < 576 && d.add("xs");
55
+ l < 576 && i.add("xs");
55
56
  return;
56
57
  }
57
- l >= i && d.add(s);
58
- }), d;
58
+ l >= u && i.add(s);
59
+ }), i;
59
60
  }
60
- function $e(l, d) {
61
- return l.reduce((s, i) => {
62
- if (typeof i == "symbol")
63
- return s.push(i), s;
64
- if (i.responsive?.length && !i.responsive.some((g) => d.has(g)))
61
+ function Je(l, i) {
62
+ return l.reduce((s, u) => {
63
+ if (typeof u == "symbol")
64
+ return s.push(u), s;
65
+ if (u.responsive?.length && !u.responsive.some((R) => i.has(R)))
65
66
  return s;
66
- const v = i.fixed === !0 ? "left" : i.fixed;
67
- if ("children" in i && Array.isArray(i.children)) {
68
- const g = $e(i.children, d);
69
- return g.length === 0 || s.push({
70
- ...i,
71
- fixed: v,
72
- children: g
67
+ const D = u.fixed === !0 ? "left" : u.fixed;
68
+ if ("children" in u && Array.isArray(u.children)) {
69
+ const R = Je(u.children, i);
70
+ return R.length === 0 || s.push({
71
+ ...u,
72
+ fixed: D,
73
+ children: R
73
74
  }), s;
74
75
  }
75
- return s.push(v === i.fixed ? i : {
76
- ...i,
77
- fixed: v
76
+ return s.push(D === u.fixed ? u : {
77
+ ...u,
78
+ fixed: D
78
79
  }), s;
79
80
  }, []);
80
81
  }
81
- const zo = /* @__PURE__ */ Jt({
82
+ const ja = /* @__PURE__ */ ll({
82
83
  name: "VTable",
83
84
  props: {
84
85
  pagination: {
85
86
  type: [Boolean, Object],
86
87
  default: !1
87
88
  },
89
+ manual: {
90
+ type: [Boolean, Object],
91
+ default: !1
92
+ },
93
+ columnEmptyText: {
94
+ type: null,
95
+ default: !1
96
+ },
88
97
  dataSource: {
89
98
  type: Array,
90
99
  default: () => []
@@ -158,7 +167,7 @@ const zo = /* @__PURE__ */ Jt({
158
167
  default: void 0
159
168
  },
160
169
  showSorterTooltip: {
161
- type: Boolean,
170
+ type: [Boolean, Object],
162
171
  default: void 0
163
172
  },
164
173
  sortDirections: {
@@ -273,338 +282,355 @@ const zo = /* @__PURE__ */ Jt({
273
282
  }
274
283
  },
275
284
  emits: {
276
- change: (l, d, s) => !0,
277
- resizeColumn: (l, d) => !0,
278
- rowDragEnd: (l, d) => !0
285
+ change: (l, i, s) => !0,
286
+ resizeColumn: (l, i) => !0,
287
+ rowDragEnd: (l, i) => !0
279
288
  },
280
289
  slots: Object,
281
290
  setup(l, {
282
- slots: d,
291
+ slots: i,
283
292
  emit: s
284
293
  }) {
285
- const i = Zt(ze, null), v = a(() => i?.themePreset ?? "antdv"), g = a(() => i?.cssMode ?? "prebuilt"), S = a(() => i?.classPrefix ?? "vtg"), Ue = a(() => {
286
- const t = i?.theme ?? {}, o = v.value, r = (u) => al(u, g.value, S.value);
294
+ const u = C(!1);
295
+ let D;
296
+ H(() => {
297
+ const t = l.loading;
298
+ return [t === !0 || typeof t == "object" && t !== null && t.spinning !== !1, typeof t == "object" && t !== null ? t.delay : 0];
299
+ }, ([t, a]) => {
300
+ clearTimeout(D), t ? !a || !Number.isFinite(a) || a < 0 ? u.value = !0 : u.value || (D = setTimeout(() => {
301
+ u.value = !0;
302
+ }, a)) : u.value = !1;
303
+ }, {
304
+ immediate: !0
305
+ }), Ke(() => clearTimeout(D));
306
+ const R = o(() => typeof l.loading == "object" ? l.loading?.wrapperClassName : void 0), m = al(Ve, null), x = o(() => m?.themePreset ?? "antdv"), E = o(() => m?.cssMode ?? "prebuilt"), I = o(() => m?.classPrefix ?? "vtg"), Ze = o(() => {
307
+ const t = m?.theme ?? {}, a = x.value, n = (d) => dl(d, E.value, I.value);
287
308
  return {
288
309
  ...t,
289
- button: T(r(ml(o)), t.button),
290
- checkbox: T(r(fl(o)), t.checkbox),
291
- input: T(r(cl(o)), t.input),
292
- radio: T(r(ul(o)), t.radio),
293
- scrollbar: T(r(sl(o)), t.scrollbar),
294
- tooltip: T(r(dl(o)), t.tooltip)
310
+ button: N(n(yl(a)), t.button),
311
+ checkbox: N(n(gl(a)), t.checkbox),
312
+ input: N(n(vl(a)), t.input),
313
+ radio: N(n(pl(a)), t.radio),
314
+ scrollbar: N(n(ml(a)), t.scrollbar),
315
+ tooltip: N(n(fl(a)), t.tooltip)
295
316
  };
296
317
  });
297
- We(ze, {
318
+ Me(Ve, {
298
319
  get themePreset() {
299
- return v.value;
320
+ return x.value;
300
321
  },
301
322
  get cssMode() {
302
- return g.value;
323
+ return E.value;
303
324
  },
304
325
  get classPrefix() {
305
- return S.value;
326
+ return I.value;
306
327
  },
307
328
  get theme() {
308
- return Ue.value;
329
+ return Ze.value;
309
330
  },
310
331
  get locale() {
311
- return i?.locale ?? "zh-CN";
332
+ return m?.locale ?? "zh-CN";
312
333
  },
313
334
  get locales() {
314
- return i?.locales ?? {};
335
+ return m?.locales ?? {};
315
336
  },
316
337
  get localeOverrides() {
317
- return i?.localeOverrides ?? {};
338
+ return m?.localeOverrides ?? {};
318
339
  },
319
340
  get compatClass() {
320
- return i?.compatClass;
341
+ return m?.compatClass;
321
342
  }
322
343
  });
323
- const Ge = a(() => pl(v.value) ?? jl), {
344
+ const Qe = o(() => hl(x.value) ?? Ul), {
324
345
  slots: e
325
- } = rl("table", Ge, l, {
326
- compatClasses: yl
327
- }), H = i?.compatClass === !0 ? (t) => `ant-table-${t}` : void 0, L = a(() => l.locale ?? i?.locale ?? "zh-CN"), de = a(() => ({
328
- ...i?.locales ?? {},
346
+ } = sl("table", Qe, l, {
347
+ compatClasses: bl
348
+ }), F = m?.compatClass === !0 ? (t) => `ant-table-${t}` : void 0, O = o(() => l.locale ?? m?.locale ?? "zh-CN"), fe = o(() => ({
349
+ ...m?.locales ?? {},
329
350
  ...l.locales ?? {}
330
- })), Xe = a(() => {
331
- const t = vl(v.value), o = gl(v.value, L.value), r = de.value[L.value]?.table, u = $($(t, o), r);
332
- return $(u, $(i?.localeOverrides?.table ?? {}, l.localeOverrides));
333
- }), X = b(Ye());
334
- function q() {
335
- X.value = Ye();
351
+ })), et = o(() => {
352
+ const t = wl(x.value), a = Cl(x.value, O.value), n = fe.value[O.value]?.table, d = X(X(t, a), n);
353
+ return X(d, X(m?.localeOverrides?.table ?? {}, l.localeOverrides));
354
+ }), Z = C(qe());
355
+ function Q() {
356
+ Z.value = qe();
336
357
  }
337
- Qt(() => {
338
- q(), window.addEventListener("resize", q);
339
- }), el(() => {
340
- window.removeEventListener("resize", q);
358
+ ol(() => {
359
+ Q(), window.addEventListener("resize", Q);
360
+ }), Ke(() => {
361
+ window.removeEventListener("resize", Q);
341
362
  });
342
- const se = a(() => $e(l.columns, X.value)), R = a(() => l.sticky === !0 ? {} : typeof l.sticky == "object" ? l.sticky : void 0), {
343
- leafColumns: P
344
- } = je(() => se.value), {
345
- getSortOrder: J,
346
- toggleSortOrder: qe,
347
- sortData: Je,
348
- sorterState: Ze,
349
- sorterResult: Z,
350
- sortColumns: Qe
351
- } = Vl({
352
- columns: () => P.value,
363
+ const me = o(() => Je(l.columns, Z.value)), L = o(() => l.sticky === !0 ? {} : typeof l.sticky == "object" ? l.sticky : void 0), {
364
+ leafColumns: W
365
+ } = Ge(() => me.value), {
366
+ getSortOrder: ee,
367
+ toggleSortOrder: tt,
368
+ sortData: lt,
369
+ sorterState: at,
370
+ sorterResult: te,
371
+ sortColumns: ot
372
+ } = Gl({
373
+ columns: () => W.value,
353
374
  tableSortDirections: () => l.sortDirections,
354
375
  onSorterChange(t) {
355
- const o = Q();
356
- s("change", W(), t, {
376
+ const a = le();
377
+ s("change", z(), t, {
357
378
  action: "sort",
358
- currentDataSource: o,
359
- ...ee()
360
- }), te();
379
+ currentDataSource: a,
380
+ ...ae()
381
+ }), oe();
361
382
  }
362
383
  }), {
363
- getFilteredValue: et,
364
- confirmFilter: tt,
365
- resetFilter: lt,
366
- getAllFilters: W,
367
- filterData: ot
368
- } = Yl({
369
- columns: () => P.value,
384
+ getFilteredValue: nt,
385
+ confirmFilter: rt,
386
+ resetFilter: it,
387
+ getAllFilters: z,
388
+ filterData: dt
389
+ } = Xl({
390
+ columns: () => W.value,
370
391
  onFilterChange(t) {
371
- const o = Q(), r = c.resetForFilter();
372
- s("change", t, Z.value, {
392
+ const a = le(), n = c.resetForFilter();
393
+ s("change", t, te.value, {
373
394
  action: "filter",
374
- currentDataSource: o,
375
- ...ee(r)
376
- }), te();
395
+ currentDataSource: a,
396
+ ...ae(n)
397
+ }), oe();
377
398
  }
378
399
  });
379
- function Q() {
400
+ function le() {
380
401
  let t = l.dataSource;
381
- return t = ot(t), t = Je(t), t;
402
+ return ce(l.manual, "filter") || (t = dt(t)), ce(l.manual, "sort") || (t = lt(t)), t;
382
403
  }
383
- const B = a(() => Q()), c = hl({
404
+ const _ = o(() => le()), c = Sl({
405
+ manual: () => ce(l.manual, "pagination"),
384
406
  pagination: () => l.pagination,
385
- data: () => B.value,
407
+ data: () => _.value,
386
408
  onChange(t) {
387
- s("change", W(), Z.value, {
409
+ s("change", z(), te.value, {
388
410
  action: "paginate",
389
- currentDataSource: B.value,
411
+ currentDataSource: _.value,
390
412
  pagination: t
391
- }), te();
413
+ }), oe();
392
414
  }
393
415
  });
394
- function ee(t) {
416
+ function ae(t) {
395
417
  return c.enabled.value ? {
396
418
  pagination: t ?? c.state.value
397
419
  } : {};
398
420
  }
399
- const at = a(() => ({
400
- ...il,
401
- ...wl(v.value, L.value)?.pagination,
402
- ...de.value[L.value]?.pagination,
403
- ...i?.localeOverrides?.pagination,
421
+ const ut = o(() => ({
422
+ ...cl,
423
+ ...xl(x.value, O.value)?.pagination,
424
+ ...fe.value[O.value]?.pagination,
425
+ ...m?.localeOverrides?.pagination,
404
426
  ...c.config.value.locale
405
- })), ue = b(null);
406
- function te() {
407
- (l.scroll?.scrollToFirstRowOnChange ?? c.enabled.value) && ol(() => {
408
- D.value ? ue.value?.scrollToTop() : E.value && (E.value.scrollTop = 0);
427
+ })), pe = C(null);
428
+ function oe() {
429
+ (l.scroll?.scrollToFirstRowOnChange ?? c.enabled.value) && il(() => {
430
+ T.value ? pe.value?.scrollToTop() : B.value && (B.value.scrollTop = 0);
409
431
  });
410
432
  }
411
- function k(t) {
433
+ function K(t) {
412
434
  if (!c.enabled.value || c.state.value.total === 0) return null;
413
- const r = (c.config.value.position ?? ["bottomRight"]).find((h) => h !== "none" && h.startsWith(t));
414
- if (!r) return null;
415
- const u = r.slice(t.length).toLowerCase();
416
- return n(Cl, {
435
+ const n = (c.config.value.position ?? ["bottomRight"]).find((h) => h !== "none" && h.startsWith(t));
436
+ if (!n) return null;
437
+ const d = n.slice(t.length).toLowerCase();
438
+ return r(Dl, {
417
439
  key: t,
418
440
  config: c.config.value,
419
441
  state: c.state.value,
420
- locale: at.value,
421
- align: u,
422
- position: r,
442
+ locale: ut.value,
443
+ align: d,
444
+ position: n,
423
445
  tableSize: l.size,
424
- narrow: X.value.has("xs"),
446
+ narrow: Z.value.has("xs"),
425
447
  getPopupContainer: l.getPopupContainer,
426
448
  onChange: c.change
427
- }, d.paginationItem ? {
428
- paginationItem: d.paginationItem
449
+ }, i.paginationItem ? {
450
+ paginationItem: i.paginationItem
429
451
  } : void 0);
430
452
  }
431
- function N(t, o) {
432
- const r = Rl(t, o, l.rowKey);
433
- return l.rowKey === void 0 || typeof l.rowKey == "string" && l.rowKey in t, r;
453
+ function A(t, a) {
454
+ const n = Hl(t, a, l.rowKey);
455
+ return l.rowKey === void 0 || typeof l.rowKey == "string" && l.rowKey in t, n;
434
456
  }
435
457
  const {
436
- flattenData: ce,
437
- rowMetaMap: fe,
438
- isTreeData: le,
439
- toggleTreeExpand: nt,
440
- isTreeExpanded: rt,
441
- indentSize: it
442
- } = Al({
443
- data: () => B.value,
458
+ flattenData: ve,
459
+ rowMetaMap: ge,
460
+ isTreeData: ne,
461
+ toggleTreeExpand: st,
462
+ isTreeExpanded: ct,
463
+ indentSize: ft
464
+ } = Wl({
465
+ data: () => _.value,
444
466
  pageData: () => c.pageData.value,
445
467
  preserveStateOnDataChange: () => c.enabled.value,
446
468
  childrenColumnName: () => l.childrenColumnName,
447
469
  indentSize: () => l.indentSize,
448
- getRowKey: N,
470
+ getRowKey: A,
449
471
  defaultExpandedRowKeys: () => l.defaultExpandedRowKeys,
450
472
  expandedRowKeys: () => l.expandedRowKeys,
451
473
  defaultExpandAllRows: () => l.defaultExpandAllRows,
452
474
  onExpand: l.onExpand,
453
475
  onExpandedRowsChange: l.onExpandedRowsChange
454
476
  }), {
455
- hoverRange: dt,
456
- setHoverRange: st,
457
- clearHoverRange: ut
458
- } = Pl(100), z = Wl({
477
+ hoverRange: mt,
478
+ setHoverRange: pt,
479
+ clearHoverRange: vt
480
+ } = zl(100), M = Kl({
459
481
  enabled: () => l.rowDraggable === !0,
460
- getRowKey: N,
482
+ getRowKey: A,
461
483
  dataSource: () => l.dataSource,
462
484
  childrenColumnName: () => l.childrenColumnName,
463
- onDrop(t, o) {
464
- s("rowDragEnd", t, o);
485
+ onDrop(t, a) {
486
+ s("rowDragEnd", t, a);
465
487
  }
466
- }), w = a(() => le.value ? ce.value.map((t) => t.record) : c.pageData.value), {
467
- isSelected: ct,
468
- isDisabled: ft,
469
- getSelectionState: mt,
470
- toggleRow: pt,
471
- toggleAll: vt,
472
- allCheckedState: gt,
473
- invertSelection: wt,
474
- clearSelection: yt,
475
- getChangeableRowKeys: ht
476
- } = $l({
488
+ }), v = o(() => ne.value ? ve.value.map((t) => t.record) : c.pageData.value), {
489
+ isSelected: gt,
490
+ isDisabled: yt,
491
+ getSelectionState: ht,
492
+ toggleRow: wt,
493
+ toggleAll: Ct,
494
+ allCheckedState: xt,
495
+ invertSelection: bt,
496
+ clearSelection: St,
497
+ getChangeableRowKeys: Dt
498
+ } = ql({
477
499
  rowSelection: () => l.rowSelection,
478
- getRowKey: N,
479
- data: () => B.value,
480
- visibleData: () => w.value,
500
+ getRowKey: A,
501
+ data: () => _.value,
502
+ visibleData: () => v.value,
481
503
  paginate: () => c.enabled.value,
482
504
  childrenColumnName: () => l.childrenColumnName,
483
505
  onSelectionChange() {
484
- s("change", W(), Z.value, {
506
+ s("change", z(), te.value, {
485
507
  action: "select",
486
- currentDataSource: w.value,
487
- ...ee()
508
+ currentDataSource: v.value,
509
+ ...ae()
488
510
  });
489
511
  }
490
512
  }), {
491
- isExpanded: Ct,
492
- toggleExpand: bt
493
- } = Bl({
513
+ isExpanded: Rt,
514
+ toggleExpand: Et
515
+ } = _l({
494
516
  expandable: () => l.expandable,
495
- getRowKey: N,
496
- data: () => c.enabled.value ? B.value : w.value,
517
+ getRowKey: A,
518
+ data: () => c.enabled.value ? _.value : v.value,
497
519
  childrenColumnName: () => l.childrenColumnName,
498
520
  initializeNewRows: () => c.enabled.value
499
- }), me = (t) => {
500
- const o = l.expandable;
501
- return o ? o.rowExpandable ? o.rowExpandable(t) : !!o.expandedRowRender : !1;
502
- }, xt = (t, o) => {
503
- me(t) && bt(t, o);
504
- }, pe = "__vtg_selection__", ve = "__vtg_expand__", St = a(() => {
505
- const t = l.expandable, o = l.rowSelection, r = t && t.showExpandColumn !== !1 ? {
506
- key: ve,
507
- title: "",
521
+ }), ye = (t) => {
522
+ const a = l.expandable;
523
+ return a ? a.rowExpandable ? a.rowExpandable(t) : !!a.expandedRowRender : !1;
524
+ }, It = (t, a) => {
525
+ ye(t) && Et(t, a);
526
+ }, he = "__vtg_selection__", we = "__vtg_expand__", Tt = o(() => {
527
+ const t = l.expandable, a = l.rowSelection, n = t && t.showExpandColumn !== !1 ? {
528
+ key: we,
529
+ title: () => i.expandColumnTitle?.() ?? t.columnTitle ?? "",
508
530
  width: t.columnWidth ?? 48,
509
531
  align: "center",
510
532
  fixed: t.fixed === !0 ? "left" : t.fixed
511
- } : null, u = o ? {
512
- key: pe,
533
+ } : null, d = a ? {
534
+ key: he,
513
535
  title: "",
514
- width: o.columnWidth ?? 48,
536
+ width: a.columnWidth ?? 48,
515
537
  align: "center",
516
- fixed: o.fixed === !0 ? "left" : o.fixed || void 0
517
- } : null, h = bl(se.value), y = [];
518
- let p = !1, m = !1;
519
- for (const A of h) {
520
- if (A === zl) {
521
- r && !p && (y.push(r), p = !0);
538
+ fixed: a.fixed === !0 ? "left" : a.fixed || void 0
539
+ } : null, h = Rl(me.value), g = [];
540
+ let p = !1, y = !1;
541
+ for (const w of h) {
542
+ if (w === jl) {
543
+ n && !p && (g.push(n), p = !0);
522
544
  continue;
523
545
  }
524
- if (A === Kl) {
525
- u && !m && (y.push(u), m = !0);
546
+ if (w === Vl) {
547
+ d && !y && (g.push(d), y = !0);
526
548
  continue;
527
549
  }
528
- y.push(A);
550
+ g.push(w);
551
+ }
552
+ if (d && !y && g.unshift(d), n && !p) {
553
+ const w = t?.expandIconColumnIndex;
554
+ g.splice(typeof w == "number" && Number.isFinite(w) ? Math.min(g.length, Math.max(0, Math.floor(w)) + (d ? 1 : 0)) : d ? 1 : 0, 0, n);
529
555
  }
530
- return r && !p && y.unshift(r), u && !m && y.unshift(u), xl(y, l.columnOrder, [pe, ve]);
556
+ return El(g, l.columnOrder, [he, we]);
531
557
  }), {
532
558
  leafColumns: f,
533
- headerRows: oe
534
- } = je(() => St.value), Dt = a(() => oe.value.length > 1), {
535
- columnWidths: K,
536
- startResize: Rt,
537
- isResizing: Et
538
- } = Nl({
559
+ headerRows: re
560
+ } = Ge(() => Tt.value), Ht = o(() => re.value.length > 1), {
561
+ columnWidths: j,
562
+ startResize: Lt,
563
+ isResizing: Bt
564
+ } = Al({
539
565
  columns: () => f.value,
540
- onResizeColumn(t, o) {
541
- s("resizeColumn", t, o);
566
+ onResizeColumn(t, a) {
567
+ s("resizeColumn", t, a);
542
568
  }
543
569
  }), {
544
- headerWrapRef: _,
545
- bodyWrapRef: E,
546
- scrollState: ge,
547
- handleBodyScroll: we,
548
- fixedOffsets: ye,
549
- syncHorizontalScroll: It,
550
- updateScrollState: Tt
551
- } = El({
570
+ headerWrapRef: V,
571
+ bodyWrapRef: B,
572
+ scrollState: Ce,
573
+ handleBodyScroll: xe,
574
+ fixedOffsets: be,
575
+ syncHorizontalScroll: Nt,
576
+ updateScrollState: Ft
577
+ } = Ll({
552
578
  displayColumns: () => f.value,
553
- columnWidths: K,
554
- layoutWidths: () => C.metrics.value?.widths,
555
- syncElements: () => V.value ? [V.value] : []
556
- }), he = a(() => Dl({
557
- compatClass: H,
558
- fixedOffsets: ye,
559
- scrollState: ge,
560
- empty: w.value.length === 0,
579
+ columnWidths: j,
580
+ layoutWidths: () => b.metrics.value?.widths,
581
+ syncElements: () => U.value ? [U.value] : []
582
+ }), Se = o(() => Tl({
583
+ compatClass: F,
584
+ fixedOffsets: be,
585
+ scrollState: Ce,
586
+ empty: v.value.length === 0,
561
587
  fixedHeader: l.scroll?.y !== void 0,
562
- fixedColumn: xe.value && be.value,
563
- horizontalScroll: xe.value,
564
- layoutFixed: j.value === "fixed"
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(() => {
566
- if (R.value)
588
+ fixedColumn: Ee.value && Re.value,
589
+ horizontalScroll: Ee.value,
590
+ layoutFixed: $.value === "fixed"
591
+ })), Y = o(() => l.scroll?.y === "auto"), De = o(() => !!l.scroll?.y || l.showHeader !== !1 && !!l.sticky), Re = o(() => f.value.some((t) => t.fixed === "left" || t.fixed === "right")), Ee = o(() => l.scroll?.x !== void 0 || b.overflow.value || !!l.expandable?.fixed), Ot = o(() => W.value.some((t) => Il(t).enabled)), $ = o(() => l.tableLayout ? l.tableLayout : l.scroll?.y || l.scroll?.x || Re.value || Ot.value ? "fixed" : "auto"), _t = o(() => {
592
+ if (L.value)
567
593
  return {
568
594
  position: "sticky",
569
- top: `${R.value.offsetHeader ?? 0}px`,
595
+ top: `${L.value.offsetHeader ?? 0}px`,
570
596
  zIndex: "4"
571
597
  };
572
- }), Se = b(null), V = b(null), F = b(null), C = Hl({
598
+ }), Ie = C(null), U = C(null), P = C(null), b = Fl({
573
599
  columns: () => f.value,
574
- columnWidths: K,
575
- layout: () => j.value,
576
- split: () => Ce.value,
577
- root: () => F.value,
578
- viewport: () => F.value?.contains(E.value) ? E.value : _.value ?? F.value,
600
+ columnWidths: j,
601
+ layout: () => $.value,
602
+ split: () => De.value,
603
+ root: () => P.value,
604
+ viewport: () => P.value?.contains(B.value) ? B.value : V.value ?? P.value,
579
605
  scrollX: () => l.scroll?.x,
580
606
  onMeasure: () => {
581
- D.value || Tt();
607
+ T.value || Ft();
582
608
  }
583
609
  }), {
584
- bodyHeight: De
585
- } = Il({
586
- enabled: () => M.value,
587
- wrapperEl: () => Se.value,
588
- headerEl: () => _.value,
589
- summaryEl: () => V.value,
590
- hasData: () => w.value.length > 0
591
- }), Bt = a(() => {
610
+ bodyHeight: Te
611
+ } = Bl({
612
+ enabled: () => Y.value,
613
+ wrapperEl: () => Ie.value,
614
+ headerEl: () => V.value,
615
+ summaryEl: () => U.value,
616
+ hasData: () => v.value.length > 0
617
+ }), At = o(() => {
592
618
  const t = l.scroll?.y;
593
619
  if (t !== void 0)
594
- return M.value ? De.value : typeof t == "number" ? Number.isFinite(t) && t > 0 ? t : void 0 : t;
620
+ return Y.value ? Te.value : typeof t == "number" ? Number.isFinite(t) && t > 0 ? t : void 0 : t;
595
621
  }), {
596
- enabled: D,
597
- itemHeight: Nt,
598
- listHeight: Ft,
599
- fixedHeight: Ot,
600
- resolvedScrollY: At
601
- } = Fl({
622
+ enabled: T,
623
+ itemHeight: Pt,
624
+ listHeight: kt,
625
+ fixedHeight: Wt,
626
+ resolvedScrollY: zt
627
+ } = Pl({
602
628
  virtual: () => l.virtual,
603
629
  scrollY: () => l.scroll?.y,
604
630
  size: () => l.size,
605
631
  rowHeight: () => l.rowHeight,
606
- measuredHeight: () => De.value
607
- }), Re = a(() => P.value.some((t) => !!t.customCell || !!t.customRender)), ae = a(() => !Dt.value || l.bordered ? {
632
+ measuredHeight: () => Te.value
633
+ }), He = o(() => W.value.some((t) => !!t.customCell || !!t.customRender)), ie = o(() => !Ht.value || l.bordered ? {
608
634
  table: "",
609
635
  th: "",
610
636
  td: ""
@@ -612,72 +638,72 @@ const zo = /* @__PURE__ */ Jt({
612
638
  table: e.groupedHeaderTable(),
613
639
  th: e.groupedHeaderTh(),
614
640
  td: e.groupedHeaderTd()
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) ?? "");
616
- I([D, Re], ([t, o]) => {
641
+ }), k = o(() => S(e.table(), ie.value.table) ?? ""), Le = o(() => b.enabled.value ? e.widthLayoutCell() : void 0), Be = o(() => S(e.th(), ie.value.th, Le.value) ?? ""), de = o(() => S(e.td(), ie.value.td, Le.value) ?? "");
642
+ H([T, He], ([t, a]) => {
617
643
  }, {
618
644
  immediate: !0
619
- }), I([() => l.virtual, At], ([t, o]) => {
645
+ }), H([() => l.virtual, zt], ([t, a]) => {
620
646
  if (!t) return;
621
- const r = String(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}`;
647
+ const n = String(l.scroll?.y);
648
+ a.kind === "compat-px" ? ul("vtable-scroll-y-compat-px", `[VTable] virtual 模式下字符串 scroll.y(${n})按 ${a.value}px 解析,这是兼容行为;请改用数字或 'auto'。`) : a.kind === "invalid-string" || a.kind === "invalid-number" && l.scroll?.y && `${kl}`;
623
649
  }, {
624
650
  immediate: !0
625
651
  });
626
- const Te = b(null), He = b(null);
627
- I(() => Te.value?.wrapRef, (t) => {
628
- t && (E.value = t);
629
- }), I(() => He.value?.wrapRef, (t) => {
630
- t && (E.value = t);
652
+ const Ne = C(null), Fe = C(null);
653
+ H(() => Ne.value?.wrapRef, (t) => {
654
+ t && (B.value = t);
655
+ }), H(() => Fe.value?.wrapRef, (t) => {
656
+ t && (B.value = t);
631
657
  });
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);
633
- I(Le, (t) => {
658
+ const Kt = o(() => Ol(f.value)), Oe = o(() => l.virtualColumn ? T.value ? He.value ? "列上有 customCell / customRender,可能返回 colSpan / rowSpan;单元格合并会让某个 td 缺席,进而破坏列宽不变量(虚拟模式本就不支持合并)" : Kt.value.contiguous ? null : "固定列必须分列两端:左固定连成前缀、右固定连成后缀,中间夹着的固定列会被窗口跳过" : "它只作用于虚拟表体,需要同时开启 virtual 与 scroll.y" : null), ue = o(() => l.virtualColumn && Oe.value === null);
659
+ H(Oe, (t) => {
634
660
  }, {
635
661
  immediate: !0
636
662
  });
637
663
  const {
638
- metrics: Wt
639
- } = Tl({
640
- enabled: () => re.value && !C.enabled.value,
641
- headerEl: () => _.value,
664
+ metrics: Mt
665
+ } = Nl({
666
+ enabled: () => ue.value && !b.enabled.value,
667
+ headerEl: () => V.value,
642
668
  columns: () => f.value,
643
- columnWidths: K,
669
+ columnWidths: j,
644
670
  hasHeader: () => l.showHeader !== !1
645
- }), Be = a(() => C.metrics.value ?? Wt.value);
646
- I([re, Be], ([t, o]) => {
647
- !t || o || l.showHeader !== !1 || C.enabled.value;
671
+ }), _e = o(() => b.metrics.value ?? Mt.value);
672
+ H([ue, _e], ([t, a]) => {
673
+ !t || a || l.showHeader !== !1 || b.enabled.value;
648
674
  }, {
649
675
  immediate: !0
650
676
  });
651
- function kt(t) {
652
- return le.value ? fe.value.get(t)?.level ?? 0 : 0;
677
+ function jt(t) {
678
+ return ne.value ? ge.value.get(t)?.level ?? 0 : 0;
653
679
  }
654
- function zt(t, o) {
655
- return l.rowClassName ? typeof l.rowClassName == "function" ? l.rowClassName(t, o, kt(t)) : l.rowClassName : "";
680
+ function Vt(t, a) {
681
+ return l.rowClassName ? typeof l.rowClassName == "function" ? l.rowClassName(t, a, jt(t)) : l.rowClassName : "";
656
682
  }
657
- function Kt(t, o) {
658
- return l.customRow?.(t, o);
683
+ function Yt(t, a) {
684
+ return l.customRow?.(t, a);
659
685
  }
660
- function _t(t, o) {
661
- return l.customHeaderRow?.(t, o);
686
+ function $t(t, a) {
687
+ return l.customHeaderRow?.(t, a);
662
688
  }
663
- function Mt(t) {
689
+ function Ut(t) {
664
690
  if (typeof t.title != "function")
665
691
  return t.title ?? "";
666
- const o = t, r = Qe.value.filter((u) => !!u.column);
692
+ const a = t, n = ot.value.filter((d) => !!d.column);
667
693
  return t.title({
668
- sortOrder: o.sorter ? J(o) ?? void 0 : void 0,
669
- sortColumn: Ze.value.column,
670
- sortColumns: r.length > 0 ? r : void 0,
671
- filters: W()
694
+ sortOrder: a.sorter ? ee(a) ?? void 0 : void 0,
695
+ sortColumn: at.value.column,
696
+ sortColumns: n.length > 0 ? n : void 0,
697
+ filters: z()
672
698
  });
673
699
  }
674
- function jt(t) {
675
- return !!(t.sorter && J(t));
700
+ function Gt(t) {
701
+ return !!(t.sorter && ee(t));
676
702
  }
677
- const Ne = {
703
+ const Ae = {
678
704
  width: "100%",
679
705
  minWidth: "100%"
680
- }, Vt = {
706
+ }, Xt = {
681
707
  widthConstraintCell: e.widthConstraintCell,
682
708
  widthConstraintInner: e.widthConstraintInner,
683
709
  widthLayoutCell: e.widthLayoutCell,
@@ -689,6 +715,10 @@ const zo = /* @__PURE__ */ Jt({
689
715
  sortAreaOuter: e.sortAreaOuter,
690
716
  sortAreaWrapper: e.sortAreaWrapper,
691
717
  sortAreaTitle: e.sortAreaTitle,
718
+ headerHelp: e.headerHelp,
719
+ cellContent: e.cellContent,
720
+ copyButton: e.copyButton,
721
+ cellStatus: e.cellStatus,
692
722
  filterIconWrapper: e.filterIconWrapper,
693
723
  filterIcon: e.filterIcon,
694
724
  filterDropdown: e.filterDropdown,
@@ -760,240 +790,250 @@ const zo = /* @__PURE__ */ Jt({
760
790
  trDragging: e.trDragging,
761
791
  trDropAbove: e.trDropAbove,
762
792
  trDropBelow: e.trDropBelow
763
- }, Fe = a(() => _l(v.value)), Oe = b(!1);
764
- return We(kl, {
765
- columnLayout: C,
766
- bodyCell: d.bodyCell,
767
- headerCell: d.headerCell,
768
- empty: d.empty,
769
- getSortOrder: J,
770
- toggleSortOrder: qe,
771
- isColumnSorted: jt,
772
- getFilteredValue: et,
773
- confirmFilter: tt,
774
- resetFilter: lt,
775
- customFilterDropdown: d.customFilterDropdown,
776
- customFilterIcon: d.customFilterIcon,
777
- showSorterTooltip: a(() => l.showSorterTooltip ?? Fe.value.showSorterTooltip),
778
- headerEllipsis: a(() => l.headerEllipsis),
779
- subThemeSlots: Vt,
780
- presetConfig: Fe,
781
- themePreset: v,
782
- cssMode: g,
783
- classPrefix: S,
784
- vtgClass: (t) => Y(t, g.value, S.value),
785
- compatClass: H,
786
- localeName: L,
787
- locale: Xe,
793
+ }, Pe = o(() => Yl(x.value)), ke = C(!1);
794
+ return Me(Ml, {
795
+ columnLayout: b,
796
+ bodyCell: i.bodyCell,
797
+ headerCell: i.headerCell,
798
+ empty: i.empty,
799
+ getSortOrder: ee,
800
+ toggleSortOrder: tt,
801
+ isColumnSorted: Gt,
802
+ getFilteredValue: nt,
803
+ confirmFilter: rt,
804
+ resetFilter: it,
805
+ customFilterDropdown: i.customFilterDropdown,
806
+ customFilterIcon: i.customFilterIcon,
807
+ showSorterTooltip: o(() => l.showSorterTooltip ?? Pe.value.showSorterTooltip),
808
+ headerEllipsis: o(() => l.headerEllipsis),
809
+ subThemeSlots: Xt,
810
+ presetConfig: Pe,
811
+ themePreset: x,
812
+ cssMode: E,
813
+ classPrefix: I,
814
+ vtgClass: (t) => G(t, E.value, I.value),
815
+ compatClass: F,
816
+ localeName: O,
817
+ locale: et,
788
818
  rowSelection: () => l.rowSelection,
789
- isSelected: ct,
790
- isDisabledRow: ft,
791
- getSelectionState: mt,
792
- toggleRow: pt,
793
- toggleAll: vt,
794
- allCheckedState: () => gt.value,
795
- getRowKey: N,
796
- invertSelection: wt,
797
- clearSelection: yt,
798
- getChangeableRowKeys: ht,
799
- fixedOffsets: ye,
800
- scrollState: ge,
801
- leafColumnCount: a(() => f.value.length),
802
- bordered: a(() => l.bordered),
803
- tableLayout: j,
804
- sticky: a(() => l.sticky),
805
- getRowProps: Kt,
806
- getRowClassName: zt,
807
- getHeaderRowProps: _t,
808
- getColumnTitle: Mt,
819
+ isSelected: gt,
820
+ isDisabledRow: yt,
821
+ getSelectionState: ht,
822
+ toggleRow: wt,
823
+ toggleAll: Ct,
824
+ allCheckedState: () => xt.value,
825
+ getRowKey: A,
826
+ invertSelection: bt,
827
+ clearSelection: St,
828
+ getChangeableRowKeys: Dt,
829
+ fixedOffsets: be,
830
+ scrollState: Ce,
831
+ leafColumnCount: o(() => f.value.length),
832
+ bordered: o(() => l.bordered),
833
+ tableLayout: $,
834
+ sticky: o(() => l.sticky),
835
+ getRowProps: Yt,
836
+ getRowClassName: Vt,
837
+ getHeaderRowProps: $t,
838
+ getColumnTitle: Ut,
809
839
  getPopupContainer: l.getPopupContainer,
810
840
  transformCellText: l.transformCellText,
841
+ columnEmptyText: o(() => l.columnEmptyText),
811
842
  expandable: () => l.expandable,
812
- isExpanded: Ct,
813
- toggleExpand: xt,
814
- isRowExpandable: me,
815
- columnWidths: K,
816
- startResize: Rt,
817
- isResizing: () => Et.value,
818
- displayColumns: a(() => f.value),
843
+ isExpanded: Rt,
844
+ toggleExpand: It,
845
+ isRowExpandable: ye,
846
+ columnWidths: j,
847
+ startResize: Lt,
848
+ isResizing: () => Bt.value,
849
+ displayColumns: o(() => f.value),
819
850
  registerSummaryFixed: (t) => {
820
- Oe.value = t;
851
+ ke.value = t;
821
852
  },
822
- isTreeData: le,
823
- treeFlattenData: ce,
824
- getFlattenRow: (t) => fe.value.get(t),
825
- toggleTreeExpand: nt,
826
- isTreeExpanded: rt,
827
- treeIndentSize: it,
828
- hoverRange: dt,
829
- setHoverRange: st,
830
- clearHoverRange: ut,
853
+ isTreeData: ne,
854
+ treeIndentColumnIndex: o(() => {
855
+ const t = f.value.map((n, d) => ({
856
+ column: n,
857
+ index: d
858
+ })).filter(({
859
+ column: n
860
+ }) => n.key !== "__vtg_selection__" && n.key !== "__vtg_expand__"), a = l.expandable?.expandIconColumnIndex ?? 0;
861
+ return t[Math.max(0, Math.min(t.length - 1, Math.floor(Number.isFinite(a) ? a : 0)))]?.index ?? -1;
862
+ }),
863
+ treeFlattenData: ve,
864
+ getFlattenRow: (t) => ge.value.get(t),
865
+ toggleTreeExpand: st,
866
+ isTreeExpanded: ct,
867
+ treeIndentSize: ft,
868
+ hoverRange: mt,
869
+ setHoverRange: pt,
870
+ clearHoverRange: vt,
831
871
  // 拖拽期间抑制 hover 高亮,避免干扰拖放指示线
832
- hoverable: a(() => l.hoverable !== !1 && z.draggingKey.value === null),
872
+ hoverable: o(() => l.hoverable !== !1 && M.draggingKey.value === null),
833
873
  rowDrag: {
834
- enabled: a(() => l.rowDraggable === !0),
835
- draggingKey: z.draggingKey,
836
- dropTarget: z.dropTarget,
837
- getBindings: (t, o, r) => z.getBindings(t, o, r)
874
+ enabled: o(() => l.rowDraggable === !0),
875
+ draggingKey: M.draggingKey,
876
+ dropTarget: M.dropTarget,
877
+ getBindings: (t, a, n) => M.getBindings(t, a, n)
838
878
  }
839
879
  }), () => {
840
880
  let t;
841
- const o = l.title ? l.title(w.value) : d.title ? d.title({
842
- data: w.value
843
- }) : null, r = l.footer ? l.footer(w.value) : d.footer ? d.footer({
844
- data: w.value
845
- }) : null, u = d.summary ? d.summary() : null, h = Oe.value !== !1, y = l.scroll, p = {
846
- tableLayout: j.value
881
+ const a = l.title ? l.title(v.value) : i.title ? i.title({
882
+ data: v.value
883
+ }) : null, n = l.footer ? l.footer(v.value) : i.footer ? i.footer({
884
+ data: v.value
885
+ }) : null, d = i.summary ? i.summary() : null, h = ke.value !== !1, g = l.scroll, p = {
886
+ tableLayout: $.value
847
887
  };
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, {
888
+ g?.x ? (p.width = typeof g.x == "number" ? `${g.x}px` : g.x, p.minWidth = "100%") : p.width = "100%", Object.assign(p, b.tableStyle.value);
889
+ const y = l.loading, w = u.value, qt = typeof y == "object" && y !== null ? y.indicator : void 0, Jt = typeof y == "object" && y !== null ? y.tip : void 0, We = w && (i.loading ? r(Ue, {
850
890
  loadingClass: e.loading()
851
- }, Ve(t = d.loading()) ? t : {
891
+ }, Xe(t = i.loading()) ? t : {
852
892
  default: () => [t]
853
- }) : n(Me, {
893
+ }) : r(Ue, {
854
894
  loadingClass: e.loading(),
855
- indicator: Yt,
856
- tip: $t
895
+ indicator: qt,
896
+ tip: Jt
857
897
  }, null));
858
- if (Ce.value) {
859
- const Ut = l.showHeader !== !1 ? n("div", {
860
- ref: _,
861
- class: x(e.headerWrapper(), R.value && H?.("sticky-holder")),
862
- style: Lt.value
863
- }, [n("div", {
864
- class: Y("block w-full min-w-full", g.value, S.value)
865
- }, [n("table", {
898
+ if (De.value) {
899
+ const Zt = l.showHeader !== !1 ? r("div", {
900
+ ref: V,
901
+ class: S(e.headerWrapper(), L.value && F?.("sticky-holder")),
902
+ style: _t.value
903
+ }, [r("div", {
904
+ class: G("block w-full min-w-full", E.value, I.value)
905
+ }, [r("table", {
866
906
  "data-vtg-table": "",
867
- class: O.value,
907
+ class: k.value,
868
908
  style: p
869
- }, [n(U, {
909
+ }, [r(q, {
870
910
  columns: f.value
871
- }, null), n(G, null, null), n(Ke, {
872
- rows: oe.value,
911
+ }, null), r(J, null, null), r(Ye, {
912
+ rows: re.value,
873
913
  theadClass: e.thead(),
874
914
  rowClass: e.tr(),
875
- thClass: Ie.value,
915
+ thClass: Be.value,
876
916
  headerCellInnerClass: e.headerCellInner()
877
- }, null)])])]) : null, Gt = D.value ? n(Ml, {
878
- ref: ue,
879
- dataSource: w.value,
917
+ }, null)])])]) : null, Qt = T.value ? r($l, {
918
+ ref: pe,
919
+ dataSource: v.value,
880
920
  columns: f.value,
881
921
  tbodyClass: e.tbody(),
882
922
  rowClass: e.tr(),
883
- tdClass: ne.value,
923
+ tdClass: de.value,
884
924
  emptyClass: e.empty(),
885
925
  bodyCellEllipsisClass: e.bodyCellEllipsis(),
886
- tableClass: O.value,
926
+ tableClass: k.value,
887
927
  tableStyle: p,
888
928
  rowKey: l.rowKey,
889
- height: Ft.value,
890
- itemHeight: Nt.value,
891
- fixedHeight: Ot.value,
892
- virtualColumn: re.value,
893
- columnMetrics: Be.value,
929
+ height: kt.value,
930
+ itemHeight: Pt.value,
931
+ fixedHeight: Wt.value,
932
+ virtualColumn: ue.value,
933
+ columnMetrics: _e.value,
894
934
  showScrollBar: "hover",
895
- onVirtualScroll: (Pe) => {
896
- It(Pe.x, Pe.maxX);
935
+ onVirtualScroll: (ze) => {
936
+ Nt(ze.x, ze.maxX);
897
937
  }
898
- }, null) : null, Xt = D.value ? null : n(ke, {
899
- ref: Te,
900
- maxHeight: Bt.value,
938
+ }, null) : null, el = T.value ? null : r(je, {
939
+ ref: Ne,
940
+ maxHeight: At.value,
901
941
  wrapClass: e.bodyWrapper(),
902
- viewStyle: Ne,
903
- onScroll: we
942
+ viewStyle: Ae,
943
+ onScroll: xe
904
944
  }, {
905
- default: () => [n("table", {
945
+ default: () => [r("table", {
906
946
  "data-vtg-table": "",
907
- class: O.value,
947
+ class: k.value,
908
948
  style: p
909
- }, [n(U, {
949
+ }, [r(q, {
910
950
  columns: f.value
911
- }, null), n(G, null, null), n(_e, {
912
- dataSource: w.value,
951
+ }, null), r(J, null, null), r($e, {
952
+ dataSource: v.value,
913
953
  columns: f.value,
914
954
  tbodyClass: e.tbody(),
915
955
  rowClass: e.tr(),
916
- tdClass: ne.value,
956
+ tdClass: de.value,
917
957
  emptyClass: e.empty(),
918
958
  bodyCellEllipsisClass: e.bodyCellEllipsis(),
919
959
  rowKey: l.rowKey
920
- }, null), u && !h && n("tfoot", {
960
+ }, null), d && !h && r("tfoot", {
921
961
  class: e.summary()
922
- }, [u])])]
923
- }), qt = u && (h || D.value) ? n("div", {
924
- ref: V,
925
- class: x(e.headerWrapper(), H?.("summary"), R.value && h && H?.("sticky-holder")),
962
+ }, [d])])]
963
+ }), tl = d && (h || T.value) ? r("div", {
964
+ ref: U,
965
+ class: S(e.headerWrapper(), F?.("summary"), L.value && h && F?.("sticky-holder")),
926
966
  style: h ? {
927
967
  position: "sticky",
928
- bottom: `${R.value?.offsetSummary ?? 0}px`,
968
+ bottom: `${L.value?.offsetSummary ?? 0}px`,
929
969
  zIndex: "4",
930
970
  overflow: "hidden"
931
971
  } : void 0
932
- }, [n("div", {
933
- class: Y("block w-full min-w-full", g.value, S.value)
934
- }, [n("table", {
972
+ }, [r("div", {
973
+ class: G("block w-full min-w-full", E.value, I.value)
974
+ }, [r("table", {
935
975
  "data-vtg-table": "",
936
- class: O.value,
976
+ class: k.value,
937
977
  style: p
938
- }, [n(U, {
978
+ }, [r(q, {
939
979
  columns: f.value
940
- }, null), n(G, null, null), n("tfoot", {
980
+ }, null), r(J, null, null), r("tfoot", {
941
981
  class: e.summary()
942
- }, [u])])])]) : null;
943
- return n("div", {
944
- ref: F,
945
- class: x(e.root(), M.value && e.rootAutoHeight(), he.value)
946
- }, [k("top"), o && n("div", {
982
+ }, [d])])])]) : null;
983
+ return r("div", {
984
+ ref: P,
985
+ class: S(e.root(), Y.value && e.rootAutoHeight(), Se.value, R.value)
986
+ }, [K("top"), a && r("div", {
947
987
  class: e.title()
948
- }, [o]), n("div", {
949
- ref: Se,
950
- class: x(e.wrapper(), M.value && e.wrapperAutoHeight(), R.value && Y("overflow-clip", g.value, S.value))
951
- }, [Ut, Gt, Xt, qt, Ae]), r && n("div", {
988
+ }, [a]), r("div", {
989
+ ref: Ie,
990
+ class: S(e.wrapper(), Y.value && e.wrapperAutoHeight(), L.value && G("overflow-clip", E.value, I.value))
991
+ }, [Zt, Qt, el, tl, We]), n && r("div", {
952
992
  class: e.footer()
953
- }, [r]), k("bottom")]);
993
+ }, [n]), K("bottom")]);
954
994
  }
955
- const ie = n(tl, null, [n("table", {
995
+ const se = r(nl, null, [r("table", {
956
996
  "data-vtg-table": "",
957
- class: O.value,
997
+ class: k.value,
958
998
  style: p
959
- }, [n(U, {
999
+ }, [r(q, {
960
1000
  columns: f.value
961
- }, null), n(G, null, null), l.showHeader !== !1 && n(Ke, {
962
- rows: oe.value,
1001
+ }, null), r(J, null, null), l.showHeader !== !1 && r(Ye, {
1002
+ rows: re.value,
963
1003
  theadClass: e.thead(),
964
1004
  rowClass: e.tr(),
965
- thClass: Ie.value,
1005
+ thClass: Be.value,
966
1006
  headerCellInnerClass: e.headerCellInner()
967
- }, null), n(_e, {
968
- dataSource: w.value,
1007
+ }, null), r($e, {
1008
+ dataSource: v.value,
969
1009
  columns: f.value,
970
1010
  tbodyClass: e.tbody(),
971
1011
  rowClass: e.tr(),
972
- tdClass: ne.value,
1012
+ tdClass: de.value,
973
1013
  emptyClass: e.empty(),
974
1014
  bodyCellEllipsisClass: e.bodyCellEllipsis(),
975
1015
  rowKey: l.rowKey
976
- }, null), u && n("tfoot", {
1016
+ }, null), d && r("tfoot", {
977
1017
  class: e.summary()
978
- }, [u])]), Ae]);
979
- return n("div", {
980
- ref: F,
981
- class: x(e.root(), he.value)
982
- }, [k("top"), o && n("div", {
1018
+ }, [d])]), We]);
1019
+ return r("div", {
1020
+ ref: P,
1021
+ class: S(e.root(), Se.value, R.value)
1022
+ }, [K("top"), a && r("div", {
983
1023
  class: e.title()
984
- }, [o]), n(ke, {
985
- ref: He,
1024
+ }, [a]), r(je, {
1025
+ ref: Fe,
986
1026
  wrapClass: e.wrapper(),
987
- viewStyle: Ne,
988
- onScroll: we
989
- }, Ve(ie) ? ie : {
990
- default: () => [ie]
991
- }), r && n("div", {
1027
+ viewStyle: Ae,
1028
+ onScroll: xe
1029
+ }, Xe(se) ? se : {
1030
+ default: () => [se]
1031
+ }), n && r("div", {
992
1032
  class: e.footer()
993
- }, [r]), k("bottom")]);
1033
+ }, [n]), K("bottom")]);
994
1034
  };
995
1035
  }
996
1036
  });
997
1037
  export {
998
- zo as default
1038
+ ja as default
999
1039
  };