Ver Fonte

feat: :sparkles: 圆形进度图保留两位小数

chaooo há 1 ano atrás
pai
commit
4d7c80b5dc
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/components/Charts/CircleChart.vue

+ 1 - 1
src/components/Charts/CircleChart.vue

@@ -63,7 +63,7 @@ const options = {
   animation: true,
   title: {
     show: true,
-    text: props.data + "%",
+    text: (props.data*1).toFixed(2) + "%",
     x: "center",
     y: "center",
     textStyle: {