mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 04:03:07 +00:00
fix: leaf should be type of ShellNode other than InnerNode
This commit is contained in:
parent
2dbd66cb28
commit
5bb8cf5d12
@ -40,8 +40,7 @@ export default class LeftFloatPane extends Component<{ area: Area<any, Panel> }>
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// 点击了 iframe 内容,算失焦
|
// 点击了 iframe 内容,算失焦
|
||||||
if (document.querySelector('.lc-simulator-content-frame')
|
if ((document.querySelector('.lc-simulator-content-frame') as HTMLIFrameElement)?.contentWindow?.document.documentElement.contains(target)) {
|
||||||
.contentWindow.document.documentElement.contains(target)) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// 点击设置区
|
// 点击设置区
|
||||||
|
|||||||
@ -195,7 +195,7 @@ class Renderer extends Component<{
|
|||||||
viewProps.componentId = __id;
|
viewProps.componentId = __id;
|
||||||
const leaf = documentInstance.getNode(__id) as Node;
|
const leaf = documentInstance.getNode(__id) as Node;
|
||||||
if (isFromVC(leaf?.componentMeta)) {
|
if (isFromVC(leaf?.componentMeta)) {
|
||||||
viewProps._leaf = leaf;
|
viewProps._leaf = leaf.internalToShellNode();
|
||||||
}
|
}
|
||||||
viewProps._componentName = leaf?.componentName;
|
viewProps._componentName = leaf?.componentName;
|
||||||
// 如果是容器 && 无children && 高宽为空 增加一个占位容器,方便拖动
|
// 如果是容器 && 无children && 高宽为空 增加一个占位容器,方便拖动
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user