@visactor/vtable 0.19.2-alpha.0 → 0.19.2-alpha.2

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.
@@ -76,7 +76,7 @@ export class BaseTable extends EventTarget {
76
76
  }
77
77
  constructor(container, options = {}) {
78
78
  var _a, _b, _c, _d, _e, _f, _g;
79
- if (super(), this.showFrozenIcon = !0, this.version = "0.19.2-alpha.0", this.id = `VTable${Date.now()}`,
79
+ if (super(), this.showFrozenIcon = !0, this.version = "0.19.2-alpha.2", this.id = `VTable${Date.now()}`,
80
80
  this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
81
81
  !container && "node" !== options.mode) throw new Error("vtable's container is undefined");
82
82
  const {frozenColCount: frozenColCount = 0, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, keyboardOptions: keyboardOptions, eventOptions: eventOptions, columnResizeMode: columnResizeMode, dragHeaderMode: dragHeaderMode, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth} = options;
@@ -1201,8 +1201,10 @@ export class BaseTable extends EventTarget {
1201
1201
  dataValue: this.getCellOriginValue(col, row),
1202
1202
  cellHeaderPaths: this.getCellHeaderPaths(col, row)
1203
1203
  }, styleClass, this.options.autoWrapText); else {
1204
+ let defaultStyle;
1205
+ defaultStyle = layoutMap.isColumnHeader(col, row) || layoutMap.isBottomFrozenRow(col, row) || this.internalProps.transpose && layoutMap.isRowHeader(col, row) ? this.theme.headerStyle : layoutMap.isRowHeader(col, row) || layoutMap.isRightFrozenColumn(col, row) ? this.theme.rowHeaderStyle : this.theme.cornerHeaderStyle;
1204
1206
  const style = (null == hd ? void 0 : hd.style) || {};
1205
- paddingForAxis && (style.padding = paddingForAxis), cacheStyle = headerStyleContents.of(style, layoutMap.isColumnHeader(col, row) || layoutMap.isBottomFrozenRow(col, row) ? this.theme.headerStyle : layoutMap.isRowHeader(col, row) || layoutMap.isRightFrozenColumn(col, row) ? this.theme.rowHeaderStyle : this.theme.cornerHeaderStyle, {
1207
+ paddingForAxis && (style.padding = paddingForAxis), cacheStyle = headerStyleContents.of(style, defaultStyle, {
1206
1208
  col: col,
1207
1209
  row: row,
1208
1210
  table: this,