feat: 🚀 sass导入更新

This commit is contained in:
2025-09-16 17:04:55 +08:00
parent d3a3ef2911
commit 1068e87671
26 changed files with 285 additions and 214 deletions

View File

@@ -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;
};