This commit is contained in:
Taric Xin
2022-04-28 21:31:05 +08:00
parent 5eb22cb934
commit 295fd58ee6
9 changed files with 149 additions and 185 deletions

View File

@ -73,22 +73,29 @@ export class BasicTableComponent implements AfterViewInit, OnDestroy {
for (let index = 0; index < tabset.length; index++) {
tabsetHeight += tabset[index].clientHeight;
}
console.log('tabsetHeight', tabsetHeight);
if (tabset) {
scrollY -= tabsetHeight;
}
// 剔除高度容器
// 计算所有tabs高度
const headerBox = document.getElementsByClassName('header_box');
let headerBoxHeight = 0;
for (let index = 0; index < headerBox.length; index++) {
headerBoxHeight += headerBox[index].clientHeight;
}
console.log('headerBoxHeight', headerBoxHeight);
if (headerBox) {
scrollY -= headerBoxHeight;
}
// 剔除高度容器
const heightBox = document.getElementsByClassName('height_box');
let heightBoxHeight = 0;
for (let index = 0; index < heightBox.length; index++) {
heightBoxHeight += heightBox[index].clientHeight;
}
if (heightBox) {
scrollY -= heightBoxHeight;
}
if (typeof this.deviationHeight === 'number') {
scrollY -= this.deviationHeight;
}

View File

@ -136,4 +136,6 @@
margin-right: 6px;
}
}
}
}
.height_box{}

View File

@ -0,0 +1,17 @@
:host::ng-deep {
nz-card {
margin: -8px -8px 0 !important
}
.height_box {
margin-bottom: 18px !important;
}
}
.total-footer {
position : absolute;
bottom : 0px;
height : 32px;
margin : 4px 8px;
line-height: 32px;
}