mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-04-20 04:18:05 +00:00
feat: 🎸 容器占位原生的样式从内联改成写在 CSS 文件里,方便被覆盖样式
This commit is contained in:
parent
5077141857
commit
a616e18a1d
@ -117,18 +117,7 @@ class Renderer extends Component<{ renderer: SimulatorRenderer }> {
|
|||||||
(!viewProps.style || Object.keys(viewProps.style).length === 0)
|
(!viewProps.style || Object.keys(viewProps.style).length === 0)
|
||||||
) {
|
) {
|
||||||
children = (
|
children = (
|
||||||
<div
|
<div className="lc-container-placeholder">
|
||||||
className="lc-container-placeholder"
|
|
||||||
style={{
|
|
||||||
height:'44px',
|
|
||||||
lineHeight:'44px',
|
|
||||||
backgroundColor: '#f0f0f0',
|
|
||||||
borderColor: '#a7b1bd',
|
|
||||||
border: '1px dotted',
|
|
||||||
color: '#a7b1bd',
|
|
||||||
textAlign: 'center'
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{viewProps.placeholder || '拖拽组件或模板到这里'}
|
{viewProps.placeholder || '拖拽组件或模板到这里'}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -53,6 +53,16 @@ html.engine-cursor-ew-resize, html.engine-cursor-ew-resize * {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lc-container-placeholder {
|
||||||
|
height: 44px;
|
||||||
|
line-height: 44px;
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
border-color: #a7b1bd;
|
||||||
|
border: 1px dotted;
|
||||||
|
color: #a7b1bd;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.engine-empty {
|
.engine-empty {
|
||||||
background: #f2f3f5;
|
background: #f2f3f5;
|
||||||
color: #a7b1bd;
|
color: #a7b1bd;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user