Commit 0188d9cd authored by 汪晓凯's avatar 汪晓凯

overview页面 机器人列表布局使用flex

parent 336067bd
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</el-input> </el-input>
</div> </div>
</div> </div>
<ul class="robots-box clearfix"> <ul class="robots-box">
<li v-for="(item,index) in robotList" :key="item.tag" <li v-for="(item,index) in robotList" :key="item.tag"
:class="[(item.base_status==='abnormal' ||item.coin_status==='abnormal' || item.profit_status === 'abnormal') ? 'abnormal' : item.status || 'normal']"> :class="[(item.base_status==='abnormal' ||item.coin_status==='abnormal' || item.profit_status === 'abnormal') ? 'abnormal' : item.status || 'normal']">
<div class="operations"> <div class="operations">
...@@ -128,6 +128,10 @@ ...@@ -128,6 +128,10 @@
</div> </div>
</div> </div>
</li> </li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul> </ul>
<p v-if="robotList === null" class="no-data">暂无数据</p> <p v-if="robotList === null" class="no-data">暂无数据</p>
</div> </div>
...@@ -615,16 +619,26 @@ ...@@ -615,16 +619,26 @@
} }
} }
.robots-box { .robots-box {
width: calc(100% + 20px); /*width: calc(100% + 20px);*/
display: flex;
align-items: flex-start;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
} }
ul.robots-box>li{ ul.robots-box>li{
float: left; /*float: left;*/
margin: 0 20px 20px 0; /*margin: 0 20px 20px 0;*/
margin-bottom: 20px;
width:306px; width:306px;
height:340px; height:340px;
background:rgba(255,255,255,1); background:rgba(255,255,255,1);
border-radius:4px; border-radius:4px;
padding: 13px 23px 0 20px; padding: 13px 23px 0 20px;
&:empty {
height: 0;
border: none;
}
&.normal { &.normal {
border:1px solid rgba(146,208,171,1); border:1px solid rgba(146,208,171,1);
.chart-box { .chart-box {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment