chore(format): fix oxfmt drift in data grid export files
This commit is contained in:
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 }],
|
columns: [{ name: "created_at", data_type: "timestamp", is_nullable: true }],
|
||||||
primaryKeys: [],
|
primaryKeys: [],
|
||||||
};
|
};
|
||||||
const state = createExportState(
|
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");
|
||||||
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();
|
await state.copyCell();
|
||||||
|
|
||||||
|
|||||||
@@ -556,10 +556,7 @@ export function useDataGridExport(options: UseDataGridExportOptions) {
|
|||||||
const val = resolvedItem?.data[contextCell.value.col] ?? null;
|
const val = resolvedItem?.data[contextCell.value.col] ?? null;
|
||||||
// 外部剪贴板呈现文本型 MySQL VARBINARY(NULL 也按空串输出);内部网格副本仍保留原 hex,保证回粘无损。
|
// 外部剪贴板呈现文本型 MySQL VARBINARY(NULL 也按空串输出);内部网格副本仍保留原 hex,保证回粘无损。
|
||||||
const rawValue = clipboardCellValue(binaryClipboardCellValue(val, contextCell.value.col));
|
const rawValue = clipboardCellValue(binaryClipboardCellValue(val, contextCell.value.col));
|
||||||
const copyValue =
|
const copyValue = options.databaseType.value === "oracle" && isTemporalColumnType(options.columnTypes.value?.[contextCell.value.col]) ? (options.displayValue?.(val, sourceIndex) ?? rawValue) : rawValue;
|
||||||
options.databaseType.value === "oracle" && isTemporalColumnType(options.columnTypes.value?.[contextCell.value.col])
|
|
||||||
? options.displayValue?.(val, sourceIndex) ?? rawValue
|
|
||||||
: rawValue;
|
|
||||||
await copyText(copyValue, { rows: [[val]] });
|
await copyText(copyValue, { rows: [[val]] });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user