@visactor/vtable 1.22.3 → 1.22.4-alpha.0

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.
Files changed (45) hide show
  1. package/cjs/PivotTable.js +5 -5
  2. package/cjs/PivotTable.js.map +1 -1
  3. package/cjs/core/BaseTable.js +1 -1
  4. package/cjs/core/BaseTable.js.map +1 -1
  5. package/cjs/index.d.ts +1 -1
  6. package/cjs/index.js +1 -1
  7. package/cjs/index.js.map +1 -1
  8. package/cjs/layout/pivot-header-layout.js +1 -2
  9. package/cjs/layout/pivot-layout.js +0 -2
  10. package/cjs/layout/row-height-map.js +1 -1
  11. package/cjs/layout/simple-header-layout.js +1 -1
  12. package/cjs/layout/tree-helper.js +1 -1
  13. package/cjs/plugins/custom-cell-style.js +2 -1
  14. package/cjs/plugins/index.js +1 -1
  15. package/cjs/plugins/interface.js +1 -1
  16. package/cjs/plugins/invert-highlight.js +1 -1
  17. package/cjs/plugins/list-tree-stick-cell.js +1 -1
  18. package/cjs/plugins/plugin-manager.js +1 -1
  19. package/cjs/state/state.js +2 -2
  20. package/cjs/state/state.js.map +1 -1
  21. package/cjs/vrender.js.map +1 -1
  22. package/dist/vtable.js +8 -10
  23. package/dist/vtable.min.js +1 -1
  24. package/es/PivotTable.js +5 -5
  25. package/es/PivotTable.js.map +1 -1
  26. package/es/core/BaseTable.js +1 -1
  27. package/es/core/BaseTable.js.map +1 -1
  28. package/es/index.d.ts +1 -1
  29. package/es/index.js +1 -1
  30. package/es/index.js.map +1 -1
  31. package/es/layout/pivot-header-layout.js +1 -2
  32. package/es/layout/pivot-layout.js +0 -2
  33. package/es/layout/row-height-map.js +1 -1
  34. package/es/layout/simple-header-layout.js +1 -1
  35. package/es/layout/tree-helper.js +1 -1
  36. package/es/plugins/custom-cell-style.js +2 -1
  37. package/es/plugins/index.js +1 -1
  38. package/es/plugins/interface.js +1 -1
  39. package/es/plugins/invert-highlight.js +1 -1
  40. package/es/plugins/list-tree-stick-cell.js +1 -1
  41. package/es/plugins/plugin-manager.js +1 -1
  42. package/es/state/state.js +2 -2
  43. package/es/state/state.js.map +1 -1
  44. package/es/vrender.js.map +1 -1
  45. package/package.json +5 -5
package/cjs/PivotTable.js CHANGED
@@ -218,13 +218,13 @@ class PivotTable extends BaseTable_1.BaseTable {
218
218
  this.setMinMaxLimitWidth(!0), this.refreshRowColCount();
219
219
  }
220
220
  refreshRowColCount() {
221
- var _a, _b, _c, _d, _e, _f, _g, _h;
221
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
222
222
  const table = this, {layoutMap: layoutMap} = table.internalProps;
223
223
  layoutMap && (table.colCount = null !== (_a = layoutMap.colCount) && void 0 !== _a ? _a : 0,
224
- table.rowCount = null !== (_b = layoutMap.rowCount) && void 0 !== _b ? _b : 0, this.internalProps.frozenColCount = this.options.frozenColCount ? this.options.frozenColCount : (null !== (_c = layoutMap.rowHeaderLevelCount) && void 0 !== _c ? _c : 0) + layoutMap.leftRowSeriesNumberColumnCount,
225
- table._setFrozenRowCount(Math.max(layoutMap.headerLevelCount, null !== (_d = this.options.frozenRowCount) && void 0 !== _d ? _d : 0)),
226
- table.bottomFrozenRowCount !== (null !== (_e = this.options.bottomFrozenRowCount) && void 0 !== _e ? _e : 0) && (table.bottomFrozenRowCount = null !== (_f = this.options.bottomFrozenRowCount) && void 0 !== _f ? _f : 0),
227
- table.rightFrozenColCount !== (null !== (_g = this.options.rightFrozenColCount) && void 0 !== _g ? _g : 0) && (table.rightFrozenColCount = null !== (_h = this.options.rightFrozenColCount) && void 0 !== _h ? _h : 0),
224
+ table.rowCount = null !== (_b = layoutMap.rowCount) && void 0 !== _b ? _b : 0, this.internalProps.frozenColCount = null !== (_c = this.options.frozenColCount) && void 0 !== _c ? _c : (null !== (_d = layoutMap.rowHeaderLevelCount) && void 0 !== _d ? _d : 0) + layoutMap.leftRowSeriesNumberColumnCount,
225
+ table._setFrozenRowCount(Math.max(layoutMap.headerLevelCount, null !== (_e = this.options.frozenRowCount) && void 0 !== _e ? _e : 0)),
226
+ table.bottomFrozenRowCount !== (null !== (_f = this.options.bottomFrozenRowCount) && void 0 !== _f ? _f : 0) && (table.bottomFrozenRowCount = null !== (_g = this.options.bottomFrozenRowCount) && void 0 !== _g ? _g : 0),
227
+ table.rightFrozenColCount !== (null !== (_h = this.options.rightFrozenColCount) && void 0 !== _h ? _h : 0) && (table.rightFrozenColCount = null !== (_j = this.options.rightFrozenColCount) && void 0 !== _j ? _j : 0),
228
228
  this.stateManager.setFrozenCol(this.internalProps.frozenColCount), this.stateManager.setFrozenRow(this.frozenRowCount));
229
229
  }
230
230
  _getSortFuncFromHeaderOption(columns, field, fieldKey) {}