Issue #148: Done.

This commit is contained in:
chiayin
2023-10-16 18:53:48 +08:00
parent 946fabfa93
commit 4c46347127
7 changed files with 14 additions and 8 deletions

View File

@@ -217,8 +217,8 @@ export default {
* @returns {string} 轉換完成的百分比字串
*/
getPercentLabel(val){
if(val * 100 >= 100) return `${val * 100}%`;
return `${(val * 100).toFixed(1)}%`;
if((val * 100).toFixed(1) >= 100) return `100%`;
else return `${(val * 100).toFixed(1)}%`;
},
/**
* Behavior when show