@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/es/PivotTable.js
CHANGED
|
@@ -519,8 +519,19 @@ export class PivotTable extends BaseTable {
|
|
|
519
519
|
for (let i = 0; i < (null == columnWidthConfig ? void 0 : columnWidthConfig.length); i++) {
|
|
520
520
|
const item = columnWidthConfig[i], dimensions = item.dimensions, width = item.width, cell = this.getCellAddressByHeaderPaths(dimensions);
|
|
521
521
|
if (cell.col >= this.rowHeaderLevelCount) {
|
|
522
|
-
this.getCellHeaderPaths(cell.col, this.columnHeaderLevelCount
|
|
523
|
-
|
|
522
|
+
const cellPath = this.getCellHeaderPaths(cell.col, this.columnHeaderLevelCount);
|
|
523
|
+
if (cellPath.colHeaderPaths.length === dimensions.length) {
|
|
524
|
+
let match = !0;
|
|
525
|
+
for (let i = 0; i < dimensions.length; i++) {
|
|
526
|
+
const dimension = dimensions[i];
|
|
527
|
+
if (cellPath.colHeaderPaths.findIndex(((colPath, index) => colPath.indicatorKey === dimension.indicatorKey || colPath.dimensionKey === dimension.dimensionKey && colPath.value === dimension.value)) < 0) {
|
|
528
|
+
match = !1;
|
|
529
|
+
break;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
match && !this.internalProps._widthResizedColMap.has(cell.col) && (this._setColWidth(cell.col, width),
|
|
533
|
+
this.internalProps._widthResizedColMap.add(cell.col));
|
|
534
|
+
}
|
|
524
535
|
}
|
|
525
536
|
}
|
|
526
537
|
}
|