Issue #148: Done.
This commit is contained in:
1 parent
e14ec4bef2
commit
a8f47f7593
1 file changed
+1
-1
@@ -225,7 +225,7 @@ export default {
|
||||
* @returns {string} 轉換完成的百分比字串
|
||||
*/
|
||||
getPercentLabel(val){
|
||||
if(val * 100 === 100) return `${val * 100}%`;
|
||||
if(val * 100 >= 100) return `${val * 100}%`;
|
||||
return `${(val * 100).toFixed(1)}%`;
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user