Skip to content

Commit

Permalink
fix: 修复二轮 CR 反馈的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhaiyang committed Dec 4, 2023
1 parent d7a74de commit 6e1ae4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions packages/s2-core/src/facet/frozen-facet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,6 @@ export abstract class FrozenFacet extends BaseFacet {
}

if (frozenTrailingColCount > 0) {
// const width = colLeafNodes.reduceRight((prev, item, idx) => {
// if (idx >= colLeafNodes.length - frozenTrailingColCount) {
// return prev + item.width;
// }
// return prev;
// }, 0);
const { x } = colLeafNodes[colLeafNodes.length - frozenTrailingColCount];
const height = frozenTrailingRowCount ? panelHeight : viewportHeight;
renderLine(
Expand Down
4 changes: 2 additions & 2 deletions s2-site/docs/manual/basic/sheet-type/pivot-mode.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ s2.render();
- 分页场景暂不支持。
`s2Options` 中配置 `frozenFirstRowPivot` 开启首行冻结能力

:::

```ts
const s2Options = {
// 是否开启冻结首行
Expand All @@ -121,8 +123,6 @@ const s2Options = {
}
```

效果如图:

#### 平铺模式

<Playground path='interaction/advanced/demo/frozen-pivot-grid.ts' rid='container-grid' height='300'></playground>
Expand Down

0 comments on commit 6e1ae4d

Please sign in to comment.