fix: alert-list样式调整、label悬停bug修复
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user