This commit is contained in:
yanran200730
2023-04-28 13:47:35 +08:00
parent f346e8289f
commit de3e4ef259
2 changed files with 98 additions and 21 deletions

View File

@@ -9,7 +9,7 @@
<div class="DoughnutChart-explain">
<div class="item" v-for="(item, index) in value" :key="index">
<i></i>
<span>{{ item.key }}</span>
<span :style="labelStyle">{{ item.key }}</span>
<p>{{ item.value }}</p>
</div>
</div>
@@ -18,7 +18,7 @@
<script>
export default {
props: ['ratio', 'value'],
props: ['ratio', 'value', 'labelStyle'],
data () {
return {
@@ -146,10 +146,7 @@
}
span {
margin-right: 20px;
// width: 88px;
// min-width: 50px;
// max-width: 70px;
width: 78px;
font-weight: 400;
font-size: 14px;
color: #9BB7D4;