fix: alert-list样式调整、label悬停bug修复

This commit is contained in:
chenjinsong
2020-09-29 18:51:03 +08:00
parent ac835be958
commit f41d59a0a0
5 changed files with 101 additions and 42 deletions

View File

@@ -19,12 +19,11 @@ function short(value,index,type=1,dot){
}
function percent01(value,index){
value=parseFloat((value).toPrecision(12));
value=parseFloat(new Number(value).toPrecision(12));
return `${value} %`;
}
function percent02(value,index){
console.log(value);
value=parseFloat((value*100).toPrecision(12));
value=parseFloat((new Number(value)*100).toPrecision(12));
return `${value} %`;
}
function localFormat(value,index){
@@ -328,10 +327,10 @@ function asciiCompute(num,ascii,units,dot=2){
num = num / Math.pow(ascii,carry)
}
if(Number.isInteger(num)){
console.log(num +' '+units[carry],dot);
//console.log(num +' '+units[carry],dot);
return num +' '+units[carry];
}else{
console.log(num.toFixed(dot) +' '+units[carry],dot);
//console.log(num.toFixed(dot) +' '+units[carry],dot);
return num.toFixed(dot) +' '+units[carry];
}
}