P-table 在一个对话框中,并且在额外单击后加载 p-table 中的数据。我使用延迟加载,因为我需要进行自定义排序和分页。您能否告知为什么数据没有立即加载并需要按键事件?
<p-table #dt1 [lazy]="true" [value]="ACC_LIST" styleClass="p-datatable-sm" [rows]="10" [showCurrentPageReport]="true"
[loading]="loading" [lazyLoadOnInit]="false" [customSort]="true" (onLazyLoad)="customSort($event)" >