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

🤔 部分表格无法显示 #1978

Closed
2 of 5 tasks
jazwu opened this issue Dec 7, 2022 · 1 comment
Closed
2 of 5 tasks

🤔 部分表格无法显示 #1978

jazwu opened this issue Dec 7, 2022 · 1 comment
Labels
❔question 疑问/使用问题

Comments

@jazwu
Copy link

jazwu commented Dec 7, 2022

🏷 Version

Package Version
@antv/s2 1.36.0
@antv/s2-react 1.33.0
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

显示多个表格时,同一套代码,显示了前5个表格后,后面的表格显示不出来。如下:
table_show

代码如下:

render() {
    return (
      <div className="site-card-border-less-wrapper">
        {this.state.dataCfg.map((item, idx) => {
          return (
            <Card title={item[0]} bordered={false}>
                {item[1].map((item2, idx2) => {
                return <div>
                  <h4>{item2.describe}</h4>
                  <SheetComponent sheetType={item2.sheetType} dataCfg={item2} options={this.state.options} themeCfg={this.state.themeCfg} adaptive={true}/>
                </div>})}
            </Card>)})}
      </div>
    )
  };

其中,从服务器获得的data存入到 this.state.dataCfg 中。数据格式为:
[["债券信息汇总", [{"fields": ..., "meta": ..., "data": ...},{"fields": ..., "meta": ..., "data": ...}]],["股东个人信息表", [{"fields": ..., "meta": ..., "data": ...}]]]。其中,列表里的每一个元素都是一个Card,Card的标题为元素中的第一个元素(例如:"债券信息汇总"),而Card的body部分显示一个或多个表格。

附上css的代码:

@import '~antd/es/style/themes/default.less';

.site-card-border-less-wrapper {
    padding: 30px;
    background: #ffffff;
}

🔗 Reproduce Link

😊 Expected Behavior

😅 Current Behavior

@jazwu jazwu added the ❔question 疑问/使用问题 label Dec 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2022

你要找的是不是 (You may look for issues):

  1. 85% 🤔 #1881

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

1 participant