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

🤔基础类不能设置高宽? #2962

Closed
3 tasks
4color opened this issue Nov 7, 2024 · 2 comments
Closed
3 tasks

🤔基础类不能设置高宽? #2962

4color opened this issue Nov 7, 2024 · 2 comments
Assignees
Labels
👀 need more info Issue/pr 描述太少, 没有可用信息 next 2.0-next 版本的问题 ❔question 疑问/使用问题

Comments

@4color
Copy link

4color commented Nov 7, 2024

🏷 Version

Package Version
@antv/s2 2.0.0-next.30
@antv/s2-react
@antv/s2-vue 2.0.0-next.15

Sheet Type

  • [1 ] PivotSheet
  • [1 ] TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

我直接用基础类来展示表格,但高宽不管怎么调都是默认值 600,400

const s2 = new PivotSheet(container, s2DataConfig, s2Options);
要如何改才可以修改高宽

🔗 Reproduce Link

😊 Expected Behavior

😅 Current Behavior

@4color 4color added the ❔question 疑问/使用问题 label Nov 7, 2024
@github-actions github-actions bot added the next 2.0-next 版本的问题 label Nov 7, 2024
@lijinke666 lijinke666 self-assigned this Nov 8, 2024
@lijinke666
Copy link
Member

不管怎么调

怎么个调法? 代码怎么写的? 初始化还是动态更新? 什么有用信息都没有, 也没有最小复现链接, 没人能回答你

  1. 初始化
const s2Options = {
  width: 300,
  height: 200
}

const s2 = new PivotSheet(container, s2DataConfig, s2Options);

await s2.render()
  1. 更新
s2.changeSheetSize(300, 200)
await s2.render(false)

https://s2.antv.antgroup.com/manual/faq#%E6%89%8B%E5%8A%A8%E6%9B%B4%E6%96%B0%E8%A1%A8%E6%A0%BC%E5%AE%BD%E9%AB%98%E5%90%8E%E4%B8%BA%E4%BB%80%E4%B9%88%E6%BB%9A%E5%8A%A8%E6%9D%A1%E4%B8%8D%E6%98%BE%E7%A4%BA%E4%BA%86

@lijinke666 lijinke666 added the 👀 need more info Issue/pr 描述太少, 没有可用信息 label Nov 8, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

你好 @4color,你所提供的信息不足于我们排查问题, 请按照 issue 模板填写相关信息, 提供 gif, 截图, 代码片段, 配置信息, 版本号, 可复现链接等方式, 详细说明复现步骤, 感谢配合, 谢谢! 15 天内未回复issue自动关闭。

Hello, @4color, the information you provided is not enough for us to troubleshoot the problem. Please complete the issue description, provide gifs, screenshots, config, version. And explain the reproduction steps in detail. Thanks so much for your cooperation! The issue will be closed without any replay within 15 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 need more info Issue/pr 描述太少, 没有可用信息 next 2.0-next 版本的问题 ❔question 疑问/使用问题
Projects
None yet
Development

No branches or pull requests

2 participants