25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(grid): sync cell details on mouse selection
zipg971871132b87
diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vueindex 50c2af3d1c..a464c6deb3 100644--- a/apps/desktop/src/components/grid/DataGrid.vue+++ b/apps/desktop/src/components/grid/DataGrid.vue@@ -6190,7 +6190,7 @@ function onTransposeCellContext(rowIndex: number, actualColIdx: number, event: McontextCell.value = item ? { rowId: item.id, rowIndex, col: actualColIdx } : null;}-watch([selectedRange, showCellDetail, isEditingDetail], () => {+watch([selectedRange, showCellDetail, isEditingDetail, isSelectingCells], () => {if (isSelectingCells.value) return;const selectedCell = currentSelectedCellPosition();const target = linkedCellDetailTarget({diff --git a/apps/desktop/src/components/grid/__tests__/DataGridCellDetailSelection.spec.ts b/apps/desktop/src/components/grid/__tests__/DataGridCellDetailSelection.spec.tsnew file mode 100644index 0000000000..4ba105b1a6--- /dev/null+++ b/apps/desktop/src/components/grid/__tests__/DataGridCellDetailSelection.spec.ts@@ -0,0 +1,11 @@+import { readFileSync } from "node:fs";+import { describe, expect, it } from "vitest";++const dataGridSource = readFileSync(new URL("../DataGrid.vue", import.meta.url), "utf8");++describe("DataGrid cell detail selection", () => {+ it("resynchronizes the open detail after a mouse selection gesture finishes", () => {+ expect(dataGridSource).toContain("watch([selectedRange, showCellDetail, isEditingDetail, isSelectingCells]");+ expect(dataGridSource).toContain("if (isSelectingCells.value) return;");+ });+});