From 4f8ea94ee8ed5dcf719457d243f40314e11b599b Mon Sep 17 00:00:00 2001 From: roymondchen Date: Fri, 12 Aug 2022 15:34:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(stage,editor):=20=E6=8B=96=E5=85=A5?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E5=AE=B9=E5=99=A8=E6=94=AF=E6=8C=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=88=90=E6=8C=89=E4=BD=8Falt=E6=89=8D=E5=BC=80?= =?UTF-8?q?=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/api/editor/editor.md | 16 ++++++++++ packages/editor/src/Editor.vue | 10 ++++-- .../editor/src/layouts/workspace/Stage.vue | 1 + packages/editor/src/type.ts | 3 +- packages/stage/src/StageCore.ts | 9 ++++-- packages/stage/src/StageDragResize.ts | 31 +++++++++++++++++-- packages/stage/src/types.ts | 10 ++++-- 7 files changed, 69 insertions(+), 11 deletions(-) diff --git a/docs/src/api/editor/editor.md b/docs/src/api/editor/editor.md index 6d85c156..8d041dbd 100644 --- a/docs/src/api/editor/editor.md +++ b/docs/src/api/editor/editor.md @@ -360,6 +360,22 @@ icon使用的是[element-plus icon](https://element-plus.org/zh-CN/component/ico 识别到容器后,会给其dom上添加的class +### containerHighlightType + +- **类型:** 'default' | 'alt' | ''; + +- **默认值:** 'default' + +- **详情:** + +启动方式 + +default: 停留在画布上启动识别 + +alt: 按住alt键启动识别 + +其他值:不启动 + ## slots diff --git a/packages/editor/src/Editor.vue b/packages/editor/src/Editor.vue index c7aefb6a..bb60e7a4 100644 --- a/packages/editor/src/Editor.vue +++ b/packages/editor/src/Editor.vue @@ -30,7 +30,7 @@