fantasy-ngzorro 2.1.29 → 2.1.31
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/bundles/fantasy-ngzorro.umd.js +12 -11
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-table/hd-table.component.js +16 -15
- package/esm5/hd-table/hd-table.component.js +15 -14
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +13 -12
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +12 -11
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-table/hd-table.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7920,8 +7920,7 @@
|
|
|
7920
7920
|
*/
|
|
7921
7921
|
function () {
|
|
7922
7922
|
/** @type {?} */
|
|
7923
|
-
var viewport = _this.nzTableComponent &&
|
|
7924
|
-
_this.nzTableComponent.cdkVirtualScrollViewport;
|
|
7923
|
+
var viewport = _this.nzTableComponent && _this.nzTableComponent.cdkVirtualScrollViewport;
|
|
7925
7924
|
if (!viewport) {
|
|
7926
7925
|
_this.syncHorizontalScroll();
|
|
7927
7926
|
return;
|
|
@@ -7960,17 +7959,14 @@
|
|
|
7960
7959
|
*/
|
|
7961
7960
|
function (force) {
|
|
7962
7961
|
if (force === void 0) { force = false; }
|
|
7963
|
-
if (this.virtualItemSize != null &&
|
|
7964
|
-
this.virtualItemSize > 0 &&
|
|
7965
|
-
!force) {
|
|
7962
|
+
if (this.virtualItemSize != null && this.virtualItemSize > 0 && !force) {
|
|
7966
7963
|
return false;
|
|
7967
7964
|
}
|
|
7968
7965
|
/** @type {?} */
|
|
7969
|
-
var viewport = this.nzTableComponent &&
|
|
7970
|
-
this.nzTableComponent.cdkVirtualScrollViewport;
|
|
7966
|
+
var viewport = this.nzTableComponent && this.nzTableComponent.cdkVirtualScrollViewport;
|
|
7971
7967
|
/** @type {?} */
|
|
7972
7968
|
var tableBody = this.nzTableComponent &&
|
|
7973
|
-
(/** @type {?} */ (this.nzTableComponent.tableBodyNativeElement));
|
|
7969
|
+
((/** @type {?} */ (this.nzTableComponent.tableBodyNativeElement)));
|
|
7974
7970
|
/** @type {?} */
|
|
7975
7971
|
var row = (viewport &&
|
|
7976
7972
|
((/** @type {?} */ (((/** @type {?} */ (viewport.elementRef.nativeElement))).querySelector("tr.hd-table-virtual-row"))))) ||
|
|
@@ -8390,7 +8386,9 @@
|
|
|
8390
8386
|
* @return {?}
|
|
8391
8387
|
*/
|
|
8392
8388
|
function () {
|
|
8393
|
-
return !!(this.tableCacheOption &&
|
|
8389
|
+
return !!(this.tableCacheOption &&
|
|
8390
|
+
this.tableCacheOption.cols &&
|
|
8391
|
+
this.tableCacheOption.cols.length > 0);
|
|
8394
8392
|
};
|
|
8395
8393
|
/**
|
|
8396
8394
|
* @return {?}
|
|
@@ -8604,7 +8602,9 @@
|
|
|
8604
8602
|
var scrollX = this.resolveScrollX(this.tableColWidthTotal);
|
|
8605
8603
|
/** @type {?} */
|
|
8606
8604
|
var currentY = this.scroll ? this.scroll.y : null;
|
|
8607
|
-
if (this.scroll &&
|
|
8605
|
+
if (this.scroll &&
|
|
8606
|
+
this.scroll.x === scrollX &&
|
|
8607
|
+
this.scroll.y === currentY) {
|
|
8608
8608
|
return;
|
|
8609
8609
|
}
|
|
8610
8610
|
this.scroll = { x: scrollX, y: currentY };
|
|
@@ -8655,6 +8655,7 @@
|
|
|
8655
8655
|
this.tableColWidthTotal = colWidth;
|
|
8656
8656
|
/** @type {?} */
|
|
8657
8657
|
var maxOffset = this.tableTotal ? 180 : 140;
|
|
8658
|
+
maxOffset += 124;
|
|
8658
8659
|
/** @type {?} */
|
|
8659
8660
|
var useVirtual = this.useVirtualScroll;
|
|
8660
8661
|
/** @type {?} */
|
|
@@ -8834,7 +8835,7 @@
|
|
|
8834
8835
|
if (col.isState) {
|
|
8835
8836
|
return (/** @type {?} */ (col.name));
|
|
8836
8837
|
}
|
|
8837
|
-
return col.stateField ||
|
|
8838
|
+
return col.stateField || "state";
|
|
8838
8839
|
};
|
|
8839
8840
|
HdTableComponent.decorators = [
|
|
8840
8841
|
{ type: core.Component, args: [{
|