mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-30 11:16:12 +08:00
fix(components): [el-table] improve scrollable condition (#5149)
This commit is contained in:
parent
c24bebbe5d
commit
ab783fa8d6
@ -90,8 +90,7 @@ class TableLayout<T> {
|
||||
if (this.bodyHeight.value === null) {
|
||||
scrollY = false
|
||||
} else {
|
||||
const body = bodyWrapper.querySelector('.el-table__body') as HTMLElement
|
||||
scrollY = body.offsetHeight > this.bodyHeight.value
|
||||
scrollY = bodyWrapper.scrollHeight > this.bodyHeight.value
|
||||
}
|
||||
this.scrollY.value = scrollY
|
||||
return prevScrollY !== scrollY
|
||||
|
Loading…
Reference in New Issue
Block a user