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

🐛 行宽配置设置了之后,不能用鼠标拖动调整 行宽了 #1242

Closed
rabbit-tian opened this issue Apr 7, 2022 · 3 comments · Fixed by #1246
Closed

🐛 行宽配置设置了之后,不能用鼠标拖动调整 行宽了 #1242

rabbit-tian opened this issue Apr 7, 2022 · 3 comments · Fixed by #1246
Labels
🐛 bug 这个是一个 bug released

Comments

@rabbit-tian
Copy link

image

复现:https://codesandbox.io/s/exciting-fog-c3xztp?file=/index.ts

版本:@antv/s2 1.1.31

@lijinke666 lijinke666 added the 🐛 bug 这个是一个 bug label Apr 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Apr 7, 2022

你好 @rabbit-tian,很抱歉给你带来了不好的体验, 我们会尽快排查问题并修复, 请关注后续发布日志.

Hello, @rabbit-tian, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs.

@wjgogogo
Copy link
Contributor

wjgogogo commented Apr 8, 2022

@rabbit-tian 目前你的设置方法不正确,请将宽度配置(rowCfgcolCfg, cellCfg)放在style属性中:

const s2Options = {
      width: 600,
      height: 480,
      interaction: {
        hoverHighlight: true,
        selectedCellsSpotlight: true, // highlight selection
      },
      style:{
        cellCfg: {
          width: 96,
          height: 30
        },
        colCfg: {
          height: 10,
          heightByField: {
            $$extra$$: 100
          }
        },
        rowCfg: {
          width: 100,
          widthByField: {
            province: 50
          }
        },
      },
      
      tooltip: {
        showTooltip: true,
      },
    };

@lijinke666
Copy link
Member

🎉 This issue has been resolved in version @antv/s2-v1.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug 这个是一个 bug released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants