fix(components): [table-v2] header style error (#15950)

This commit is contained in:
btea 2024-02-27 14:27:27 +08:00 committed by GitHub
parent 69701f327c
commit 705c999f5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,9 +29,7 @@ export const useStyles = (
return fixed ? Math.max(Math.round(unref(columnsTotalWidth)), ret) : ret
})
const headerWidth = computed(
() => unref(bodyWidth) + (props.fixed ? props.vScrollbarSize : 0)
)
const headerWidth = computed(() => unref(bodyWidth) + props.vScrollbarSize)
const mainTableHeight = computed(() => {
const { height = 0, maxHeight = 0, footerHeight, hScrollbarSize } = props