fix head滚动条宽度
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -434,6 +434,7 @@ const getScrollWidth = () => {
|
||||
} else {
|
||||
scrollWidthCell.value = 0;
|
||||
}
|
||||
|
||||
tableBodyEmptyWidth.value = tableHeaderTable.value?.offsetWidth + "px";
|
||||
};
|
||||
|
||||
@@ -453,6 +454,8 @@ watch(
|
||||
nextTick(() => {
|
||||
getScrollWidth();
|
||||
});
|
||||
},{
|
||||
deep:true
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user