-
Container Width: {{ containerWidth }}
-
Total Height: {{ virtualTotalHeight }}
-
Visible Rows: {{ visibleRows.map((entry) => entry.height).join(",") }}
-
- Cell Heights:
- {{
- cellHeights?.map((rowCellHeights) =>
- rowCellHeights
- .map((entry) => (entry ? `${entry.isCustomRenderer ? "*" : ""}${entry.height}` : "null"))
- .join(",")
- )
- }}
-
-
Total Rows: {{ pageData.length }}
-
Column widths: {{ columnWidths.map((w) => Math.round(w)).join(",") }}
-
- Column configs:
- {{ computedConfigs }}
-
+
@@ -94,6 +76,7 @@ import { resolveRowHeights } from "./usePretextRowHeights";
import { useVirtualRows } from "./useVirtualRows";
import { formatTimestampFromValue } from "../../../../plugs/composables";
import { match } from "ts-pattern";
+import { JsonView } from "noob-mengyxu";
const DEFAULT_FONT = "14px sans-serif";
const DEFAULT_TEXT_MAX_WIDTH = 400;
@@ -405,6 +388,21 @@ const handleCurrentChange = (val: number) => {
emit("query");
};
+// ============================================================================
+// Debug Info
+// ============================================================================
+const debugInfo = computed(() => ({
+ containerWidth,
+ virtualTotalHeight,
+ visibleRows: visibleRows.value.map((entry) => entry.height).join(","),
+ cellHeights: cellHeights.value?.map((rowCellHeights) =>
+ rowCellHeights.map((entry) => (entry ? `${entry.isCustomRenderer ? "*" : ""}${entry.height}` : "null")).join(",")
+ ),
+ totalRows: pageData.value.length,
+ columnWidths: columnWidths.value.map((w) => Math.round(w)).join(","),
+ columnConfigs: computedConfigs,
+}));
+
// =============================================================================
// ResizeObserver for container dimensions
// =============================================================================