fantasy-ngzorro 2.1.19 → 2.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bundles/fantasy-ngzorro.umd.js +251 -66
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +2 -2
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-table/hd-table-cell.pipe.js +26 -5
- package/esm2015/hd-table/hd-table.component.js +155 -22
- package/esm2015/hd-table/hd-table.module.js +3 -1
- package/esm5/hd-table/hd-table-cell.pipe.js +26 -5
- package/esm5/hd-table/hd-table.component.js +186 -22
- package/esm5/hd-table/hd-table.module.js +3 -1
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +217 -62
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +248 -62
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-table/hd-table-cell.pipe.d.ts +1 -0
- package/hd-table/hd-table.component.d.ts +12 -0
- package/package.json +1 -1
|
@@ -66,6 +66,10 @@ export declare class HdTableComponent implements OnInit {
|
|
|
66
66
|
isCrossPageSelectLocal: boolean;
|
|
67
67
|
/** 自动测量前的兜底行高,测量完成后会更新 */
|
|
68
68
|
measuredVirtualItemSize: number;
|
|
69
|
+
/** 记录当前是否处于虚拟滚动模式,用于切换 pageSize 时重建表格 */
|
|
70
|
+
private virtualScrollActive;
|
|
71
|
+
/** 可见列总宽,用于判断是否需要横向滚动 */
|
|
72
|
+
private tableColWidthTotal;
|
|
69
73
|
nzTableComponent: NzTableComponent;
|
|
70
74
|
constructor(cdr: ChangeDetectorRef, commonSessionService: CommonSessionService);
|
|
71
75
|
ngOnInit(): void;
|
|
@@ -85,6 +89,9 @@ export declare class HdTableComponent implements OnInit {
|
|
|
85
89
|
trackByCol: (_index: number, col: HdTableColumn) => string;
|
|
86
90
|
getInitLocalforage(): void;
|
|
87
91
|
initTable(): void;
|
|
92
|
+
/** 虚拟/普通模式切换时重建表格,避免残留滚动容器 */
|
|
93
|
+
applyTableScrollMode(forceRemount?: boolean): void;
|
|
94
|
+
private afterTableRender;
|
|
88
95
|
refreshVirtualScrollViewport(forceMeasure?: boolean): void;
|
|
89
96
|
/** 未手动传 virtualItemSize 时,从已渲染行测量真实高度 */
|
|
90
97
|
measureVirtualItemSize(force?: boolean): boolean;
|
|
@@ -107,6 +114,11 @@ export declare class HdTableComponent implements OnInit {
|
|
|
107
114
|
needShowConfirm(btn: OperateBtn, data: any): boolean;
|
|
108
115
|
/** 虚拟滚动开启时使用视口最大高度 */
|
|
109
116
|
private getVirtualScrollY;
|
|
117
|
+
private getTableViewportWidth;
|
|
118
|
+
/** 列总宽超出外层容器才启用横向 scroll(不能用 table 自身宽度,会被 scroll.x 撑宽) */
|
|
119
|
+
private resolveScrollX;
|
|
120
|
+
/** 表格渲染后按实际容器宽度校正横向 scroll */
|
|
121
|
+
private syncHorizontalScroll;
|
|
110
122
|
dealScroll(): void;
|
|
111
123
|
currentPageDataChange($event: any): void;
|
|
112
124
|
search(reset: boolean): void;
|