🐛(component): 修复 table 的 scroll 宽度适应性的问题
This commit is contained in:
@@ -434,6 +434,8 @@ const getScrollWidth = () => {
|
||||
const offsetWidth: number = tableBody.value?.offsetWidth || 0;
|
||||
if (clientWidth < offsetWidth) {
|
||||
scrollWidthCell.value = offsetWidth - clientWidth;
|
||||
} else {
|
||||
scrollWidthCell.value = 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user