修改样式

This commit is contained in:
admin
2021-07-05 09:28:04 +08:00
parent 5aef3a3de9
commit 0c4f303ccf
2 changed files with 26 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
<template>
<div class="cn-chart cn-chart__single-value" :class="singleValueClass(type)">
<div class="single-value-icon__box">
<div class="single-value__icon"><i class="el-icon-apple"></i></div>
</div>
<div class="single-value__content" v-if="type === 51">
<div class="content__data">11112</div>
<div class="content__title">{{$t('common.save')}}</div>

View File

@@ -58,8 +58,15 @@
justify-content: center;
align-items: center;
.single-value-icon__box{
height: 70px;
flex: 4;
display: flex;
justify-content: space-around;
align-items: center;
}
.single-value__icon {
position: relative;
margin-right: 7.5%;
width: 72px;
height: 72px;
@@ -67,16 +74,17 @@
border-radius: 50%;
i {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
display: flex;
justify-content: space-around;
align-items: center;
margin-top: 25px;
font-size: 28px;
color: $--color-primary;
}
}
.single-value__content {
flex: 6;
display: flex;
flex-direction: column;
@@ -87,9 +95,19 @@
font-weight: bold;
}
.content__title {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
width: 40px;
font-size: 16px;
color: #666666;
}
.content__title:hover{
overflow: visible;
white-space: inherit;
min-width:100%;
}
}
}
.cn-chart__single-value.cn-chart__single-value--icon-right {