edit
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
@ -136,4 +136,6 @@
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.height_box{}
|
||||
17
src/app/routes/commom/less/common-table-bar.less
Normal file
17
src/app/routes/commom/less/common-table-bar.less
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user