Skip to content

Commit

Permalink
Merge pull request baidu#9548 from allenve/master
Browse files Browse the repository at this point in the history
feat(editor): editor addElem 支持 doc-entiry
  • Loading branch information
allenve committed Jan 29, 2024
2 parents 4314e1d + 6858d05 commit a06a2e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/amis-editor-core/src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a06a2e4

Please sign in to comment.