From b2784def5635523271423e26286dabfcca4e935b Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Wed, 9 Sep 2026 13:55:41 +0800 Subject: [PATCH] chore(format): fix oxfmt drift in data grid export files --- .../__tests__/useDataGridExport.spec.ts | 18 +----------------- .../src/composables/useDataGridExport.ts | 5 +---- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/apps/desktop/src/composables/__tests__/useDataGridExport.spec.ts b/apps/desktop/src/composables/__tests__/useDataGridExport.spec.ts index 8fd9d873a6..8340df9d84 100644 --- a/apps/desktop/src/composables/__tests__/useDataGridExport.spec.ts +++ b/apps/desktop/src/composables/__tests__/useDataGridExport.spec.ts @@ -749,23 +749,7 @@ describe("useDataGridExport prepared row statements", () => { columns: [{ name: "created_at", data_type: "timestamp", is_nullable: true }], primaryKeys: [], }; - const state = createExportState( - table, - ["created_at"], - undefined, - ["2020-12-02T15:18:29"], - undefined, - undefined, - [], - DEFAULT_DATA_GRID_EXTRACTOR_OPTIONS, - false, - undefined, - false, - 1, - 0, - "oracle", - () => "2020-12-02 15:18:29", - ); + const state = createExportState(table, ["created_at"], undefined, ["2020-12-02T15:18:29"], undefined, undefined, [], DEFAULT_DATA_GRID_EXTRACTOR_OPTIONS, false, undefined, false, 1, 0, "oracle", () => "2020-12-02 15:18:29"); await state.copyCell(); diff --git a/apps/desktop/src/composables/useDataGridExport.ts b/apps/desktop/src/composables/useDataGridExport.ts index e2c4c81064..bdd2d73f50 100644 --- a/apps/desktop/src/composables/useDataGridExport.ts +++ b/apps/desktop/src/composables/useDataGridExport.ts @@ -556,10 +556,7 @@ export function useDataGridExport(options: UseDataGridExportOptions) { const val = resolvedItem?.data[contextCell.value.col] ?? null; // 外部剪贴板呈现文本型 MySQL VARBINARY(NULL 也按空串输出);内部网格副本仍保留原 hex,保证回粘无损。 const rawValue = clipboardCellValue(binaryClipboardCellValue(val, contextCell.value.col)); - const copyValue = - options.databaseType.value === "oracle" && isTemporalColumnType(options.columnTypes.value?.[contextCell.value.col]) - ? options.displayValue?.(val, sourceIndex) ?? rawValue - : rawValue; + const copyValue = options.databaseType.value === "oracle" && isTemporalColumnType(options.columnTypes.value?.[contextCell.value.col]) ? (options.displayValue?.(val, sourceIndex) ?? rawValue) : rawValue; await copyText(copyValue, { rows: [[val]] }); }