import { CurrencyPipe, DatePipe } from '@angular/common'; import { EventEmitter, TemplateRef, TrackByFunction } from '@angular/core'; import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling'; import { NzTableComponent, NzTableData } from 'ng-zorro-antd/table'; import { ProTableColumn, ProTableData, ProTablePageChange, ProTableOperation, NestedExpandData } from './table.type'; export declare class ProTableComponent { private datePipe; private currencyPipe; get cdkVirtualScrollViewport(): CdkVirtualScrollViewport | undefined; constructor(datePipe: DatePipe, currencyPipe: CurrencyPipe); get selectedIds(): any[]; set selectedIds(value: any[]); get selectedId(): any; set selectedId(value: any); data: ProTableData[]; pageIndex: number; pageSize: number; total: number; size: 'middle' | 'small' | 'default'; frontPagination: boolean; showPagination: boolean; showSizeChanger: boolean; pageSizeOptions: number[]; showQuickJumper: boolean; paginationType: 'default' | 'small'; bordered: boolean; loading: boolean; selectType: '' | 'checkbox' | 'radio'; selectKey: string; selectColumnWidth: string; selectDisabled: any[]; columns: ProTableColumn[]; showColumnSelector: boolean; showRefresh: boolean; scroll: { x?: string | null; y?: string | null; }; virtualScroll: boolean; virtualItemSize: number; virtualMaxBufferPx: number; virtualMinBufferPx: number; nestedTableTemplate: TemplateRef | null; readonly nestedExpandChange: EventEmitter; bodyHeader: TemplateRef | null; bodyFooter: TemplateRef | null; title: string | TemplateRef | null; footer: string | TemplateRef | null; readonly pageChange: EventEmitter; readonly pageSizeChange: EventEmitter; readonly pageIndexChange: EventEmitter; readonly selectedIdsChange: EventEmitter; readonly selectedIdChange: EventEmitter; readonly columnsChange: EventEmitter[]>; readonly refreshChange: EventEmitter; readonly currentPageDataChange: EventEmitter; readonly dblClickChange: EventEmitter; readonly clickChange: EventEmitter; readonly table: NzTableComponent; checkedAll: boolean; setOfCheckedId: Set; get checkedIndeterminate(): boolean; highlightRow: string | number; virtualForTrackBy: TrackByFunction; parseTdValue(data: ProTableData, column: ProTableColumn): string; getTdValue(data: ProTableData, column: ProTableColumn): string; getTdAlign(column: ProTableColumn): 'left' | 'right' | 'center' | null; /** * 分页或者选择每页数量 */ change(type: 'pageIndex' | 'pageSize'): void; /** * 点击 */ tdClick(item: ProTableData, col: ProTableColumn | ProTableOperation, e?: Event): void; /** * 行点击 */ trClick(d: ProTableData): void; /** * 行高亮 */ rowColor(d: ProTableData): any; /** * 全选 */ onCheckAll(checked: boolean): void; /** * 选择行 */ onCheckedChange(id: string | number, checked: boolean): void; /** * 更新选中 */ updateCheckedSet(id: string | number, checked: boolean): void; /** * 刷新选择状态 */ refreshCheckedStatus(): void; columnsSelectorChange(event: ProTableColumn[]): void; getTagConfig(data: ProTableData, column: ProTableColumn): any; getBadgeConfig(data: ProTableData, column: ProTableColumn): any; /** * 权限控制 */ acl(aclFunc: (() => boolean) | undefined): boolean; /** * 数据隐藏 */ hidden(hiddenFunc: ((data: ProTableData) => boolean) | undefined, data: ProTableData): boolean; getTdLeft(column: ProTableColumn): string | boolean; getTdStyle(data: ProTableData, column: ProTableColumn | ProTableOperation): string; getTdClass(data: ProTableData, column: ProTableColumn | ProTableOperation): string; getTdDisabled(data: ProTableData): boolean; /** * 操作列行内容显示 */ show(show: ((data: ProTableData) => boolean) | boolean | undefined, data: ProTableData): boolean; expandChange(expand: boolean, data: ProTableData, index: number): void; }