fix(custom): 订单列表统计小数点后两位不显示

This commit is contained in:
2023-10-20 21:04:59 +08:00
parent 23180eff04
commit 6ae8acb8df
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
<div flex>
<n-card w-500>
<n-statistic label="订单流水" tabular-nums>
<n-number-animation :from="0" :to="cardData.total" />
<n-number-animation :from="0" :to="cardData.total" :precision="2" />
</n-statistic>
</n-card>
<n-card ml-10 w-500>

View File

@@ -5,7 +5,7 @@
<div flex>
<n-card w-200 rounded-5>
<n-statistic label="交易额(元)" tabular-nums>
<n-number-animation :from="0" :to="cardData.total" />
<n-number-animation :from="0" :to="cardData.total" :precision="2" />
</n-statistic>
</n-card>
<n-card ml-10 w-200 rounded-5>