mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
fix(components): [table] not scroll empty block when scrolling table (#6615)
* fix(components): [table] not scroll empty block when scrolling table * fix(components): [table] fix unexpected gap * fix(components): [table] fix unexpected gap
This commit is contained in:
parent
4c7638dd5a
commit
9843fb1d69
@ -43,8 +43,8 @@ function useStyle<T>(
|
||||
})
|
||||
const isGroup = ref(false)
|
||||
const scrollbarViewStyle = {
|
||||
display: 'inline-flex',
|
||||
flexDirection: 'column',
|
||||
display: 'inline-block',
|
||||
verticalAlign: 'middle',
|
||||
}
|
||||
|
||||
watchEffect(() => {
|
||||
@ -298,7 +298,7 @@ function useStyle<T>(
|
||||
height = `calc(100% - ${layout.appendHeight.value}px)`
|
||||
}
|
||||
return {
|
||||
width: bodyWidth.value,
|
||||
width: `${resizeState.value.width}px`,
|
||||
height,
|
||||
}
|
||||
})
|
||||
|
@ -42,6 +42,8 @@
|
||||
|
||||
// when data is empty
|
||||
@include e(empty-block) {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
min-height: 60px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
|
Loading…
Reference in New Issue
Block a user