From 90bdacfd122c6f56713f459ea3f5b6515435b1c1 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Mon, 6 Jul 2026 17:08:26 +0800 Subject: [PATCH] fix(grid): support multiline bulk edit values --- apps/desktop/src/components/grid/DataGrid.vue | 19 +++++++++++--- .../lib/__tests__/dataGrid/cellValue.spec.ts | 10 +++++++ .../lib/dataGrid/canvasDataGridRenderer.ts | 5 ++-- apps/desktop/src/lib/dataGrid/cellValue.ts | 5 ++++ crates/dbx-core/src/data_grid_sql.rs | 26 +++++++++++++++++++ 5 files changed, 59 insertions(+), 6 deletions(-) create mode 100644 apps/desktop/src/lib/__tests__/dataGrid/cellValue.spec.ts diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vue index 26604f593..1abaf5f5c 100644 --- a/apps/desktop/src/components/grid/DataGrid.vue +++ b/apps/desktop/src/components/grid/DataGrid.vue @@ -109,7 +109,7 @@ import { visibleTransposeRecordWindow, } from "@/lib/dataGrid/dataGridTranspose"; import { canApplyGridSelectionValue, canDeleteGridRowItem, canEditGridCellDetail, matchesRowStatusFilter, shouldShowQuickEntryDraftRow, type RowStatus, type RowStatusFilter } from "@/lib/dataGrid/gridRowStatus"; -import { displayCellValue, type CellValue } from "@/lib/dataGrid/cellValue"; +import { displayCellValue, firstLineCellDisplayValue, type CellValue } from "@/lib/dataGrid/cellValue"; import { getApplicablePreviewActions } from "@/lib/dataGrid/resultPreviewRegistry"; import "@/lib/dataGrid/geometryMapPreview"; import { BINARY_CELL_DOWNLOAD_MODES, binaryCellDisplayText, binaryCellDownloadFileName, binaryCellDownloadPayload, canDownloadBinaryCellValue, downloadBinaryCellPayload, isBinaryCellColumnType, parseBinaryCellBytes, type BinaryCellDownloadMode } from "@/lib/dataGrid/binaryCellDownload"; @@ -8838,7 +8838,7 @@ const gridContextMenuItems = computed(() => { - +
(() => { - +
(() => {

{{ t("grid.bulkEditDescription", { count: selectedCellCount }) }}

- +