We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
显示多个表格时,同一套代码,显示了前5个表格后,后面的表格显示不出来。如下:
代码如下:
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部分显示一个或多个表格。
this.state.dataCfg
[["债券信息汇总", [{"fields": ..., "meta": ..., "data": ...},{"fields": ..., "meta": ..., "data": ...}]],["股东个人信息表", [{"fields": ..., "meta": ..., "data": ...}]]]
附上css的代码:
@import '~antd/es/style/themes/default.less'; .site-card-border-less-wrapper { padding: 30px; background: #ffffff; }
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
🏷 Version
Sheet Type
🖋 Description
显示多个表格时,同一套代码,显示了前5个表格后,后面的表格显示不出来。如下:
代码如下:
其中,从服务器获得的data存入到
this.state.dataCfg
中。数据格式为:[["债券信息汇总", [{"fields": ..., "meta": ..., "data": ...},{"fields": ..., "meta": ..., "data": ...}]],["股东个人信息表", [{"fields": ..., "meta": ..., "data": ...}]]]
。其中,列表里的每一个元素都是一个Card,Card的标题为元素中的第一个元素(例如:"债券信息汇总"),而Card的body部分显示一个或多个表格。附上css的代码:
🔗 Reproduce Link
😊 Expected Behavior
😅 Current Behavior
The text was updated successfully, but these errors were encountered: