Commit 43b57b37 by 匡雅琴

上传

1 parent 15cb1c1a
...@@ -3,7 +3,10 @@ ...@@ -3,7 +3,10 @@
<div class="statistics-item" v-for="(item, index) in list" :key="index" :style="{ width: 100 / list.length + '%' }"> <div class="statistics-item" v-for="(item, index) in list" :key="index" :style="{ width: 100 / list.length + '%' }">
<div class="statistics-top"> <div class="statistics-top">
<div class="statistics-name">{{ item.name }}</div> <div class="statistics-name">{{ item.name }}</div>
<div class="statistics-text">{{ numAddSymbol(item.value) }}{{ item.unit }}</div> <div class="statistics-text">
{{ numAddSymbol(item.value) }}
<span class="statistics-unit">{{ item.unit }}</span>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -58,6 +61,10 @@ export default { ...@@ -58,6 +61,10 @@ export default {
-webkit-background-clip: text; /* Safari/Chrome支持该属性 */ -webkit-background-clip: text; /* Safari/Chrome支持该属性 */
color: transparent; /* 将文本颜色设置为透明 */ color: transparent; /* 将文本颜色设置为透明 */
margin-top: 1.1vh; margin-top: 1.1vh;
.statistics-unit {
font-size: 12px;
margin-left: 0.52vw;
}
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!