fix(components): [table] the empty slot height error (#9226)

This commit is contained in:
qiang 2022-08-11 16:54:47 +08:00 committed by GitHub
parent 137f30576c
commit 664c61936c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,7 @@ function useStyle<T>(
const emptyBlockStyle = computed(() => {
if (props.data && props.data.length) return null
let height = '100%'
if (bodyScrollHeight.value) {
if (props.height && bodyScrollHeight.value) {
height = `${bodyScrollHeight.value}px`
}
const width = tableWidth.value