如果有大量数据,PrimeNG数据表性能会非常慢

时间:2018-11-11 09:19:44

标签: performance primeng primeng-datatable

我使用PrimeNG数据表。如果表包含许多行,则数据表的性能会非常慢。 这是我的html:

  <p-dataTable #dt  [rowTrackBy]="rowTrackBy" [emptyMessage]="'TABLE.EMPTY_MESSAGE'|translate" #dt [rows]="rows" [paginator]="paginator"
       lazy="false" [pageLinks]="3" scrollable="true"[editable]="editable" [styleClass]="paginator?'paginator': enableFilter?'scroll filter-table':'scroll'"
        [globalFilter]="gb"[value]="displayList" resizableColumns="true" [(selection)]="selectedItem"
        (onRowDblclick)="importButton?'':onRowDblclick($event.data)"[expandableRows]="showExpander" [expandedRows]="expandedRows"
        (onRowSelect)="onrowSelect($event)" (onRowClick)="selectRow($event);onrowSelect($event)" (onRowUnselect)="onRowUnSelect($event)"[rowStyleClass]="rowStyleClass"
        [selectionMode]="(enableSelect&&!showSelectColumn)?(multiSelect?'multiple':'single'):''" [metaKeySelection]="false"
        (onHeaderCheckboxToggle)="onHeaderCheckboxToggle($event)">

0 个答案:

没有答案