我使用的是Angular 8的表(不使用flex),前2列为粘性。
问题:
再现问题。
使用带有粘性列的Angular表示例。 https://stackblitz.com/angular/lynkxvonedv?file=src%2Fapp%2Ftable-sticky-columns-example.html
谢谢。
我发现了一种可能对您有帮助的解决方法。
constructor(private ngZone: NgZone) {}
ngAfterViewInit() {
this.ngZone.onMicrotaskEmpty.pipe(take(3)).subscribe(() => this.table.updateStickyColumnStyles());
}