feat: 对实体详情页面增加loading效果

This commit is contained in:
@changcode
2022-04-27 14:52:25 +08:00
parent db7d804ef5
commit 4d0406325d
14 changed files with 193 additions and 63 deletions

View File

@@ -79,15 +79,22 @@
align-items: center;
padding: 0 30px;
span:first-of-type {
font-size: 30px;
color: #333333;
font-weight: bold;
}
span:last-of-type {
.overview-left-span {
font-size: 16px;
color: #666666;
}
.overview-left-loading {
display: inline-block;
position: relative;
.overview-left-loading-span {
font-size: 30px;
color: #333333;
font-weight: bold;
}
.chart__loading i.el-icon-loading {
top: calc(50% - 12px);
}
}
}
.overview-right {
display: flex;

View File

@@ -55,6 +55,13 @@
}
.row__value {
color: #666;
position: relative;
display: inline-block;
.chart__loading i.el-icon-loading {
font-size: 18px;
top: calc(50% - 10px);
left: calc(50% - 8px);
}
}
}
}

View File

@@ -92,8 +92,9 @@
justify-content: left;
}
.body__drawing-box {
height: 40px;
position: relative;
height: 60px;
margin-top: 10px;
.chart__loading {
top: 0;
height: 100%;
@@ -101,8 +102,8 @@
}
.body__drawing {
position: absolute;
padding: 10px 30px;
height: 60px;
padding: 0 30px;
height: 100%;
width: 100%;
}

View File

@@ -99,6 +99,14 @@
&.row__content--width200 {
width: 200px;
}
.row__content-loading {
position: relative;
.chart__loading i.el-icon-loading {
font-size: 14px;
top: calc(50% - 5px);
left: calc(50% - 4px);
}
}
}
.row__contents {
display: flex;

View File

@@ -93,6 +93,16 @@
display: flex;
align-items: center;
flex-direction: row;
.item-box-loading {
position: relative;
display: flex;
.chart__loading i.el-icon-loading {
font-size: 14px;
padding: 0;
top: calc(50% - 5px);
left: calc(50% - 4px);
}
}
i {
padding-right: 6px;
@@ -166,4 +176,4 @@
}
}
}
}
}