From c7895adfccfdbbc70346dce319affe8ce0957f83 Mon Sep 17 00:00:00 2001 From: ybzky Date: Tue, 10 Dec 2024 11:47:19 +0800 Subject: [PATCH] chore: move should clear clipboard shape --- .../controllers/clipboard/clipboard.controller.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts b/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts index ab69259afda..466a7fc2a5a 100644 --- a/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts +++ b/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts @@ -73,6 +73,9 @@ import { InsertColMutation, InsertRowMutation, MAX_CELL_PER_SHEET_KEY, + MoveColsMutation, + MoveRangeMutation, + MoveRowsMutation, RemoveColMutation, RemoveRowMutation, SetRangeValuesMutation, @@ -110,7 +113,15 @@ import { * service. You can create a similar clipboard controller to add logic for your own features. */ -const shouldRemoveShapeIds = [InsertColMutation.id, InsertRowMutation.id, RemoveColMutation.id, RemoveRowMutation.id]; +const shouldRemoveShapeIds = [ + InsertColMutation.id, + InsertRowMutation.id, + RemoveColMutation.id, + RemoveRowMutation.id, + MoveRangeMutation.id, + MoveRowsMutation.id, + MoveColsMutation.id, +]; export class SheetClipboardController extends RxDisposable { constructor(