调整样式

This commit is contained in:
maplemei
2019-11-11 11:54:51 +08:00
parent b8c1eff607
commit e02db53b89
15 changed files with 114 additions and 51 deletions

View File

@@ -269,7 +269,7 @@ class Framework extends Component{
<Label { ...labelProps } />
<div class={ bodyClass } ref={ ref => this.bodyView = ref}>
{ config.content ? (
<Custom content={ config.content } />
<Custom content={ config.content } height={ config.height } />
) : (
<General { ...bodyProps } />
) }

View File

@@ -20,8 +20,10 @@ class Custom extends Component{
render(config) {
this.prepare = true;
return (
<div onClick={ this.blockClick } class="xm-body-custom" dangerouslySetInnerHTML={{ __html: config.content }}>
<div onClick={ this.blockClick } class="xm-body-custom" >
<div class="scroll-body" style={ {maxHeight: config.height} }>
<div style="margin: 5px 0" dangerouslySetInnerHTML={{ __html: config.content }}></div>
</div>
</div>
)
}

View File

@@ -163,6 +163,7 @@ xm-select{
padding: 5px 0;
z-index: 999;
width: 100%;
min-width: fit-content;
border: @border;
// max-height: 300px;
// overflow-y: auto;