Skip to content

Commit

Permalink
refactor: 抽取明细表冻结行列逻辑,交叉表冻结首行逻辑复用 (#2415)
Browse files Browse the repository at this point in the history
* refactor: extract freeze public logic

* fix: lint error fixed

* fix: follow variable naming conventions

---------

Co-authored-by: wuding.why <[email protected]>
  • Loading branch information
wuhaiyang and wuding.why authored Nov 17, 2023
1 parent 55359af commit ed79621
Show file tree
Hide file tree
Showing 5 changed files with 824 additions and 724 deletions.
6 changes: 4 additions & 2 deletions packages/s2-core/src/common/constant/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const BACK_GROUND_GROUP_CONTAINER_Z_INDEX = 0;

// foregroundGroup 上的 children 层叠顺序
export const FRONT_GROUND_GROUP_CONTAINER_Z_INDEX = 3; // 约定这个 z-index 为 0 的 container 作为基准
export const FRONT_GROUND_GROUP_COL_SCROLL_Z_INDEX = 3;
export const FRONT_GROUND_GROUP_COL_FROZEN_Z_INDEX = 4;
export const FRONT_GROUND_GROUP_SCROLL_Z_INDEX = 3;
export const FRONT_GROUND_GROUP_FROZEN_Z_INDEX = 4;
export const FRONT_GROUND_GROUP_RESIZE_AREA_Z_INDEX = 5;
export const FRONT_GROUND_GROUP_BRUSH_SELECTION_Z_INDEX = 5;

Expand Down Expand Up @@ -45,6 +45,8 @@ export const KEY_GROUP_COL_SCROLL = 'colScrollGroup';
export const KEY_GROUP_COL_FROZEN = 'colFrozenGroup';
export const KEY_GROUP_COL_FROZEN_TRAILING = 'colFrozenTrailingGroup';
export const KEY_GROUP_GRID_GROUP = 'gridGroup';
export const KEY_GROUP_ROW_SCROLL = 'rowScrollGroup';
export const KEY_GROUP_ROW_HEADER_FROZEN = 'rowHeaderFrozenGroup';

// key of series number node in corner header
export const KEY_SERIES_NUMBER_NODE = 'series-number-node';
Expand Down
Loading

1 comment on commit ed79621

@vercel
Copy link

@vercel vercel bot commented on ed79621 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

antvis-s2 – ./

antvis-s2-git-master-antvis-family.vercel.app
antvis-s2-antvis-family.vercel.app
antvis-s2.vercel.app

Please sign in to comment.