feat(editor): editor addElem 支持 doc-entiry

This commit is contained in:
allenve 2024-01-29 16:37:55 +08:00
parent 745eb44b9e
commit 6858d05143

View File

@ -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;