feat(context-menu): copy INSERT from selected columns

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-07-20 13:59:49 +08:00
1 parent 7078c3fe19
commit 5803df3f73
18 files changed
+551 -49

No files matched your search

+1 -1
View File
@@ -119,7 +119,7 @@ export async function copyToClipboard(text: string, env: ClipboardEnvironment =
await writeText(text);
return;
} catch {
// Fall through to Web Clipboard / legacy copy when the native plugin is unavailable.
// Preserve Web Clipboard and legacy copy compatibility when native writes fail.
}
}
@@ -12,7 +12,7 @@ export type DataGridColumnMenuItem = {
export type DataGridContextMenuItem = {
label: string;
action?: () => void;
disabled?: boolean;
disabled?: boolean | (() => boolean);
separator?: boolean;
icon?: Component;
iconClass?: string;
@@ -17,6 +17,11 @@ export interface SelectionData {
rows: GridCellValue[][];
}
export interface CellSelectionMatrix extends SelectionData {
rowIndexes: number[];
columnIndexes: number[];
}
export interface SelectionSummary {
cellCount: number;
rowCount: number;