细节完善
This commit is contained in:
@@ -43,11 +43,13 @@ const ringText = (ring) => {
|
||||
<view class="container">
|
||||
<view>
|
||||
<view v-for="(b, index) in bars" :key="index">
|
||||
<text v-if="b && b.rate > 0.1">{{ Number(b.rate.toFixed(1)) }}%</text>
|
||||
<text v-if="b && b.rate * 100 > 0.1">
|
||||
{{ Number((b.rate * 100).toFixed(1)) }}%
|
||||
</text>
|
||||
<view
|
||||
:style="{
|
||||
background: barColor(b.rate),
|
||||
height: b.rate * 120 + 'rpx',
|
||||
height: b.rate * 300 + 'rpx',
|
||||
}"
|
||||
>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user