Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤔透视表在开启首行冻结后行头和数据都会出现滚动条,请问有没有什么方法可以去除行头滚动条,保留数据滚动条? #2514

Closed
Jasmine011 opened this issue Jan 16, 2024 · 3 comments
Labels
❔question 疑问/使用问题

Comments

@Jasmine011
Copy link

透视表在开启首行冻结后行头和数据都会出现滚动条,请问有没有什么方法可以去除行头滚动条,保留数据滚动条?

Package Version
@antv/s2 ^1.54.2
@antv/s2-vue ^1.6.0

透视表在开启首行冻结后行头和数据都会出现横向的滚动条,请问有没有什么方法可以去除行头滚动条(或者设置超过一定宽度再显示滚动条),保留数据滚动条?

image
@Jasmine011 Jasmine011 added the ❔question 疑问/使用问题 label Jan 16, 2024
Copy link
Contributor

你好 @Jasmine011,请编辑你的 issue 标题, 一个言简意赅的 issue 标题可以节省大家的时间, 请不要将标题当做正文, 或者为空。

Hello, @Jasmine011, please edit your issue title. a concise issue title will save everyone time. please do not leave the title as the body or empty.

@Jasmine011 Jasmine011 changed the title 🤔 🤔透视表在开启首行冻结后行头和数据都会出现滚动条,请问有没有什么方法可以去除行头滚动条,保留数据滚动条? Jan 16, 2024
@wuhaiyang
Copy link
Collaborator

先暂时这样设置下:image

@lijinke666
Copy link
Member

首先,您描述的不是冻结首行, 而是冻结行头

    const s2Options = {
      width: 600,
      height: 480,
// 方式1: 关闭冻结行头, 这样只有数值区域才会有滚动条
+     frozenRowHeader: false

// 方式2: 自定义树状模式下行头的宽度
+     treeRowsWidth: 300,
    };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔question 疑问/使用问题
Projects
None yet
Development

No branches or pull requests

3 participants