mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 14:04:28 +00:00
update container default place holder
This commit is contained in:
parent
f9bfb0a7c7
commit
21b5b49117
@ -109,13 +109,18 @@ class Renderer extends Component<{ renderer: SimulatorRenderer }> {
|
|||||||
viewProps._leaf = leaf;
|
viewProps._leaf = leaf;
|
||||||
viewProps._componentName = leaf?.componentName;
|
viewProps._componentName = leaf?.componentName;
|
||||||
// 如果是容器 && 无children && 高宽为空 增加一个占位容器,方便拖动
|
// 如果是容器 && 无children && 高宽为空 增加一个占位容器,方便拖动
|
||||||
if (leaf?.isContainer() && children == null){
|
if (leaf?.isContainer() && children == null && (!viewProps.style || Object.keys(viewProps.style).length == 0)){
|
||||||
children = <div style={{
|
children = <div style={{
|
||||||
height:'100px',
|
height:'66px',
|
||||||
backgroundColor:'#f0f0f0',
|
backgroundColor:'#f0f0f0',
|
||||||
borderColor:'#666666',
|
borderColor:'#a7b1bd',
|
||||||
border: '1px dotted'
|
border: '1px dotted',
|
||||||
}}></div>
|
color:'#a7b1bd',
|
||||||
|
textAlign:'center',
|
||||||
|
lineHeight:'66px'
|
||||||
|
}}>
|
||||||
|
拖拽组件或模板到这里
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
if (viewProps._componentName === 'Menu') {
|
if (viewProps._componentName === 'Menu') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user