-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Description
Describe the bug (required) / 详细描述 bug(必填)
一些物料(如antd Step)的特殊属性(steps),他们会自定义extraProps。

如图, 物料使用mergeChildren 去更新Steps物料steps属性。这个过程中会创建新的组件(Steps.Step),经过测试新增的组件能触发documentModel.onAddNode 但不能触发documentModel.onMountNode
To Reproduce (required) / 如何复现 bug?(必填,非常重要)
如图所示, 先加事件, 点击新增Steps.Step, 发现onMountNode没有触发
原因
onMountNode只由editor?.eventBus.emit('node.add', { node }); 触发. NodeChildren的mergeChildren没有抛这个事件
lowcode-engine/packages/designer/src/document/node/node-children.ts
Lines 314 to 316 in d64c7d5
| const editor = node.document?.designer.editor; | |
| editor?.eventBus.emit('node.add', { node }); | |
| if (useMutator) { |
Metadata
Metadata
Assignees
Labels
No labels
