@visactor/vtable 1.11.3 → 1.11.4
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/cjs/PivotTable.js +13 -2
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +21 -4
- package/dist/vtable.min.js +1 -1
- package/es/PivotTable.js +13 -2
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/cjs/PivotTable.js
CHANGED
|
@@ -520,8 +520,19 @@ class PivotTable extends BaseTable_1.BaseTable {
|
|
|
520
520
|
for (let i = 0; i < (null == columnWidthConfig ? void 0 : columnWidthConfig.length); i++) {
|
|
521
521
|
const item = columnWidthConfig[i], dimensions = item.dimensions, width = item.width, cell = this.getCellAddressByHeaderPaths(dimensions);
|
|
522
522
|
if (cell.col >= this.rowHeaderLevelCount) {
|
|
523
|
-
this.getCellHeaderPaths(cell.col, this.columnHeaderLevelCount
|
|
524
|
-
|
|
523
|
+
const cellPath = this.getCellHeaderPaths(cell.col, this.columnHeaderLevelCount);
|
|
524
|
+
if (cellPath.colHeaderPaths.length === dimensions.length) {
|
|
525
|
+
let match = !0;
|
|
526
|
+
for (let i = 0; i < dimensions.length; i++) {
|
|
527
|
+
const dimension = dimensions[i];
|
|
528
|
+
if (cellPath.colHeaderPaths.findIndex(((colPath, index) => colPath.indicatorKey === dimension.indicatorKey || colPath.dimensionKey === dimension.dimensionKey && colPath.value === dimension.value)) < 0) {
|
|
529
|
+
match = !1;
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
match && !this.internalProps._widthResizedColMap.has(cell.col) && (this._setColWidth(cell.col, width),
|
|
534
|
+
this.internalProps._widthResizedColMap.add(cell.col));
|
|
535
|
+
}
|
|
525
536
|
}
|
|
526
537
|
}
|
|
527
538
|
}
|