🐛(component): 修复 table 的 scroll 宽度适应性的问题

This commit is contained in:
就眠儀式
2022-08-29 21:37:14 +08:00
parent 8ea3ae78b0
commit bb15a53b76
3 changed files with 663 additions and 641 deletions

View File

@@ -434,6 +434,8 @@ const getScrollWidth = () => {
const offsetWidth: number = tableBody.value?.offsetWidth || 0;
if (clientWidth < offsetWidth) {
scrollWidthCell.value = offsetWidth - clientWidth;
} else {
scrollWidthCell.value = 0;
}
};