fix(grid): fix scroll to bottom header not visible (#3539)

This commit is contained in:
gimmyhehe 2025-06-26 15:35:20 +08:00 committed by GitHub
parent 0e74d5f38a
commit 53a476f1a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,7 @@ import GlobalConfig from '../../../config'
// 计算表格整体宽高
export function handleLayout(_vm) {
const { tableFullData, height, parentHeight, scrollXLoad, tableColumn } = _vm
const { tableFullData, height, parentHeight, scrollXLoad, scrollYLoad, tableColumn } = _vm
let { maxHeight, minHeight, totalWidth } = _vm
let customHeight, scaleToPx
@ -67,6 +67,10 @@ export function handleLayout(_vm) {
_vm.bodyWrapperMinHeight = minHeight
}
if (scrollYLoad && !_vm.bodyWrapperHeight) {
_vm.bodyWrapperHeight = maxHeight
}
_vm.bodyTableWidth = scrollXLoad
? tableColumn.reduce((previous, column) => previous + column.renderWidth, 0)
: totalWidth