Skip to content

Commit

Permalink
fix: 提取函数
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Jan 22, 2024
1 parent 96ffa9f commit aa1da2e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/s2-core/src/sheet-type/spread-sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,15 +394,18 @@ export abstract class SpreadSheet extends EE {
this.initTooltip();
}

/**
* 配置都是 merge 操作, 但是隐藏列配置比较特殊, 变更时, 应该是全量覆盖, 而不应该是合并
* https://github.com/antvis/S2/issues/2495
*/
this.resetHiddenColumnsDetailInfoIfNeeded();
this.registerIcons();
}

/**
* 配置都是 merge 操作, 但是隐藏列配置比较特殊, 变更时, 应该是全量覆盖, 而不应该是合并
* https://github.com/antvis/S2/issues/2495
*/
private resetHiddenColumnsDetailInfoIfNeeded() {
if (!isEmpty(this.options.interaction?.hiddenColumnFields)) {
this.store.set('hiddenColumnsDetail', []);
}

this.registerIcons();
}

public render(reloadData = true, options: S2RenderOptions = {}) {
Expand Down

0 comments on commit aa1da2e

Please sign in to comment.