mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
fix(table): fix fixed table height error when no data(#1332)
fix #1325 Co-authored-by: winerlu <winerlu@tencent.com>
This commit is contained in:
parent
50525d5e5a
commit
80de9fc5e1
@ -159,11 +159,8 @@ class TableLayout {
|
|||||||
? this.bodyHeight.value - this.gutterWidth
|
? this.bodyHeight.value - this.gutterWidth
|
||||||
: this.bodyHeight.value
|
: this.bodyHeight.value
|
||||||
|
|
||||||
const noData = !(
|
|
||||||
this.store.states.data.value && this.store.states.data.value.length
|
|
||||||
)
|
|
||||||
this.viewportHeight.value = this.scrollX.value
|
this.viewportHeight.value = this.scrollX.value
|
||||||
? tableHeight - (noData ? 0 : this.gutterWidth)
|
? tableHeight - this.gutterWidth
|
||||||
: tableHeight
|
: tableHeight
|
||||||
|
|
||||||
this.updateScrollY()
|
this.updateScrollY()
|
||||||
|
Loading…
Reference in New Issue
Block a user