|
|
@ -22,7 +22,10 @@ export class FileCategoryComponent implements OnInit { |
|
|
|
tableScrollHeight |
|
|
|
tableScrollHeight |
|
|
|
resizeListener |
|
|
|
resizeListener |
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - 42) + 'px' |
|
|
|
setTimeout(() => { |
|
|
|
|
|
|
|
this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - 42) + 'px' |
|
|
|
|
|
|
|
}, 0); |
|
|
|
|
|
|
|
|
|
|
|
// 页面监听
|
|
|
|
// 页面监听
|
|
|
|
this.resizeListener = fromEvent(window, 'resize').pipe(debounceTime(100)).subscribe((event) => { |
|
|
|
this.resizeListener = fromEvent(window, 'resize').pipe(debounceTime(100)).subscribe((event) => { |
|
|
|
this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - 42) + 'px' |
|
|
|
this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - 42) + 'px' |
|
|
@ -152,7 +155,7 @@ export class FileCategoryComponent implements OnInit { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
const instance = modal.getContentComponent(); |
|
|
|
const instance = modal.getContentComponent(); |
|
|
|