提交 1742c9a3 编写于 作者: Mosher's avatar Mosher

调整数据视图卡片样式

上级 9bec644f
...@@ -37,12 +37,13 @@ ...@@ -37,12 +37,13 @@
${ctrl.itemRender.code} ${ctrl.itemRender.code}
<#else> <#else>
<div class="data-view-item"> <div class="data-view-item">
<img v-if="item.srficonpath" :src="item.srficonpath" class="single-card-img" /> <img v-if="item.srficon" :src="item.srficon" class="single-card-img" />
<img v-else src="/assets/img/noimage.png" class="single-card-img" /> <img v-else src="/assets/img/noimage.png" class="single-card-img" />
<div class="single-card-default"> <div class="single-card-default">
<Tooltip :content="item.srfmajortext"> <Tooltip :content="item.srfmajortext">
{{item.srfmajortext}} {{item.srfmajortext}}
</Tooltip> </Tooltip>
<span v-if="item.srfdescription" class="description">{{ item.srfdescription }}</span>
</div> </div>
</div> </div>
<div class="data-view-item-action"> <div class="data-view-item-action">
...@@ -76,12 +77,13 @@ ...@@ -76,12 +77,13 @@
${ctrl.itemRender.code} ${ctrl.itemRender.code}
<#else> <#else>
<div class="data-view-item"> <div class="data-view-item">
<img v-if="item.srficonpath" :src="item.srficonpath" class="single-card-img" /> <img v-if="item.srficon" :src="item.srficon" class="single-card-img" />
<img v-else src="/assets/img/noimage.png" class="single-card-img" /> <img v-else src="/assets/img/noimage.png" class="single-card-img" />
<div class="single-card-default"> <div class="single-card-default">
<Tooltip :content="item.srfmajortext"> <Tooltip :content="item.srfmajortext">
{{item.srfmajortext}} {{item.srfmajortext}}
</Tooltip> </Tooltip>
<span class="description">{{ item.srfdescription }}</span>
</div> </div>
</div> </div>
<div class="data-view-item-action"> <div class="data-view-item-action">
......
...@@ -90,9 +90,9 @@ ...@@ -90,9 +90,9 @@
} }
} }
.el-card{ .el-card{
background-color: #f6f6f6; background-color: #fff;
color: #666666; color: #666666;
box-shadow: 0 2px 12px 0 #909399; box-shadow: 0 2px 12px 0 #b1b3b8;
} }
.single-card-data{ .single-card-data{
height: 100%; height: 100%;
...@@ -100,7 +100,11 @@ ...@@ -100,7 +100,11 @@
cursor: pointer; cursor: pointer;
border: 2px solid transparent; border: 2px solid transparent;
.data-view-item{ .data-view-item{
display: flex;
margin-bottom: 36px;
.single-card-default { .single-card-default {
display: flex;
flex-direction: column;
.ivu-tooltip{ .ivu-tooltip{
.ivu-tooltip-rel{ .ivu-tooltip-rel{
width: 150px; width: 150px;
...@@ -115,11 +119,15 @@ ...@@ -115,11 +119,15 @@
} }
} }
.single-card-img { .single-card-img {
width: 150px; width: 50px;
height: calc(100% - 32px); height: 50px;
border-radius: 50%;
margin-right: 20px;
} }
} }
.data-view-item-action{ .data-view-item-action{
display: flex;
justify-content: space-around;
button{ button{
margin: 0 3px; margin: 0 3px;
cursor: pointer; cursor: pointer;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册