table consel

This commit is contained in:
2023-01-16 09:54:50 +08:00
parent 7603563a7a
commit 08dd5a910d
6 changed files with 9 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ const formatMoney = function (s: string) {
var noNegative = true;
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";
if (parseFloat(s) < 0) {
s = Math.abs(s) + "";
s = Math.abs(parseFloat(s)) + "";
noNegative = false;
}

View File

@@ -434,6 +434,8 @@ const getScrollWidth = () => {
} else {
scrollWidthCell.value = 0;
}
console.log("滚动条宽度",scrollWidthCell.value)
tableBodyEmptyWidth.value = tableHeaderTable.value?.offsetWidth + "px";
};