更新时间:2022-10-22 19:15:36
我有完全相同的要求,我使用 mat-paginator 和包含 mat-cards 的 mat-grid-list.我使用 mat-grid-list 使我的列表具有响应性,以便它可以调整编号.根据屏幕尺寸排成一行的元素.这是我所做的:
</mat-paginator><mat-grid-list [cols]="breakpoint" rowHeight="4:5" (window:resize)="onResize($event)" ><mat-grid-tile *ngFor="let product of pagedList"><div><mat-card class="example-card">垫卡内容在这里..</mat-card>