From edee54568494bccb63d2c2a17ac9efa2ae4592ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=B4=E8=B5=9B=E9=9B=B7?= Date: Mon, 29 Apr 2024 20:25:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=98=E8=B4=B4=E5=BF=AB=E6=8D=B7=E9=94=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/core/hotkeys/actions/key-action-paste.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/core/hotkeys/actions/key-action-paste.ts b/plugins/core/hotkeys/actions/key-action-paste.ts index 9f1715b..55b036c 100644 --- a/plugins/core/hotkeys/actions/key-action-paste.ts +++ b/plugins/core/hotkeys/actions/key-action-paste.ts @@ -7,9 +7,8 @@ import {DDeiStage} from "ddei-framework"; import {DDeiConfig} from "ddei-framework"; import {DDeiAbstractShape} from "ddei-framework"; import {DDeiTable} from "ddei-framework"; -import { Matrix3, Vector3 } from 'three'; +import { Matrix3 } from 'three'; import {DDeiEnumOperateType} from "ddei-framework"; -import {DDeiEditorEnumBusCommandType} from "ddei-framework"; import {DDeiPolygon} from "ddei-framework"; import {DDeiLink} from "ddei-framework"; import {DDeiLineLink} from "ddei-framework"; @@ -86,7 +85,6 @@ class DDeiKeyActionPaste extends DDeiKeyAction { //剪切板中的数据 let blobData = null; let type = null; - if (DDeiConfig.ALLOW_CLIPBOARD || DDeiConfig.ALLOW_CLIPBOARD == undefined) { try { //读取剪切板数据 @@ -267,7 +265,7 @@ class DDeiKeyActionPaste extends DDeiKeyAction { } //如果没有粘贴到表格在最外层容器的鼠标位置,创建rectangle控件 - if (this.accessCreate && createControl) { + if (createControl) { stage.idIdx++ hasChange = true;