mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修复table滚动高度
This commit is contained in:
parent
56517fd345
commit
d0a7e67138
|
@ -181,8 +181,8 @@ export function getTableScroll({
|
||||||
id,
|
id,
|
||||||
}: { extraHeight?: number; id?: string } = {}) {
|
}: { extraHeight?: number; id?: string } = {}) {
|
||||||
if (typeof extraHeight == 'undefined') {
|
if (typeof extraHeight == 'undefined') {
|
||||||
// 默认底部分页64 + 边距10
|
// 47 + 40 + 10 + 24
|
||||||
extraHeight = 167;
|
extraHeight = 127;
|
||||||
}
|
}
|
||||||
let tHeader = null;
|
let tHeader = null;
|
||||||
if (id) {
|
if (id) {
|
||||||
|
@ -192,7 +192,7 @@ export function getTableScroll({
|
||||||
.getElementsByClassName('ant-table-thead')[0]
|
.getElementsByClassName('ant-table-thead')[0]
|
||||||
: null;
|
: null;
|
||||||
} else {
|
} else {
|
||||||
tHeader = document.querySelector('.ant-pro-grid-content');
|
tHeader = document.querySelector('.ant-table-wrapper');
|
||||||
}
|
}
|
||||||
|
|
||||||
//表格内容距离顶部的距离
|
//表格内容距离顶部的距离
|
||||||
|
|
Loading…
Reference in New Issue
Block a user