mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
feat(editor): editor addElem 支持 doc-entiry
This commit is contained in:
parent
745eb44b9e
commit
6858d05143
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user