feat: add a calculation and update selectors param (#53)

This commit is contained in:
Fine0830
2022-04-01 23:28:39 +08:00
committed by GitHub
parent fce818aebe
commit f57fdf9312
10 changed files with 91 additions and 33 deletions

View File

@@ -32,6 +32,7 @@ export enum Calculations {
Precision = "precision",
ConvertSeconds = "convertSeconds",
ConvertMilliseconds = "convertMilliseconds",
MsTos = "msTos",
}
export enum sizeEnum {
XS = "XS",

View File

@@ -351,6 +351,9 @@ export function aggregation(val: number, config: any): number | string {
case Calculations.Precision:
data = data.toFixed(2);
break;
case Calculations.MsTos:
data = val / 1000;
break;
default:
data;
break;