fix(grid): fix scroll to bottom header not visible (#3539)
This commit is contained in:
parent
0e74d5f38a
commit
53a476f1a1
|
@ -28,7 +28,7 @@ import GlobalConfig from '../../../config'
|
||||||
|
|
||||||
// 计算表格整体宽高
|
// 计算表格整体宽高
|
||||||
export function handleLayout(_vm) {
|
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 { maxHeight, minHeight, totalWidth } = _vm
|
||||||
let customHeight, scaleToPx
|
let customHeight, scaleToPx
|
||||||
|
|
||||||
|
@ -67,6 +67,10 @@ export function handleLayout(_vm) {
|
||||||
_vm.bodyWrapperMinHeight = minHeight
|
_vm.bodyWrapperMinHeight = minHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (scrollYLoad && !_vm.bodyWrapperHeight) {
|
||||||
|
_vm.bodyWrapperHeight = maxHeight
|
||||||
|
}
|
||||||
|
|
||||||
_vm.bodyTableWidth = scrollXLoad
|
_vm.bodyTableWidth = scrollXLoad
|
||||||
? tableColumn.reduce((previous, column) => previous + column.renderWidth, 0)
|
? tableColumn.reduce((previous, column) => previous + column.renderWidth, 0)
|
||||||
: totalWidth
|
: totalWidth
|
||||||
|
|
Loading…
Reference in New Issue