feat: 🚀 sass导入更新
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* @description 精度处理
|
||||
* @param data 数据源
|
||||
* @param type Decimal方法
|
||||
* @param typeData mul | div| add | sub 方法参数 的数据
|
||||
* @return returnData {number}
|
||||
* */
|
||||
import { Decimal } from "decimal.js";
|
||||
export const useDecimal = (data: number, type?: "mul" | "div" | "add" | "sub", typeData?: number) => {
|
||||
let returnData = type && typeData ? new Decimal(data)[type](typeData).toNumber() : new Decimal(data).toNumber();
|
||||
return returnData;
|
||||
};
|
||||
Reference in New Issue
Block a user