Merge pull request #7222 from yinchunyu/bugfix/subEditor

fix: 编辑态下子编辑器不能展示正确数据
This commit is contained in:
hsm-lv 2023-06-20 09:58:23 +08:00 committed by GitHub
commit 1f400f1207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1600,13 +1600,16 @@ export const MainStore = types
self.subEditorContext = {
...context,
hostNode: self.getNodeById(activeId),
data: extendObject(context.data, {
__curCmptTreeWrap: {
label: context.title,
disabled: true
},
__superCmptTreeSource: self.getComponentTreeSource()
})
data: createObject(
self.ctx,
extendObject(context.data, {
__curCmptTreeWrap: {
label: context.title,
disabled: true
},
__superCmptTreeSource: self.getComponentTreeSource()
})
)
};
},