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:
Zhongxiang Wang 2022-03-16 10:47:30 +08:00 committed by GitHub
parent 4c7638dd5a
commit 9843fb1d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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,
}
})

View File

@ -42,6 +42,8 @@
// when data is empty
@include e(empty-block) {
position: sticky;
left: 0;
min-height: 60px;
text-align: center;
width: 100%;