chore(format): fix oxfmt drift in data grid export files

This commit is contained in:
t8y2 committed 2026-09-09 13:55:41 +08:00
1 parent 775b45f235
commit b2784def56
2 files changed
+2 -21

No files matched your search

@@ -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();
@@ -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]] });
}