From 6858d051434f4d0bea520d8be71f8b9f775fb8e1 Mon Sep 17 00:00:00 2001 From: allenve Date: Mon, 29 Jan 2024 16:37:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(editor):=20editor=20addElem=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20doc-entiry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor-core/src/manager.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/amis-editor-core/src/manager.ts b/packages/amis-editor-core/src/manager.ts index 8224af50a..20c568cef 100644 --- a/packages/amis-editor-core/src/manager.ts +++ b/packages/amis-editor-core/src/manager.ts @@ -956,6 +956,10 @@ export class EditorManager { // 当前节点是布局类容器节点 regionNodeId = curActiveId; regionNodeRegion = 'items'; + } else if (node.schema.fields && node.schema.type === 'doc-entity') { + // 当前节点是表单视图 + regionNodeId = curActiveId; + regionNodeRegion = 'fields'; } else if (node.schema.body) { // 当前节点是容器节点 regionNodeId = curActiveId;