优化落地页编辑多余引入css样式

This commit is contained in:
Apple 2022-08-30 16:44:06 +08:00
parent d141c1a2dc
commit eb79a228f2
4 changed files with 51 additions and 1212 deletions

View File

@ -20,6 +20,23 @@ export default class componentLib extends React.Component {
return ( return (
<div className='componentLib'> <div className='componentLib'>
<h4>基础组件</h4> <h4>基础组件</h4>
<ul>
<li>
轮播图
</li>
<li>
背景图
</li>
<li>
搜索栏
</li>
<li>
底部栏
</li>
<li>
标题
</li>
</ul>
</div> </div>
) )
} }

View File

@ -1,11 +1,31 @@
.componentLib{ .componentLib{
width: 45%; width:180px;
height: 100%; height: 100%;
background: #fff; background: #fff;
position: absolute; position: absolute;
top: 0; top: 0;
right:-48%; right:-190px;
padding: 15px;
box-sizing: border-box;
h4{ h4{
padding: 15px 0;
}
ul{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
li{
margin: 0 0 15px 0;
border-radius: 2px;
width: 72px;
height: 72px;
font-size: 12px;
color: #666;
background: #f99;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
} }
} }

View File

@ -842,13 +842,13 @@ export default class edittemplate extends React.Component {
</div> </div>
{/* 组件库 */} {/* 组件库 */}
{ {
this.state.showType==2&&this.state.activeNavStatus==2? <CouponComLib/>:null this.state.showType==2? <CouponComLib/>:null
} }
{/* this.state.showType==2&&this.state.activeNavStatus==2? */}
</div> </div>
<div className='xj-wrapper floatFix' style={{ 'zIndex': '1' }}> <div className='xj-wrapper' style={{ 'zIndex': '1' }}>
<div className='xj-center' style={{ 'marginLeft': '288px' }}> <div className={this.state.showType==2?'xj-center-small':'xj-center'}>
{this.state.activeNavStatus == 1 ? ( {this.state.activeNavStatus == 1 ? (
<div> <div>
<img <img

File diff suppressed because it is too large Load Diff